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

Commit ce4f2bf

Browse files
committed
Fix Evaluate to a version
1 parent 8278aa2 commit ce4f2bf

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

install/install_requirements.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,3 @@ if [[ -x "$(command -v nvidia-smi)" ]]; then
9999
$PYTHON_EXECUTABLE torchchat/utils/scripts/patch_triton.py
100100
)
101101
fi
102-
103-
104-
(
105-
set -x
106-
$PIP_EXECUTABLE install evaluate=="0.4.3" lm-eval=="0.4.2" psutil=="6.0.0"
107-
)

install/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ blobfile
1818
tomli >= 1.1.0 ; python_version < "3.11"
1919
openai
2020

21+
# For Evaluation
22+
evaluate==0.4.2
23+
lm-eval==0.4.2
24+
2125
# Build tools
2226
wheel
2327
cmake>=3.24

torchchat/model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from 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
3635
from torchtune.models.clip import clip_vision_encoder
3736
from torchtune.models.llama3_1._component_builders import llama3_1 as llama3_1_builder
3837
from torchtune.models.llama3_2_vision._component_builders import (

torchchat/utils/scripts/install_utils.sh

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

0 commit comments

Comments
 (0)