Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
94334a79
Commit
94334a79
authored
Oct 13, 2024
by
lintang
Browse files
quick and dirty implementation of m-mmlu
parent
c3b40173
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
73 additions
and
0 deletions
+73
-0
lm_eval/tasks/m_mmlu/_default_template_yaml
lm_eval/tasks/m_mmlu/_default_template_yaml
+17
-0
lm_eval/tasks/m_mmlu/arabic.yaml
lm_eval/tasks/m_mmlu/arabic.yaml
+4
-0
lm_eval/tasks/m_mmlu/bengali.yaml
lm_eval/tasks/m_mmlu/bengali.yaml
+4
-0
lm_eval/tasks/m_mmlu/brazilian_portuguese.yaml
lm_eval/tasks/m_mmlu/brazilian_portuguese.yaml
+4
-0
lm_eval/tasks/m_mmlu/french.yaml
lm_eval/tasks/m_mmlu/french.yaml
+4
-0
lm_eval/tasks/m_mmlu/german.yaml
lm_eval/tasks/m_mmlu/german.yaml
+4
-0
lm_eval/tasks/m_mmlu/hindi.yaml
lm_eval/tasks/m_mmlu/hindi.yaml
+4
-0
lm_eval/tasks/m_mmlu/indonesian.yaml
lm_eval/tasks/m_mmlu/indonesian.yaml
+4
-0
lm_eval/tasks/m_mmlu/italian.yaml
lm_eval/tasks/m_mmlu/italian.yaml
+4
-0
lm_eval/tasks/m_mmlu/japanese.yaml
lm_eval/tasks/m_mmlu/japanese.yaml
+4
-0
lm_eval/tasks/m_mmlu/korean.yaml
lm_eval/tasks/m_mmlu/korean.yaml
+4
-0
lm_eval/tasks/m_mmlu/simplified_chinese.yaml
lm_eval/tasks/m_mmlu/simplified_chinese.yaml
+4
-0
lm_eval/tasks/m_mmlu/spanish.yaml
lm_eval/tasks/m_mmlu/spanish.yaml
+4
-0
lm_eval/tasks/m_mmlu/swahili.yaml
lm_eval/tasks/m_mmlu/swahili.yaml
+4
-0
lm_eval/tasks/m_mmlu/yoruba.yaml
lm_eval/tasks/m_mmlu/yoruba.yaml
+4
-0
No files found.
lm_eval/tasks/m_mmlu/_default_template_yaml
0 → 100644
View file @
94334a79
dataset_path: openai/MMMLU
dataset_name: by_language
tag: mmmlu
fewshot_config:
sampler: first_n
output_type: multiple_choice
doc_to_text: "{{Question.strip()}}\nA. {{A}}\nB. {{B}}\nC. {{C}}\nD. {{D}}\nAnswer:"
doc_to_choice: ["A", "B", "C", "D"]
doc_to_target: Answer
metric_list:
- metric: acc
aggregation: mean
higher_is_better: true
metadata:
version: 1.0
dataset_kwargs:
trust_remote_code: true
lm_eval/tasks/m_mmlu/arabic.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_arabic
test_split
:
AR_XY
fewshot_split
:
AR_XY
lm_eval/tasks/m_mmlu/bengali.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_bengali
test_split
:
BN_BD
fewshot_split
:
BN_BD
lm_eval/tasks/m_mmlu/brazilian_portuguese.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_brazilian_portuguese
test_split
:
PT_BR
fewshot_split
:
PT_BR
lm_eval/tasks/m_mmlu/french.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_french
test_split
:
FR_FR
fewshot_split
:
FR_FR
lm_eval/tasks/m_mmlu/german.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_german
test_split
:
DE_DE
fewshot_split
:
DE_DE
lm_eval/tasks/m_mmlu/hindi.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_hindi
test_split
:
HI_IN
fewshot_split
:
HI_IN
lm_eval/tasks/m_mmlu/indonesian.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_indonesian
test_split
:
ID_ID
fewshot_split
:
ID_ID
lm_eval/tasks/m_mmlu/italian.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_italian
test_split
:
IT_IT
fewshot_split
:
IT_IT
lm_eval/tasks/m_mmlu/japanese.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_japanese
test_split
:
JA_JP
fewshot_split
:
JA_JP
lm_eval/tasks/m_mmlu/korean.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_korean
test_split
:
KO_KR
fewshot_split
:
KO_KR
lm_eval/tasks/m_mmlu/simplified_chinese.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_chinese
test_split
:
ZH_CN
fewshot_split
:
ZH_CN
lm_eval/tasks/m_mmlu/spanish.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_spanish
test_split
:
ES_LA
fewshot_split
:
ES_LA
lm_eval/tasks/m_mmlu/swahili.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_swahili
test_split
:
SW_KE
fewshot_split
:
SW_KE
lm_eval/tasks/m_mmlu/yoruba.yaml
0 → 100644
View file @
94334a79
include
:
_default_template_yaml
task
:
mmmlu_yoruba
test_split
:
YO_NG
fewshot_split
:
YO_NG
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment