Skip to content

Commit 75af52d

Browse files
committed
tmp
1 parent 5b3cd26 commit 75af52d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lighteval/tasks/extended/instruct.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ def belebele_prompt(line, task_name: str = None):
126126
]
127127
]
128128

129-
TASKS_TABLE.extend(BELEBELE_TASKS)
130-
131129

132130
MMLU_SUBSETS = [
133131
"abstract_algebra",
@@ -224,7 +222,7 @@ def prompt(self, line, task_name: str = None):
224222
)
225223

226224

227-
global_mmlu_tasks = [
225+
GLOBAL_MMLU_TASKS = [
228226
LightevalTaskConfig(
229227
name=f"global_mmlu_instruct_{sensitivity_label.lower()}_{language.value}:{subset}",
230228
prompt_function=GlobalMMLUPrompt(language).prompt,
@@ -314,7 +312,7 @@ def mmlu_pro(line, task_name: str = None):
314312

315313
mmlu_pro = LightevalTaskConfig(
316314
name="mmlu_pro",
317-
suite=["lighteval"],
315+
suite=["extended"],
318316
prompt_function=mmlu_pro,
319317
hf_repo="TIGER-Lab/MMLU-Pro",
320318
hf_subset="default",
@@ -344,3 +342,7 @@ def mmlu_pro(line, task_name: str = None):
344342
trust_dataset=True,
345343
version=0,
346344
)
345+
346+
TASKS_TABLE.extend(BELEBELE_TASKS)
347+
TASKS_TABLE.extend(GLOBAL_MMLU_TASKS)
348+
TASKS_TABLE.append(mmlu_pro)

0 commit comments

Comments
 (0)