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
78 additions
and
156 deletions
+78
-156
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_twi.yaml
.../tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_twi.yaml
+7
-0
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_vai.yaml
.../tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_vai.yaml
+7
-0
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_wol.yaml
.../tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_wol.yaml
+7
-0
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_xho.yaml
.../tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_xho.yaml
+7
-0
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_yaml
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_yaml
+36
-0
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_yor.yaml
.../tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_yor.yaml
+7
-0
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_zul.yaml
.../tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_zul.yaml
+7
-0
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_amh.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_amh.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_eng.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_eng.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ewe.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ewe.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_fra.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_fra.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_hau.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_hau.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ibo.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ibo.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_kin.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_kin.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lin.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lin.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lug.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lug.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_orm.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_orm.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_sna.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_sna.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_sot.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_sot.yaml
+0
-12
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_swa.yaml
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_swa.yaml
+0
-12
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/direct_cot/prompt_5/afrimgsm_cot_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_yaml
task
:
afrimgsm_cot_twi_prompt_5
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_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_yaml
task
:
afrimgsm_cot_vai_prompt_5
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_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_yaml
task
:
afrimgsm_cot_wol_prompt_5
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_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_yaml
task
:
afrimgsm_cot_xho_prompt_5
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_yaml
0 → 100644
View file @
601be343
tag:
- afrimgsm_cot_tasks
- afrimgsm_cot_tasks_prompt_5
dataset_path: masakhane/afrimgsm
dataset_name: null # Overridden by language-specific config.
output_type: generate_until
training_split: train
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|>
- <|eot_id|>
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/direct_cot/prompt_5/afrimgsm_cot_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_yaml
task
:
afrimgsm_cot_yor_prompt_5
lm_eval/tasks/afrimgsm/direct_cot/prompt_5/afrimgsm_cot_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_yaml
task
:
afrimgsm_cot_zul_prompt_5
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_amh.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
amh
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[15:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_amh
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_eng.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
eng
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_eng
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ewe.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
ewe
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_ewe
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_fra.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
fra
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_fra
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_hau.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
hau
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_hau
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ibo.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
ibo
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_ibo
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_kin.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
kin
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_kin
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lin.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
lin
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_lin
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lug.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
lug
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_lug
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_orm.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
orm
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_orm
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_sna.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
sna
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_sna
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_sot.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
sot
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_sot
lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_swa.yaml
deleted
100644 → 0
View file @
d0884a96
# Generated by utils.py
dataset_name
:
swa
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[21:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nStep-by-Step
Answer:"}}{%
else
%}{{"Question:
"+question+"\nStep-by-Step
Answer:"}}{%
endif
%}'
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_en_cot_swa
Prev
1
…
10
11
12
13
14
15
16
17
18
…
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