We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5af7700 commit 0bfa422Copy full SHA for 0bfa422
backends/apple/coreml/scripts/install_requirements.sh
@@ -47,6 +47,11 @@ cmake --build "$COREMLTOOLS_DIR_PATH/build" --parallel
47
48
echo "${green}ExecuTorch: Installing coremltools."
49
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
55
STATUS=$?
56
if [ $STATUS -ne 0 ]; then
57
echo "${red}ExecuTorch: Failed to install coremltools."
0 commit comments