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
47a7d41c
Commit
47a7d41c
authored
Sep 25, 2023
by
ManuelFay
Browse files
match beleble paper prompts more closely
parent
2d6bc236
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
lm_eval/tasks/belebele/README.md
lm_eval/tasks/belebele/README.md
+3
-1
lm_eval/tasks/belebele/_default_template_yaml
lm_eval/tasks/belebele/_default_template_yaml
+2
-1
No files found.
lm_eval/tasks/belebele/README.md
View file @
47a7d41c
...
@@ -32,7 +32,9 @@ Homepage: https://github.com/facebookresearch/belebele
...
@@ -32,7 +32,9 @@ Homepage: https://github.com/facebookresearch/belebele
The following tasks evaluate languages in the Belebele dataset using loglikelihood-based multiple-choice scoring:
The following tasks evaluate languages in the Belebele dataset using loglikelihood-based multiple-choice scoring:
-
`cmmlu_{language}`
-
`belebele_{language}`
The variant evaluated here is the 0-shot or few-shot evaluation with English Instructions.
### Checklist
### Checklist
...
...
lm_eval/tasks/belebele/_default_template_yaml
View file @
47a7d41c
group: belebele
group: belebele
dataset_path: facebook/belebele
dataset_path: facebook/belebele
description: "Choose the best answer to the question.\n"
test_split: test
test_split: test
fewshot_split: test
fewshot_split: test
fewshot_config:
fewshot_config:
...
@@ -7,7 +8,7 @@ fewshot_config:
...
@@ -7,7 +8,7 @@ fewshot_config:
output_type: multiple_choice
output_type: multiple_choice
should_decontaminate: true
should_decontaminate: true
doc_to_decontamination_query: "{{question}}"
doc_to_decontamination_query: "{{question}}"
doc_to_text: "{{question.strip()}}\nA. {{mc_answer1}}\nB. {{mc_answer2}}\nC. {{mc_answer3}}\nD. {{mc_answer4}}\nAnswer:"
doc_to_text: "
P: {{flores_passage}}\nQ:
{{question.strip()}}\nA. {{mc_answer1}}\nB. {{mc_answer2}}\nC. {{mc_answer3}}\nD. {{mc_answer4}}\nAnswer:"
doc_to_choice: ["A", "B", "C", "D"]
doc_to_choice: ["A", "B", "C", "D"]
doc_to_target: "{{['1', '2', '3', '4'].index(correct_answer_num)}}"
doc_to_target: "{{['1', '2', '3', '4'].index(correct_answer_num)}}"
metric_list:
metric_list:
...
...
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