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
248b45da
Commit
248b45da
authored
Jul 14, 2023
by
lintangsutawika
Browse files
config fixes
parent
70e3ed25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
lm_eval/tasks/arc/arc_easy.yaml
lm_eval/tasks/arc/arc_easy.yaml
+1
-1
lm_eval/tasks/hellaswag/hellaswag.yaml
lm_eval/tasks/hellaswag/hellaswag.yaml
+2
-3
No files found.
lm_eval/tasks/arc/arc_easy.yaml
View file @
248b45da
...
@@ -9,7 +9,7 @@ training_split: train
...
@@ -9,7 +9,7 @@ training_split: train
validation_split
:
validation
validation_split
:
validation
test_split
:
test
test_split
:
test
doc_to_text
:
"
Question:
{{question}}
\n
Answer:"
doc_to_text
:
"
Question:
{{question}}
\n
Answer:"
doc_to_target
:
"
{{choices
['text'][choices
.label.index(answerKey)
]
}}"
doc_to_target
:
"
{{choices.label.index(answerKey)}}"
doc_to_choice
:
"
{{choices.text}}"
doc_to_choice
:
"
{{choices.text}}"
should_decontaminate
:
true
should_decontaminate
:
true
doc_to_decontamination_query
:
"
Question:
{{question}}
\n
Answer:"
doc_to_decontamination_query
:
"
Question:
{{question}}
\n
Answer:"
...
...
lm_eval/tasks/hellaswag/hellaswag.yaml
View file @
248b45da
...
@@ -7,10 +7,9 @@ output_type: multiple_choice
...
@@ -7,10 +7,9 @@ output_type: multiple_choice
training_split
:
train
training_split
:
train
validation_split
:
validation
validation_split
:
validation
test_split
:
null
test_split
:
null
template_aliases
:
"
{%
set
gold
=
label
|
int
%}{%
set
answer_choices
=
endings|map('trim')|map('replace',
'
[title]',
'.
')|map('regex_replace',
'
\\
[.*?
\\
]',
'')|map('replace',
'
',
'
')|list
%}"
doc_to_text
:
"
{%
set
text
=
activity_label
~
':
'
~
ctx_a
~
'
'
~
ctx_b.capitalize()
%}{{text|trim|replace('
[title]',
'.
')|regex_replace('
\\
[.*?
\\
]',
'')|replace('
',
'
')}}"
doc_to_text
:
"
{%
set
text
=
activity_label
~
':
'
~
ctx_a
~
'
'
~
ctx_b.capitalize()
%}{{text|trim|replace('
[title]',
'.
')|regex_replace('
\\
[.*?
\\
]',
'')|replace('
',
'
')}}"
doc_to_target
:
"
{{
answer_choices[gold]
}}"
doc_to_target
:
"
{{
label
}}"
gold_alias
:
"
{{gold
}}"
doc_to_choice
:
"
{{endings|map('trim')|map('replace',
'
[title]',
'.
')|map('regex_replace',
'
\\
[.*?
\\
]',
'')|map('replace',
'
',
'
')|list
}}"
metric_list
:
metric_list
:
-
metric
:
acc
-
metric
:
acc
aggregation
:
mean
aggregation
:
mean
...
...
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