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 +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 103103
104104(
105105 set -x
106- $PIP_EXECUTABLE install evaluate==" 0.4.3" lm-eval==" 0.4.2" " numpy>=1.17,<2.0 " psutil==" 6.0.0"
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 3232from torch .nn import functional as F
3333
3434from torchtune .models .clip import clip_vision_encoder
35+ import lm_eval # noqa
3536from torchtune .models .llama3_1 ._component_builders import llama3_1 as llama3_1_builder
3637from torchtune .models .llama3_2_vision ._component_builders import (
3738 llama3_2_vision_decoder ,
Original file line number Diff line number Diff line change 1010import torch ._dynamo .config
1111import torch ._inductor .config
1212
13- import lm_eval # noqa
14-
1513from torchchat .cli .builder import (
1614 _initialize_model ,
1715 _initialize_tokenizer ,
3028torch ._inductor .config .triton .cudagraphs = True
3129torch ._dynamo .config .cache_size_limit = 100000
3230
31+ import lm_eval
32+
3333from lm_eval .evaluator import evaluate
3434from lm_eval .models .huggingface import HFLM as eval_wrapper
3535from lm_eval .tasks import get_task_dict
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