Skip to content

Commit

Permalink
Nits (#2500)
Browse files Browse the repository at this point in the history
* fix test task

* dont call lm.chat_template each time
  • Loading branch information
baberabb authored Nov 20, 2024
1 parent 62b4364 commit 867413f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lm_eval/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ def _adjust_config(task_dict):
model_source=model,
model_args=model_args,
system_instruction=system_instruction,
chat_template=lm.chat_template(apply_chat_template),
chat_template=lm.chat_template(apply_chat_template)
if apply_chat_template
else None,
fewshot_as_multiturn=fewshot_as_multiturn,
)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
os.environ["TOKENIZERS_PARALLELISM"] = "false"
task_manager = tasks.TaskManager()
# Default Task
TASKS = ["metabench_winogrande"]
TASKS = ["arc_easy"]


def task_class():
Expand Down

0 comments on commit 867413f

Please sign in to comment.