Skip to content

Commit 0bfa422

Browse files
author
yifan_shen3
committed
fix CI: executorch example model test env is using older transformers, that does not support numpy 2.0
1 parent 5af7700 commit 0bfa422

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backends/apple/coreml/scripts/install_requirements.sh

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ cmake --build "$COREMLTOOLS_DIR_PATH/build" --parallel
4747

4848
echo "${green}ExecuTorch: Installing coremltools."
4949
pip 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
5055
STATUS=$?
5156
if [ $STATUS -ne 0 ]; then
5257
echo "${red}ExecuTorch: Failed to install coremltools."

0 commit comments

Comments
 (0)