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
601be343
Commit
601be343
authored
Jun 23, 2025
by
Baber
Browse files
Merge branch 'main' into feature/eval_from_config
parents
d0884a96
68c3a811
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
129 additions
and
52 deletions
+129
-52
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_lin.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_lin.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_lug.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_lug.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_orm.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_orm.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_sna.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_sna.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_sot.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_sot.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_swa.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_swa.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_twi.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_twi.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_vai.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_vai.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_wol.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_wol.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_xho.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_xho.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_yaml
...rimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_yaml
+32
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_yor.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_yor.yaml
+7
-0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_zul.yaml
...sm/translate_cot/prompt_5/afrimgsm_cot_translate_zul.yaml
+7
-0
lm_eval/tasks/afrimmlu/direct/afrimmlu.yaml
lm_eval/tasks/afrimmlu/direct/afrimmlu.yaml
+13
-0
lm_eval/tasks/afrimmlu/direct/afrimmlu_common_yaml
lm_eval/tasks/afrimmlu/direct/afrimmlu_common_yaml
+0
-37
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_amh.yaml
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_amh.yaml
+0
-3
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_eng.yaml
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_eng.yaml
+0
-3
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_ewe.yaml
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_ewe.yaml
+0
-3
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_fra.yaml
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_fra.yaml
+0
-3
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_hau.yaml
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_hau.yaml
+0
-3
No files found.
Too many changes to show.
To preserve performance only
1000 of 1000+
files are displayed.
Plain diff
Email patch
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_lin.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
lin
doc_to_text
:
"
For
mathematical
questions
provided
in
Lingala
language.
Supply
the
\
\
accurate
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\
\ \n
Step
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_lin_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_lug.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
lug
doc_to_text
:
"
For
mathematical
questions
provided
in
Luganda
language.
Supply
the
\
\
accurate
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\
\ \n
Step
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_lug_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_orm.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
orm
doc_to_text
:
"
For
mathematical
questions
provided
in
Oromo
language.
Supply
the
accurate
\
\
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\n
Step
\
\
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_orm_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_sna.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
sna
doc_to_text
:
"
For
mathematical
questions
provided
in
chiShona
language.
Supply
the
\
\
accurate
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\
\ \n
Step
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_sna_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_sot.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
sot
doc_to_text
:
"
For
mathematical
questions
provided
in
Sesotho
language.
Supply
the
\
\
accurate
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\
\ \n
Step
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_sot_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_swa.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
swa
doc_to_text
:
"
For
mathematical
questions
provided
in
Swahili
language.
Supply
the
\
\
accurate
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\
\ \n
Step
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_swa_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_twi.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
twi
doc_to_text
:
"
For
mathematical
questions
provided
in
Twi
language.
Supply
the
accurate
\
\
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\n
Step
\
\
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_twi_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_vai.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
vai
doc_to_text
:
"
For
mathematical
questions
provided
in
Vai
language.
Supply
the
accurate
\
\
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\n
Step
\
\
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_vai_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_wol.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
wol
doc_to_text
:
"
For
mathematical
questions
provided
in
Wolof
language.
Supply
the
accurate
\
\
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\n
Step
\
\
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_wol_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_xho.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
xho
doc_to_text
:
"
For
mathematical
questions
provided
in
isiXhosa
language.
Supply
the
\
\
accurate
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\
\ \n
Step
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_xho_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_yaml
0 → 100644
View file @
601be343
tag: afrimgsm_tt_cot_tasks
dataset_path: masakhane/afrimgsm-translate-test
dataset_name: null # Overridden by language-specific config.
output_type: generate_until
test_split: test
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
generation_kwargs:
do_sample: false
until:
- 'Question:'
- </s>
- <|im_end|>
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
filter_list:
- name: "strict-match"
filter:
- function: "regex"
regex_pattern: "The answer is (\\-?[0-9\\.\\,]+)"
- function: "take_first"
- filter:
- function: regex
group_select: -1
regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+)
- function: take_first
name: flexible-extract
metadata:
version: 2.0
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_yor.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
yor
doc_to_text
:
"
For
mathematical
questions
provided
in
Yoruba
language.
Supply
the
accurate
\
\
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\n
Step
\
\
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_yor_prompt_5
lm_eval/tasks/afrimgsm/translate_cot/prompt_5/afrimgsm_cot_translate_zul.yaml
0 → 100644
View file @
601be343
# Generated by utils.py
dataset_name
:
zul
doc_to_text
:
"
For
mathematical
questions
provided
in
Zulu
language.
Supply
the
accurate
\
\
step
by
step
answer
to
the
provided
question.
\n\n
Question:
{{question}}
\n
Step
\
\
by
step
answer:
"
include
:
afrimgsm_cot_translate_yaml
task
:
afrimgsm_cot_translate_zul_prompt_5
lm_eval/tasks/afrimmlu/direct/afrimmlu.yaml
0 → 100644
View file @
601be343
group
:
afrimmlu-irokobench
task
:
-
afrimmlu_tasks_prompt_1
-
afrimmlu_tasks_prompt_2
-
afrimmlu_tasks_prompt_3
-
afrimmlu_tasks_prompt_4
-
afrimmlu_tasks_prompt_5
aggregate_metric_list
:
-
metric
:
acc
aggregation
:
mean
weight_by_size
:
true
metadata
:
version
:
2
lm_eval/tasks/afrimmlu/direct/afrimmlu_common_yaml
deleted
100644 → 0
View file @
d0884a96
tag:
- afrimmlu
- afrimmlu_direct
task: null
dataset_path: masakhane/afrimmlu
dataset_name: null
output_type: multiple_choice
validation_split: validation
test_split: test
fewshot_split: validation
doc_to_text: !function utils.doc_to_text
doc_to_target: "{{['A', 'B', 'C', 'D'].index(answer)}}"
doc_to_choice: !function utils.doc_to_choice
should_decontaminate: true
doc_to_decontamination_query: "Question: {{question}}\nAnswer:"
metric_list:
- metric: f1
aggregation: !function utils.weighted_f1_score
# aggregation: mean
average: weighted
hf_evaluate: true
higher_is_better: True
ignore_case: true
ignore_punctuation: true
regexes_to_ignore:
- ","
- "\\$"
- metric: acc
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
regexes_to_ignore:
- ","
- "\\$"
metadata:
version: 1.0
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_amh.yaml
deleted
100644 → 0
View file @
d0884a96
dataset_name
:
amh
include
:
afrimmlu_common_yaml
task
:
afrimmlu_direct_amh
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_eng.yaml
deleted
100644 → 0
View file @
d0884a96
dataset_name
:
eng
include
:
afrimmlu_common_yaml
task
:
afrimmlu_direct_eng
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_ewe.yaml
deleted
100644 → 0
View file @
d0884a96
dataset_name
:
ewe
include
:
afrimmlu_common_yaml
task
:
afrimmlu_direct_ewe
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_fra.yaml
deleted
100644 → 0
View file @
d0884a96
dataset_name
:
fra
include
:
afrimmlu_common_yaml
task
:
afrimmlu_direct_fra
lm_eval/tasks/afrimmlu/direct/afrimmlu_direct_hau.yaml
deleted
100644 → 0
View file @
d0884a96
dataset_name
:
hau
include
:
afrimmlu_common_yaml
task
:
afrimmlu_direct_hau
Prev
1
…
21
22
23
24
25
26
27
28
29
…
50
Next
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