File tree Expand file tree Collapse file tree 5 files changed +7
-19
lines changed
backends/apple/coreml/scripts Expand file tree Collapse file tree 5 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 11mpmath==1.3.0
2- numpy==1.21.3; python_version == '3.10'
3- numpy==1.23.2; python_version == '3.11'
4- numpy; python_version >= '3.12'
2+ numpy==2.0.0; python_version >= '3.10'
53PyYAML==6.0.1
64ruamel.yaml==0.17.32
75sympy==1.12
86timm==0.6.13
97tomli==2.0.1
108torchsr==1.0.4
11- transformers==4.38.0
9+ transformers==4.47.1
1210zstd==1.5.5.1
13- pandas==2.0.3; python_version == '3.10'
14- pandas; python_version >= '3.11'
11+ pandas==2.2.2; python_version >= '3.10'
1512pytest==7.2.0
1613pytest-cov==4.1.0
1714expecttest==0.1.6
Original file line number Diff line number Diff line change @@ -47,11 +47,7 @@ cmake --build "$COREMLTOOLS_DIR_PATH/build" --parallel
4747
4848echo " ${green} ExecuTorch: Installing coremltools."
4949pip install " $COREMLTOOLS_DIR_PATH "
50- # CoreMLTools have started supporting numpy 2.0,
51- # but ExecuTorch example model test env is still using older transformers,
52- # so for now we will need to downgrade numpy to 1.x
53- # TODO: Remove this numpy downgrade once later transformers starts to be used
54- pip install numpy==1.26.4
50+
5551STATUS=$?
5652if [ $STATUS -ne 0 ]; then
5753 echo " ${red} ExecuTorch: Failed to install coremltools."
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ pip install snakeviz sentencepiece
1313# Install tiktoken for tokenizer
1414pip install lm_eval==0.4.5
1515pip install tiktoken blobfile
16- # Restore numpy if >= 2.0
17- pip install " numpy<2.0"
1816
1917# Call the install helper for further setup
2018python examples/models/llama/install_requirement_helper.py
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ def python_is_compatible():
157157 "timm==1.0.7" ,
158158 f"torchaudio==2.6.0.{ NIGHTLY_VERSION } " if USE_PYTORCH_NIGHTLY else "torchaudio" ,
159159 "torchsr==1.0.4" ,
160- "transformers==4.46 .1" ,
160+ "transformers==4.47 .1" ,
161161]
162162
163163# pip packages needed for development.
Original file line number Diff line number Diff line change @@ -55,12 +55,9 @@ dependencies=[
5555 " flatbuffers" ,
5656 " hypothesis" ,
5757 " mpmath==1.3.0" ,
58- " numpy==1.21.3; python_version == '3.10'" ,
59- " numpy==1.23.2; python_version == '3.11'" ,
60- " numpy; python_version >= '3.12'" ,
58+ " numpy==2.0.0; python_version >= '3.10'" ,
6159 " packaging" ,
62- " pandas==2.0.3; python_version == '3.10'" ,
63- " pandas; python_version >= '3.11'" ,
60+ " pandas==2.2.2; python_version >= '3.10'" ,
6461 " parameterized" ,
6562 " pytest" ,
6663 " pytest-xdist" ,
You can’t perform that action at this time.
0 commit comments