Skip to content

Commit 8340c60

Browse files
Guang Yangguangy10
authored andcommitted
Update Hugging Face version
1 parent 395b4d6 commit 8340c60

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

.ci/scripts/test_eval_llama_mmlu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ prepare_model_artifacts() {
1717
wget -O stories110M.pt "https://huggingface.co/karpathy/tinyllamas/resolve/main/stories110M.pt"
1818
wget -O tokenizer.model "https://raw.githubusercontent.com/karpathy/llama2.c/master/tokenizer.model"
1919
echo '{"dim": 768, "multiple_of": 32, "n_heads": 12, "n_layers": 12, "norm_eps": 1e-05, "vocab_size": 32000}' > params.json
20+
# TODO: lm_eval==0.4.2 is too old to be compatible with transformers >= 4.45
21+
pip install "transformers<4.45"
2022
}
2123

2224
run_and_verify() {

.ci/scripts/test_eval_llama_wikitext.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ prepare_model_artifacts() {
1717
wget -O stories110M.pt "https://huggingface.co/karpathy/tinyllamas/resolve/main/stories110M.pt"
1818
wget -O tokenizer.model "https://raw.githubusercontent.com/karpathy/llama2.c/master/tokenizer.model"
1919
echo '{"dim": 768, "multiple_of": 32, "n_heads": 12, "n_layers": 12, "norm_eps": 1e-05, "vocab_size": 32000}' > params.json
20+
# TODO: lm_eval==0.4.2 is too old to be compatible with transformers >= 4.45
21+
pip install "transformers<4.45"
2022
}
2123

2224
run_and_verify() {

.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.2
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)