Skip to content

Commit 69b00ed

Browse files
Guang Yangguangy10
authored andcommitted
Update Hugging Face version
1 parent 91c382d commit 69b00ed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/trunk.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,6 @@ jobs:
409409
pip install -U "huggingface_hub[cli]"
410410
huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
411411
pip install accelerate sentencepiece
412-
# TODO(guangyang): Switch to use released transformers library after all required patches are included
413-
pip install "git+https://github.com/huggingface/transformers.git@6cc4dfe3f1e8d421c6d6351388e06e9b123cbfe1"
414412
pip list
415413
echo "::endgroup::"
416414

examples/models/llama/install_requirements.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ pip install --no-use-pep517 "git+https://github.com/pytorch/ao.git@${TORCHAO_VER
1717
# Install tiktoken for tokenizer
1818
pip install lm_eval==0.4.5
1919
pip install tiktoken blobfile
20+
# Restore numpy if >= 2.0
21+
pip install "numpy<2.0"
2022

2123
# Call the install helper for further setup
2224
python examples/models/llama/install_requirement_helper.py

install_requirements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def python_is_compatible():
135135
"timm==1.0.7",
136136
f"torchaudio==2.5.0.{NIGHTLY_VERSION}",
137137
"torchsr==1.0.4",
138-
"transformers==4.42.4",
138+
"transformers==4.46.0",
139139
]
140140

141141
# Assemble the list of requirements to actually install.

0 commit comments

Comments
 (0)