mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-14 02:28:06 -07:00
Fix bug introduced by Python backend merge
HF_CACHE_DIR needs to be set in .env, even if the FT backend is in use, or docker compose will complain and fail to start.
This commit is contained in:
parent
1b2b8ec251
commit
e153c17194
1 changed files with 5 additions and 0 deletions
5
setup.sh
5
setup.sh
|
@ -118,6 +118,11 @@ function fastertransformer_backend(){
|
|||
docker run --rm -v "${MODELS_ROOT_DIR}":/models -e MODEL=${MODEL} -e NUM_GPUS="${NUM_GPUS}" moyix/model_converter:latest
|
||||
fi
|
||||
fi
|
||||
|
||||
# Not used for this backend but needs to be present
|
||||
HF_CACHE_DIR="$(pwd)/.hf_cache"
|
||||
mkdir -p "$HF_CACHE_DIR"
|
||||
echo "HF_CACHE_DIR=${HF_CACHE_DIR}" >> .env
|
||||
}
|
||||
|
||||
function python_backend(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue