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/exllamav2 $CONDA_PREFIX/exllamav2 && pushd $CONDA_PREFIX/exllamav2 && pip install -r requirements.txt && popd
|
|
|
|
|
2024-01-07 23:37:02 +00:00
|
|
|
cp -rfv $CONDA_PREFIX/exllamav2/* ./
|
|
|
|
|
|
|
|
if [ "$PIP_CACHE_PURGE" = true ] ; then
|
|
|
|
pip cache purge
|
|
|
|
fi
|