Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 7114449

Browse files
committed
fix ci errors
1 parent 088cc06 commit 7114449

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/workflows/pull.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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: |

torchchat/utils/scripts/install_et.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,4 @@ pushd ${TORCHCHAT_ROOT}
1919
find_cmake_prefix_path
2020
clone_executorch
2121
install_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'
2822
popd

torchchat/utils/scripts/install_utils.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)