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
5be6a53d
Commit
5be6a53d
authored
Jun 21, 2023
by
nikuya3
Browse files
Trim white spaces and restore correct order in hellaswag preprocessing
parent
bec2b500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/tasks/hellaswag/hellaswag.yaml
lm_eval/tasks/hellaswag/hellaswag.yaml
+2
-2
No files found.
lm_eval/tasks/hellaswag/hellaswag.yaml
View file @
5be6a53d
...
...
@@ -7,8 +7,8 @@ output_type: multiple_choice
training_split
:
train
validation_split
:
validation
test_split
:
null
template_aliases
:
"
{%
set
gold
=
label
%}{%
set
answer_choices
=
endings|map('
regex_
replace',
'
\\
[.*?
\\
]',
'')|map('replace',
'
[title
]',
'
.
')|map('replace',
'
',
'
')|list
%}"
doc_to_text
:
"
{%
set
text
=
activity_label
~
':
'
~
ctx_a
~
'
'
~
ctx_b.capitalize()
%}{{text|
regex_
replace('
\\
[.*?
\\
]',
'')|replace('
[title
]',
'
.
')|replace('
',
'
')}}"
template_aliases
:
"
{%
set
gold
=
label
%}{%
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
:
"
{{gold}}"
metric_list
:
-
metric
:
acc
...
...
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