Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
7 changes: 7 additions & 0 deletions examples/llm_eval/lm_eval_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@
import warnings

import datasets
import lm_eval
from lm_eval import utils
from lm_eval.__main__ import cli_evaluate, parse_eval_args, setup_parser

if not lm_eval.__version__.startswith("0.4.8"):
warnings.warn(
f"lm_eval_hf.py is tested with lm-eval 0.4.8; found {lm_eval.__version__}. "
"Later versions may have incompatible API changes."
)
from lm_eval.api.model import T
from lm_eval.models.huggingface import HFLM
from quantization_utils import quantize_model
Expand Down
2 changes: 1 addition & 1 deletion examples/puzzletron/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lm-eval==0.4.10
lm-eval==0.4.8
math-verify
ray
# Likely works for transformers v5 also, but we need to test it
Expand Down
Loading