mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
Install new transformers
Signed-off-by: yuanwu <yuan.wu@intel.com>
This commit is contained in:
parent
f5aaa18d8e
commit
cfcbd80fb4
@ -9,8 +9,11 @@ if [[ "$*" == *"--sharded true"* ]]; then
|
|||||||
fi
|
fi
|
||||||
# Check if ATTENTION environment variable is set to paged
|
# Check if ATTENTION environment variable is set to paged
|
||||||
if [[ "$ATTENTION" == "paged" ]]; then
|
if [[ "$ATTENTION" == "paged" ]]; then
|
||||||
echo 'ATTENTION=paged detected, installing transformers==4.51.3'
|
# Check if Llama-4 is in the command line arguments
|
||||||
pip install transformers==4.51.3
|
if [[ "$*" == *"Llama-4"* ]]; then
|
||||||
|
echo 'ATTENTION=paged and Llama-4 detected'
|
||||||
|
pip install git+https://github.com/yuanwu2017/transformers.git@0425
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
text-generation-launcher $@
|
text-generation-launcher $@
|
||||||
|
Loading…
Reference in New Issue
Block a user