meg-huggingface commited on
Commit
3191d56
1 Parent(s): 6bf0543

Editing how all_tasks is called in light of EAI's setup

Browse files
src/backend/run_eval_suite_harness.py CHANGED
@@ -4,6 +4,7 @@ import logging
4
  from datetime import datetime
5
 
6
  from lm_eval import tasks, evaluator, utils
 
7
 
8
  from src.envs import RESULTS_REPO, API
9
  from src.backend.manage_requests import EvalRequest
@@ -37,7 +38,8 @@ def run_evaluation(eval_request: EvalRequest, task_names: list, num_fewshot: int
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}")
 
4
  from datetime import datetime
5
 
6
  from lm_eval import tasks, evaluator, utils
7
+ from lm_eval.tasks import TaskManager
8
 
9
  from src.envs import RESULTS_REPO, API
10
  from src.backend.manage_requests import EvalRequest
 
38
  try:
39
  all_tasks = tasks.ALL_TASKS
40
  except AttributeError:
41
+ task_manager = TaskManager()
42
+ all_tasks = task_manager.all_tasks
43
  task_names = utils.pattern_match(task_names, all_tasks)
44
 
45
  logger.info(f"Selected Tasks: {task_names}")