meg-huggingface
commited on
Commit
·
ebd1de0
1
Parent(s):
6a6d34f
Handling change in name of ALL_TASKS
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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 |
|