Skip to content

Commit

Permalink
fix: baichuan incompatible with latest huggingface transformers (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnleelhl authored Nov 14, 2023
1 parent 4d1d60d commit aa8a6fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/llm/templates/scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ data:
# install dependencies for qwen
pip install tiktoken
fi
# fix baichuan incompatible with latest transformers
if [[ "${domain,,}" == "baichuan-inc" ]]; then
pip install transformers==4.33.1 tokenizers==0.13.3
fi
country=`curl https://ifconfig.io/country_code`
if [ "$country" == "CN" ]; then
CLONE_MODEL_SCRIPT="git lfs install; git clone https://www.modelscope.cn/${MODEL_NAME}.git"
Expand Down

0 comments on commit aa8a6fc

Please sign in to comment.