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
8b9e5fa8
Commit
8b9e5fa8
authored
Jul 01, 2023
by
nikuya3
Browse files
[hellaswag] cast gold label to int
parent
d15ee17a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/hellaswag/hellaswag.yaml
lm_eval/tasks/hellaswag/hellaswag.yaml
+1
-1
No files found.
lm_eval/tasks/hellaswag/hellaswag.yaml
View file @
8b9e5fa8
...
...
@@ -7,7 +7,7 @@ output_type: multiple_choice
training_split
:
train
validation_split
:
validation
test_split
:
null
template_aliases
:
"
{%
set
gold
=
label
%}{%
set
answer_choices
=
endings|map('trim')|map('replace',
'
[title]',
'.
')|map('regex_replace',
'
\\
[.*?
\\
]',
'')|map('replace',
'
',
'
')|list
%}"
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_target
:
"
{{answer_choices[gold]}}"
gold_alias
:
"
{{gold}}"
...
...
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