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
e7f49cca
Commit
e7f49cca
authored
Apr 28, 2023
by
lintangsutawika
Browse files
updated yaml
parent
3ec68d38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
lm_eval/tasks/arc.yaml
lm_eval/tasks/arc.yaml
+4
-3
lm_eval/tasks/gsm8k.yaml
lm_eval/tasks/gsm8k.yaml
+12
-9
No files found.
lm_eval/tasks/arc.yaml
View file @
e7f49cca
...
@@ -5,6 +5,7 @@ validation_split: validation
...
@@ -5,6 +5,7 @@ validation_split: validation
test_split
:
test
test_split
:
test
doc_to_text
:
"
Q:
{{question}}
\n
A:"
doc_to_text
:
"
Q:
{{question}}
\n
A:"
doc_to_target
:
"
{%
set
answer_choices
=
doc['choices']['text']
%}{{answer_choices[int(doc['answerKey'])
-
1]}}"
doc_to_target
:
"
{%
set
answer_choices
=
doc['choices']['text']
%}{{answer_choices[int(doc['answerKey'])
-
1]}}"
metric_list
:
[
metric_list
:
[
exact_match
,
mean
,
true
]
-
metric
:
exact_match
]
aggregation
:
mean
higher_is_better
:
true
lm_eval/tasks/gsm8k.yaml
View file @
e7f49cca
...
@@ -2,12 +2,15 @@ dataset_path: gsm8k
...
@@ -2,12 +2,15 @@ dataset_path: gsm8k
dataset_name
:
main
dataset_name
:
main
training_split
:
train
training_split
:
train
test_split
:
test
test_split
:
test
doc_to_text
:
"
Question:
{{question}}
\n
Answer:"
doc_to_target
:
"
{{answer.split('###
')[-1]}}"
doc_to_target
:
"
{{answer}}"
# TODO: this field needs to change to account for the regexing that happens etc.
use_prompt
:
"
qa-basic:question-newline-answer"
metric_list
:
[
metric_list
:
[
acc
,
mean
,
true
]
-
metric
:
exact_match
]
aggregation
:
mean
filters
:
[
higher_is_better
:
true
[
"
regex"
,
[
"
regex"
,
"
take_first"
]]
ignore_case
:
true
]
ignore_punctuation
:
true
stop_sequences
:
[
"
\n
"
]
delimiter
:
"
\n
"
\ No newline at end of file
# filters: [
# ["regex", ["regex", "take_first"]]
# ]
\ No newline at end of file
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