Skip to content

Commit 5865a57

Browse files
Guang Yangfacebook-github-bot
authored andcommitted
Update Hugging Face packages to latest versions (#4306)
Summary: Pull Request resolved: #4306 Reviewed By: kirklandsign Differential Revision: D59977405 Pulled By: guangy10 fbshipit-source-id: 2ce889e6f49ade545a668244db8aab6e7f7bef01
1 parent 7e417f4 commit 5865a57

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

examples/models/llava/install_requirements.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ pip install bitsandbytes -I
2020
# numpy needs to be pin to 1.24. 1.26.4 will error out
2121
pip install numpy==1.24
2222

23-
# Newer transformer will give TypeError: LlavaLlamaForCausalLM.forward() got an unexpected keyword argument 'cache_position'
24-
pip install transformers==4.37.2
25-
2623
# The deps of llava can have different versions than deps of ExecuTorch.
2724
# For example, torch version required from llava is older than ExecuTorch.
2825
# To make both work, recover ExecuTorch's original dependencies by rerunning
2926
# the install_requirements.sh.
3027
bash -x ./install_requirements.sh --pybind xnnpack
28+
29+
# Newer transformer will give TypeError: LlavaLlamaForCausalLM.forward() got an unexpected keyword argument 'cache_position'
30+
pip install timm==0.6.13
31+
pip install transformers==4.38.2

install_requirements.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ DEVEL_REQUIREMENTS=(
141141
# pip packages needed to run examples.
142142
# TODO(dbort): Make each example publish its own requirements.txt
143143
EXAMPLES_REQUIREMENTS=(
144-
timm==0.6.13
144+
timm==1.0.7
145145
torchaudio=="2.4.0.${NIGHTLY_VERSION}"
146146
torchsr==1.0.4
147-
transformers==4.38.2
147+
transformers==4.42.4
148148
)
149149

150150
# Assemble the list of requirements to actually install.

0 commit comments

Comments
 (0)