Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions install/install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,3 @@ if [[ -x "$(command -v nvidia-smi)" ]]; then
$PYTHON_EXECUTABLE torchchat/utils/scripts/patch_triton.py
)
fi


(
set -x
$PIP_EXECUTABLE install evaluate=="0.4.3" lm-eval=="0.4.2" psutil=="6.0.0"
)
4 changes: 4 additions & 0 deletions install/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ blobfile
tomli >= 1.1.0 ; python_version < "3.11"
openai

# For Evaluation
evaluate==0.4.2
lm-eval==0.4.2

# Build tools
wheel
cmake>=3.24
Expand Down
3 changes: 0 additions & 3 deletions torchchat/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
SequenceParallel,
)
from torch.nn import functional as F
# TODO: remove this after we figure out where in torchtune an `evaluate` module
# is being imported, which is being confused with huggingface's `evaluate``.
import lm_eval # noqa
from torchtune.models.clip import clip_vision_encoder
from torchtune.models.llama3_1._component_builders import llama3_1 as llama3_1_builder
from torchtune.models.llama3_2_vision._component_builders import (
Expand Down
6 changes: 0 additions & 6 deletions torchchat/utils/scripts/install_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ install_executorch_python_libs() {
bash ./install_requirements.sh --pybind xnnpack
fi

# TODO: figure out the root cause of 'AttributeError: module 'evaluate'
# has no attribute 'utils'' error from evaluate CI jobs and remove
# `import lm_eval` from torchchat.py since it requires a specific version
# of numpy.
pip install numpy=='1.26.4'

pip3 list
popd
}
Expand Down
Loading