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
157b4661
Commit
157b4661
authored
Mar 12, 2024
by
LucWeber
Browse files
Add few_shot specifications
parent
19eba1fe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
0 deletions
+5
-0
lm_eval/tasks/tinyBenchmarks/tinyArc.yaml
lm_eval/tasks/tinyBenchmarks/tinyArc.yaml
+1
-0
lm_eval/tasks/tinyBenchmarks/tinyGSM8k.yaml
lm_eval/tasks/tinyBenchmarks/tinyGSM8k.yaml
+1
-0
lm_eval/tasks/tinyBenchmarks/tinyHellaswag.yaml
lm_eval/tasks/tinyBenchmarks/tinyHellaswag.yaml
+1
-0
lm_eval/tasks/tinyBenchmarks/tinyMMLU.yaml
lm_eval/tasks/tinyBenchmarks/tinyMMLU.yaml
+1
-0
lm_eval/tasks/tinyBenchmarks/tinyWinogrande.yaml
lm_eval/tasks/tinyBenchmarks/tinyWinogrande.yaml
+1
-0
No files found.
lm_eval/tasks/tinyBenchmarks/tinyArc.yaml
View file @
157b4661
...
...
@@ -7,6 +7,7 @@ output_type: multiple_choice
training_split
:
train
validation_split
:
validation
test_split
:
test
num_fewshot
:
25
doc_to_text
:
"
Question:
{{question}}
\n
Answer:"
doc_to_target
:
"
{{choices.label.index(answerKey)}}"
doc_to_choice
:
"
{{choices.text}}"
...
...
lm_eval/tasks/tinyBenchmarks/tinyGSM8k.yaml
View file @
157b4661
...
...
@@ -8,6 +8,7 @@ output_type: generate_until
training_split
:
train
fewshot_split
:
train
test_split
:
test
num_fewshot
:
5
doc_to_text
:
"
Question:
{{question}}
\n
Answer:"
doc_to_target
:
"
{{answer}}"
#" {{answer.split('### ')[-1].rstrip()}}"
metric_list
:
...
...
lm_eval/tasks/tinyBenchmarks/tinyHellaswag.yaml
View file @
157b4661
...
...
@@ -6,6 +6,7 @@ dataset_name: null
output_type
:
multiple_choice
training_split
:
train
validation_split
:
validation
num_fewshot
:
10
test_split
:
null
process_docs
:
!function
utils_hellaswag.process_docs
doc_to_text
:
"
{{query}}"
...
...
lm_eval/tasks/tinyBenchmarks/tinyMMLU.yaml
View file @
157b4661
...
...
@@ -3,6 +3,7 @@ dataset_path: tinyBenchmarks/tinyMMLU
dataset_name
:
all
test_split
:
test
fewshot_split
:
dev
num_fewshot
:
0
fewshot_config
:
sampler
:
first_n
output_type
:
multiple_choice
...
...
lm_eval/tasks/tinyBenchmarks/tinyWinogrande.yaml
View file @
157b4661
...
...
@@ -4,6 +4,7 @@ dataset_name: winogrande_xl
output_type
:
multiple_choice
training_split
:
train
validation_split
:
validation
num_fewshot
:
5
doc_to_text
:
!function
utils_winogrande.doc_to_text
doc_to_target
:
!function
utils_winogrande.doc_to_target
doc_to_choice
:
!function
utils_winogrande.doc_to_choice
...
...
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