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
fb7d2336
"test/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "a7a32a9e5e0612a9a36c9663a03b8d3e59b924e9"
Commit
fb7d2336
authored
Aug 10, 2023
by
lintangsutawika
Browse files
add glue, renamed sglue's rte to sglue_rte
parent
43bb4145
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
85 additions
and
1 deletion
+85
-1
lm_eval/tasks/glue/cola/default.yaml
lm_eval/tasks/glue/cola/default.yaml
+14
-0
lm_eval/tasks/glue/mnli/default.yaml
lm_eval/tasks/glue/mnli/default.yaml
+12
-0
lm_eval/tasks/glue/mnli/mismatch.yaml
lm_eval/tasks/glue/mnli/mismatch.yaml
+4
-0
lm_eval/tasks/glue/mnli/utils.py
lm_eval/tasks/glue/mnli/utils.py
+6
-0
lm_eval/tasks/glue/qnli/default.yaml
lm_eval/tasks/glue/qnli/default.yaml
+12
-0
lm_eval/tasks/glue/rte/default.yaml
lm_eval/tasks/glue/rte/default.yaml
+12
-0
lm_eval/tasks/glue/sst/default.yaml
lm_eval/tasks/glue/sst/default.yaml
+12
-0
lm_eval/tasks/glue/wnli/default.yaml
lm_eval/tasks/glue/wnli/default.yaml
+12
-0
lm_eval/tasks/super_glue/rte/default.yaml
lm_eval/tasks/super_glue/rte/default.yaml
+1
-1
No files found.
lm_eval/tasks/glue/cola/default.yaml
0 → 100644
View file @
fb7d2336
group
:
glue
task
:
cola
dataset_path
:
glue
dataset_name
:
cola
output_type
:
multiple_choice
training_split
:
train
validation_split
:
validation
doc_to_text
:
"
{{sentence}}
\n
Question:
Does
this
sentence
make
sense?
\n
Answer:"
doc_to_target
:
label
doc_to_choice
:
[
"
no"
,
"
yes"
]
should_decontaminate
:
true
doc_to_decontamination_query
:
sentence
metric_list
:
-
metric
:
mcc
lm_eval/tasks/glue/mnli/default.yaml
0 → 100644
View file @
fb7d2336
group
:
glue
task
:
mnli
dataset_path
:
glue
dataset_name
:
mnli
output_type
:
multiple_choice
training_split
:
train
validation_split
:
validation_matched
doc_to_text
:
!function
utils.doc_to_text
doc_to_target
:
label
doc_to_choice
:
[
"
True"
,
"
Neither"
,
"
False"
]
metric_list
:
-
metric
:
acc
lm_eval/tasks/glue/mnli/mismatch.yaml
0 → 100644
View file @
fb7d2336
!include
default.yaml
task
:
mnli_mismatch
validation_split
:
validation_mismatched
test_split
:
test_mismatched
lm_eval/tasks/glue/mnli/utils.py
0 → 100644
View file @
fb7d2336
def
doc_to_text
(
doc
):
return
"{}
\n
Question: {} True, False or Neither?
\n
Answer:"
.
format
(
doc
[
"premise"
],
doc
[
"hypothesis"
].
strip
()
+
(
""
if
doc
[
"hypothesis"
].
strip
().
endswith
(
"."
)
else
"."
),
)
\ No newline at end of file
lm_eval/tasks/glue/qnli/
promptsource
.yaml
→
lm_eval/tasks/glue/qnli/
default
.yaml
View file @
fb7d2336
group
:
group
:
glue
-
glue-promptsource
task
:
qnli
task
:
qnli
dataset_path
:
glue
dataset_path
:
glue
dataset_name
:
qnli
dataset_name
:
qnli
output_type
:
multiple_choice
output_type
:
multiple_choice
training_split
:
train
training_split
:
train
validation_split
:
validation
validation_split
:
validation
use_prompt
:
"
promptsource:have
all
you
need"
doc_to_text
:
"
{{question}}
\n
{{sentence}}
\n
Question:
Does
this
response
answer
the
question?
\n
Answer:"
doc_to_target
:
label
doc_to_choice
:
[
"
yes"
,
"
no"
]
metric_list
:
metric_list
:
-
metric
:
acc
-
metric
:
acc
lm_eval/tasks/glue/rte/default.yaml
0 → 100644
View file @
fb7d2336
group
:
glue
task
:
rte
dataset_path
:
glue
dataset_name
:
rte
output_type
:
multiple_choice
training_split
:
train
validation_split
:
validation
doc_to_text
:
"
{{sentence1}}
\n
Question:
{{sentence2}}
True
or
False?
\n
Answer:"
doc_to_target
:
label
doc_to_choice
:
[
"
True"
,
"
False"
]
metric_list
:
-
metric
:
acc
lm_eval/tasks/glue/sst/default.yaml
0 → 100644
View file @
fb7d2336
group
:
glue
task
:
sst
dataset_path
:
glue
dataset_name
:
sst
output_type
:
multiple_choice
training_split
:
train
validation_split
:
validation
doc_to_text
:
"
{{sentence}}
\n
Question:
Is
this
sentence
positive
or
negative?
\n
Answer:"
doc_to_target
:
label
doc_to_choice
:
[
"
negative"
,
"
positive"
]
metric_list
:
-
metric
:
acc
lm_eval/tasks/glue/wnli/default.yaml
0 → 100644
View file @
fb7d2336
group
:
glue
task
:
wnli
dataset_path
:
glue
dataset_name
:
wnli
output_type
:
multiple_choice
training_split
:
train
validation_split
:
validation
doc_to_text
:
"
{{sentence1}}
\n
Question:
{{sentence2}}
True
or
False?
\n
Answer:"
doc_to_target
:
label
doc_to_choice
:
[
"
False"
,
"
True"
]
metric_list
:
-
metric
:
acc
lm_eval/tasks/super_glue/rte/default.yaml
View file @
fb7d2336
group
:
group
:
-
super-glue-lm-eval-v1
-
super-glue-lm-eval-v1
task
:
rte
task
:
sglue_
rte
dataset_path
:
super_glue
dataset_path
:
super_glue
dataset_name
:
rte
dataset_name
:
rte
output_type
:
multiple_choice
output_type
:
multiple_choice
...
...
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