meg HF staff commited on
Commit
ad4daaa
1 Parent(s): 7689092

Adds check for EAI Harness differences in naming across versions

Browse files

tasks.ALL_TASKS fails, it appears they changed it to tasks.all_tasks()
This adds flexibility for both ways.

src/backend/run_eval_suite_harness.py CHANGED
@@ -34,7 +34,11 @@ def run_evaluation(eval_request: EvalRequest, task_names: list, num_fewshot: int
34
  "WARNING: --limit SHOULD ONLY BE USED FOR TESTING. REAL METRICS SHOULD NOT BE COMPUTED USING LIMIT."
35
  )
36
 
37
- task_names = utils.pattern_match(task_names, tasks.ALL_TASKS)
 
 
 
 
38
 
39
  logger.info(f"Selected Tasks: {task_names}")
40
 
 
34
  "WARNING: --limit SHOULD ONLY BE USED FOR TESTING. REAL METRICS SHOULD NOT BE COMPUTED USING LIMIT."
35
  )
36
 
37
+ try:
38
+ all_tasks = tasks.ALL_TASKS
39
+ except AttributeError:
40
+ all_tasks = tasks.all_tasks()
41
+ task_names = utils.pattern_match(task_names, all_tasks)
42
 
43
  logger.info(f"Selected Tasks: {task_names}")
44