Install new transformers

Signed-off-by: yuanwu <yuan.wu@intel.com>
This commit is contained in:
yuanwu 2025-05-11 22:36:18 +00:00
parent f5aaa18d8e
commit cfcbd80fb4

View File

@ -9,8 +9,11 @@ if [[ "$*" == *"--sharded true"* ]]; then
fi
# Check if ATTENTION environment variable is set to paged
if [[ "$ATTENTION" == "paged" ]]; then
echo 'ATTENTION=paged detected, installing transformers==4.51.3'
pip install transformers==4.51.3
# Check if Llama-4 is in the command line arguments
if [[ "$*" == *"Llama-4"* ]]; then
echo 'ATTENTION=paged and Llama-4 detected'
pip install git+https://github.com/yuanwu2017/transformers.git@0425
fi
fi
text-generation-launcher $@