This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -904,14 +904,12 @@ jobs:
904904 echo "et-git-hash=$(cat ${TORCHCHAT_ROOT}/install/.pins/et-pin.txt)" >> "$GITHUB_ENV"
905905 - name : Load or install ET
906906 id : install-et
907- uses : actions/cache@v3
908- env :
909- cache-key : et-build-${{runner.os}}-${{runner.arch}}-${{env.et-git-hash}}
907+ uses : actions/cache@v4
910908 with :
911- path : ./et-build
912- key : ${{env.cache-key}}
913- restore-keys : |
914- ${{env.cache-key }}
909+ path : |
910+ ./et-build
911+ ./torchchat/utils/scripts
912+ key : et-build- ${{runner.os}}-${{runner.arch}}-${{ env.et-git-hash}}-${{ hashFiles('**/install_et.sh') }}
915913 - if : ${{ steps.install-et.outputs.cache-hit != 'true' }}
916914 continue-on-error : true
917915 run : |
Original file line number Diff line number Diff line change 103103
104104(
105105 set -x
106- $PIP_EXECUTABLE install lm-eval==" 0.4.2"
106+ $PIP_EXECUTABLE install evaluate== " 0.4.3 " lm-eval==" 0.4.2" psutil== " 6.0.0 "
107107)
Original file line number Diff line number Diff line change 3030 SequenceParallel ,
3131)
3232from torch .nn import functional as F
33-
33+ # TODO: remove this after we figure out where in torchtune an `evaluate` module
34+ # is being imported, which is being confused with huggingface's `evaluate``.
35+ import lm_eval # noqa
3436from torchtune .models .clip import clip_vision_encoder
3537from torchtune .models .llama3_1 ._component_builders import llama3_1 as llama3_1_builder
3638from torchtune .models .llama3_2_vision ._component_builders import (
Original file line number Diff line number Diff line change @@ -20,4 +20,9 @@ find_cmake_prefix_path
2020clone_executorch
2121install_executorch_libs $ENABLE_ET_PYBIND
2222install_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'
2328popd
You can’t perform that action at this time.
0 commit comments