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
fc5a114f
Commit
fc5a114f
authored
Jul 11, 2023
by
lintangsutawika
Browse files
modified yamls
parent
9b20e2d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
lm_eval/tasks/super_glue/cb/default.yaml
lm_eval/tasks/super_glue/cb/default.yaml
+2
-3
lm_eval/tasks/swag/swag.yaml
lm_eval/tasks/swag/swag.yaml
+4
-5
No files found.
lm_eval/tasks/super_glue/cb/default.yaml
View file @
fc5a114f
...
@@ -7,9 +7,8 @@ output_type: multiple_choice
...
@@ -7,9 +7,8 @@ output_type: multiple_choice
training_split
:
train
training_split
:
train
validation_split
:
validation
validation_split
:
validation
doc_to_text
:
"
{{premise}}
\n
Question:
{{hypothesis}}.
True,
False,
or
Neither?
\n
Answer:"
doc_to_text
:
"
{{premise}}
\n
Question:
{{hypothesis}}.
True,
False,
or
Neither?
\n
Answer:"
doc_to_target
:
"
{{answer_choices[label]}}"
doc_to_target
:
label
gold_alias
:
"
{{label}}"
# this will be cast to an int.
doc_to_choice
:
[
'
True'
,
'
False'
,
'
Neither'
]
template_aliases
:
"
{%
set
answer_choices
=
['True',
'False',
'Neither']
%}"
metric_list
:
metric_list
:
-
metric
:
acc
-
metric
:
acc
-
metric
:
f1
-
metric
:
f1
...
...
lm_eval/tasks/swag/swag.yaml
View file @
fc5a114f
...
@@ -7,14 +7,13 @@ output_type: multiple_choice
...
@@ -7,14 +7,13 @@ 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
answer_choices
=
[ending0,
ending1,
ending2,
ending3]
%}{%
set
gold
=
label
%}"
doc_to_text
:
startphrase
doc_to_text
:
"
{{startphrase}}"
doc_to_target
:
label
doc_to_target
:
"
{{answer_choices[gold]}}"
doc_to_choice
:
"
{{[ending0,
ending1,
ending2,
ending3]}}"
gold_alias
:
"
{{gold}}"
metric_list
:
metric_list
:
-
metric
:
acc
-
metric
:
acc
aggregation
:
mean
aggregation
:
mean
higher_is_better
:
true
higher_is_better
:
true
-
metric
:
acc_norm
-
metric
:
acc_norm
aggregation
:
mean
aggregation
:
mean
higher_is_better
:
true
higher_is_better
:
true
\ 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