This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -918,10 +918,10 @@ jobs:
918918 - name : Install ExecuTorch python
919919 run : |
920920 echo "Install ExecuTorch python"
921- pushd et-build/src/executorch
922- chmod +x ./install_requirements.sh
923- chmod +x ./install_requirements.py
924- ./install_requirements.sh
921+ export TORCHCHAT_ROOT=$PWD
922+ ENABLE_ET_PYBIND="${1:-true}"
923+ source "torchchat/utils/scripts/install_utils.sh"
924+ install_executorch_python_libs $ENABLE_ET_PYBIND
925925 popd
926926 - name : Install runner
927927 run : |
@@ -1083,10 +1083,10 @@ jobs:
10831083 - name : Install ExecuTorch python
10841084 run : |
10851085 echo "Install ExecuTorch python"
1086- pushd et-build/src/executorch
1087- chmod +x ./install_requirements.sh
1088- chmod +x ./install_requirements.py
1089- ./install_requirements.sh
1086+ export TORCHCHAT_ROOT=$PWD
1087+ ENABLE_ET_PYBIND="${1:-true}"
1088+ source "torchchat/utils/scripts/install_utils.sh"
1089+ install_executorch_python_libs $ENABLE_ET_PYBIND
10901090 popd
10911091 - name : Install runner
10921092 run : |
Original file line number Diff line number Diff line change @@ -19,10 +19,4 @@ pushd ${TORCHCHAT_ROOT}
1919find_cmake_prefix_path
2020clone_executorch
2121install_executorch_libs $ENABLE_ET_PYBIND
22- install_executorch_python_libs $ENABLE_ET_PYBIND
23- # TODO: figure out the root cause of 'AttributeError: module 'evaluate'
24- # has no attribute 'utils'' error from evaluate CI jobs and remove
25- # `import lm_eval` from torchchat.py since it requires a specific version
26- # of numpy.
27- pip install numpy==' 1.26.4'
2822popd
Original file line number Diff line number Diff line change @@ -93,6 +93,13 @@ install_executorch_python_libs() {
9393 echo " Installing pybind"
9494 bash ./install_requirements.sh --pybind xnnpack
9595 fi
96+
97+ # TODO: figure out the root cause of 'AttributeError: module 'evaluate'
98+ # has no attribute 'utils'' error from evaluate CI jobs and remove
99+ # `import lm_eval` from torchchat.py since it requires a specific version
100+ # of numpy.
101+ pip install numpy==' 1.26.4'
102+
96103 pip3 list
97104 popd
98105}
You can’t perform that action at this time.
0 commit comments