2023-12-05 07:15:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
##
|
|
|
|
## A bash script installs the required dependencies of VALL-E-X and prepares the environment
|
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
|
|
|
|
# Activate conda environment
|
2024-01-06 12:32:28 +00:00
|
|
|
source activate transformers
|
2023-12-05 07:15:37 +00:00
|
|
|
|
|
|
|
echo $CONDA_PREFIX
|
|
|
|
|
|
|
|
|
|
|
|
git clone https://github.com/turboderp/exllama $CONDA_PREFIX/exllama && pushd $CONDA_PREFIX/exllama && pip install -r requirements.txt && popd
|
|
|
|
|
2024-01-07 23:37:02 +00:00
|
|
|
cp -rfv $CONDA_PREFIX/exllama/* ./
|
|
|
|
|
|
|
|
if [ "$PIP_CACHE_PURGE" = true ] ; then
|
|
|
|
pip cache purge
|
|
|
|
fi
|