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 +4
-13
lines changed Expand file tree Collapse file tree 4 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,3 @@ if [[ -x "$(command -v nvidia-smi)" ]]; then
9999 $PYTHON_EXECUTABLE torchchat/utils/scripts/patch_triton.py
100100 )
101101fi
102-
103-
104- (
105- set -x
106- $PIP_EXECUTABLE install evaluate==" 0.4.3" lm-eval==" 0.4.2" psutil==" 6.0.0"
107- )
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ blobfile
1818tomli >= 1.1.0 ; python_version < "3.11"
1919openai
2020
21+ # For Evaluation
22+ evaluate == 0.4.2
23+ lm-eval == 0.4.2
24+
2125# Build tools
2226wheel
2327cmake >= 3.24
Original file line number Diff line number Diff line change 3232from torch .nn import functional as F
3333# TODO: remove this after we figure out where in torchtune an `evaluate` module
3434# is being imported, which is being confused with huggingface's `evaluate``.
35- import lm_eval # noqa
3635from torchtune .models .clip import clip_vision_encoder
3736from torchtune .models .llama3_1 ._component_builders import llama3_1 as llama3_1_builder
3837from torchtune .models .llama3_2_vision ._component_builders import (
Original file line number Diff line number Diff line change @@ -94,12 +94,6 @@ install_executorch_python_libs() {
9494 bash ./install_requirements.sh --pybind xnnpack
9595 fi
9696
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-
10397 pip3 list
10498 popd
10599}
You can’t perform that action at this time.
0 commit comments