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
ebe41744
Commit
ebe41744
authored
Jul 01, 2024
by
JessicaOjo
Browse files
cleanups and readmes
parent
da211969
Changes
166
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
5 additions
and
471 deletions
+5
-471
lm_eval/tasks/afrimgsm/direct_native/direct_native_yaml
lm_eval/tasks/afrimgsm/direct_native/direct_native_yaml
+0
-35
lm_eval/tasks/afrimgsm/en_cot/cot_yaml
lm_eval/tasks/afrimgsm/en_cot/cot_yaml
+5
-3
lm_eval/tasks/afrimgsm/gpt_direct.sh
lm_eval/tasks/afrimgsm/gpt_direct.sh
+0
-25
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_amh.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_amh.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_eng.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_eng.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_ewe.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_ewe.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_fra.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_fra.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_hau.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_hau.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_ibo.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_ibo.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_kin.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_kin.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_lin.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_lin.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_lug.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_lug.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_orm.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_orm.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_sna.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_sna.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_sot.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_sot.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_swa.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_swa.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_twi.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_twi.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_wol.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_wol.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_xho.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_xho.yaml
+0
-24
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_yor.yaml
...al/tasks/afrimgsm/native_cot/afrimgsm_native_cot_yor.yaml
+0
-24
No files found.
lm_eval/tasks/afrimgsm/direct_native/direct_native_yaml
deleted
100644 → 0
View file @
da211969
# This file will be included in the generated language-specific task configs.
# It doesn't have a yaml file extension as it is not meant to be imported directly
# by the harness.
group: afrimgsm_direct
dataset_path: masakhane/afrimgsm
dataset_name: null # Overridden by language-specific config.
output_type: generate_until
# training_split: train
test_split: test
target_delimiter: ""
generation_kwargs:
until:
- "\n\n"
- "\n"
do_sample: false
temperature: 0.0
filter_list:
- name: remove_whitespace
filter:
- function: remove_whitespace
- function: take_first
- filter:
- function: regex
group_select: -1
regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+)
- function: take_first
name: flexible-extract
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
metadata:
version: 2.0
lm_eval/tasks/afrimgsm/en_cot/cot_yaml
View file @
ebe41744
# This file will be included in the generated language-specific task configs.
# It doesn't have a yaml file extension as it is not meant to be imported directly
# by the harness.
group: afrimgsm_direct
# It doesn't have a yaml file extension as it is not meant to be imported directly by the harness.
group:
- mgsm
- afrimgsm
- afrimgsm_en_cot
dataset_path: masakhane/afrimgsm
dataset_name: null # Overridden by language-specific config.
output_type: generate_until
...
...
lm_eval/tasks/afrimgsm/gpt_direct.sh
deleted
100644 → 0
View file @
da211969
#!/bin/bash
models
=(
"gpt-3.5-turbo"
"gpt-4-0125-preview"
)
task
=
afrimgsm_direct_amh,afrimgsm_direct_eng,afrimgsm_direct_ewe,afrimgsm_direct_fra,afrimgsm_direct_hau,afrimgsm_direct_ibo,afrimgsm_direct_kin,afrimgsm_direct_lin,afrimgsm_direct_lug,afrimgsm_direct_orm,afrimgsm_direct_sna,afrimgsm_direct_sot,afrimgsm_direct_swa,afrimgsm_direct_twi,afrimgsm_direct_wol,afrimgsm_direct_xho,afrimgsm_direct_yor,afrimgsm_direct_zul
for
model
in
"
${
models
[@]
}
"
do
echo
"Evaluating model:
$model
"
for
fewshot
in
0 2 4 6 8
do
export
OUTPUT_DIR
=
results/
$fewshot
mkdir
-p
"
$OUTPUT_DIR
"
lm_eval
--model
openai-chat-completions
\
--model_args
model
=
"
${
model
}
"
\
--tasks
$task
\
--output_path
"
$OUTPUT_DIR
"
\
--num_fewshot
$fewshot
\
--verbosity
DEBUG
done
done
\ No newline at end of file
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_amh.yaml
deleted
100644 → 0
View file @
da211969
# 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+"\nበቅደም
ተከተል
መልስ:"}}{%
else
%}{{"ጥያቄ:
"+question+"\nበቅደም
ተከተል
መልስ:"}}{%
endif
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
መልሱ (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
ጥያቄ:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_amh
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_eng.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
The answer is (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_eng
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_ewe.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
ŋuɖoɖoae nye (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_ewe
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_fra.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
La réponse est(\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_fra
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_hau.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Amsar ita ce (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_hau
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_ibo.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Azịza ya bụ (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_ibo
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_kin.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Igisubizo ni (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_kin
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_lin.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Eyano ezali (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_lin
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_lug.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Ansa eri (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_lug
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_orm.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Deebiin isaa (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_orm
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_sna.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Mhinduro kumubvunzo ndi (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_sna
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_sot.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Karabo ke (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_sot
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_swa.yaml
deleted
100644 → 0
View file @
da211969
# 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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Jibu ni (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_swa
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_twi.yaml
deleted
100644 → 0
View file @
da211969
# Generated by utils.py
dataset_name
:
twi
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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Ne nnyiano yɛ (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_twi
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_wol.yaml
deleted
100644 → 0
View file @
da211969
# Generated by utils.py
dataset_name
:
wol
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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Tontu li (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_wol
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_xho.yaml
deleted
100644 → 0
View file @
da211969
# Generated by utils.py
dataset_name
:
xho
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
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Impendulo ngu (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Question:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_xho
lm_eval/tasks/afrimgsm/native_cot/afrimgsm_native_cot_yor.yaml
deleted
100644 → 0
View file @
da211969
# Generated by utils.py
dataset_name
:
yor
doc_to_target
:
'
{%
if
answer
is
not
none
%}{{answer[16:]}}{%
else
%}{{answer_number|string}}{%
endif
%}'
doc_to_text
:
'
{%
if
answer
is
not
none
%}{{question+"\nÌdáhùn
lẹ́sẹsẹ:"}}{%
else
%}{{"Ìbéèrè:
"+question+"\nÌdáhùn
lẹ́sẹsẹ:"}}{%
endif
%}'
filter_list
:
-
filter
:
-
function
:
regex
regex_pattern
:
Ìdáhùn náà ni (\-?[0-9\.\,]+)
-
function
:
take_first
name
:
strict-match
-
filter
:
-
function
:
regex
group_select
:
-1
regex_pattern
:
(-?[$0-9.,]{2,})|(-?[0-9]+)
-
function
:
take_first
name
:
flexible-extract
generation_kwargs
:
do_sample
:
false
until
:
-
'
Ìbéèrè:'
-
</s>
-
<|im_end|>
include
:
cot_yaml
task
:
afrimgsm_native_cot_yor
Prev
1
2
3
4
5
6
…
9
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