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
a0787a9f
Commit
a0787a9f
authored
Nov 29, 2023
by
baberabb
Browse files
Merge remote-tracking branch 'origin/big-refactor' into big-refactor_dp
parents
6359f083
dc5b3d5d
Changes
199
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
40 additions
and
1 deletion
+40
-1
lm_eval/tasks/glue/qnli/default.yaml
lm_eval/tasks/glue/qnli/default.yaml
+2
-0
lm_eval/tasks/glue/qqp/default.yaml
lm_eval/tasks/glue/qqp/default.yaml
+2
-0
lm_eval/tasks/glue/rte/default.yaml
lm_eval/tasks/glue/rte/default.yaml
+2
-0
lm_eval/tasks/glue/sst/default.yaml
lm_eval/tasks/glue/sst/default.yaml
+2
-0
lm_eval/tasks/glue/wnli/default.yaml
lm_eval/tasks/glue/wnli/default.yaml
+2
-0
lm_eval/tasks/gsm8k/gsm8k-cot-self-consistency.yaml
lm_eval/tasks/gsm8k/gsm8k-cot-self-consistency.yaml
+2
-0
lm_eval/tasks/gsm8k/gsm8k-cot.yaml
lm_eval/tasks/gsm8k/gsm8k-cot.yaml
+2
-0
lm_eval/tasks/gsm8k/gsm8k.yaml
lm_eval/tasks/gsm8k/gsm8k.yaml
+2
-0
lm_eval/tasks/headqa/headqa_en.yaml
lm_eval/tasks/headqa/headqa_en.yaml
+2
-0
lm_eval/tasks/hellaswag/hellaswag.yaml
lm_eval/tasks/hellaswag/hellaswag.yaml
+2
-0
lm_eval/tasks/hendrycks_ethics/commonsense.yaml
lm_eval/tasks/hendrycks_ethics/commonsense.yaml
+2
-0
lm_eval/tasks/hendrycks_ethics/deontology.yaml
lm_eval/tasks/hendrycks_ethics/deontology.yaml
+2
-1
lm_eval/tasks/hendrycks_ethics/justice.yaml
lm_eval/tasks/hendrycks_ethics/justice.yaml
+2
-0
lm_eval/tasks/hendrycks_ethics/utilitarianism.yaml
lm_eval/tasks/hendrycks_ethics/utilitarianism.yaml
+2
-0
lm_eval/tasks/hendrycks_ethics/utilitarianism_original_yaml
lm_eval/tasks/hendrycks_ethics/utilitarianism_original_yaml
+2
-0
lm_eval/tasks/hendrycks_ethics/virtue.yaml
lm_eval/tasks/hendrycks_ethics/virtue.yaml
+2
-0
lm_eval/tasks/lambada/lambada_openai.yaml
lm_eval/tasks/lambada/lambada_openai.yaml
+2
-0
lm_eval/tasks/lambada/lambada_standard.yaml
lm_eval/tasks/lambada/lambada_standard.yaml
+2
-0
lm_eval/tasks/lambada_cloze/lambada_openai_cloze.yaml
lm_eval/tasks/lambada_cloze/lambada_openai_cloze.yaml
+2
-0
lm_eval/tasks/lambada_cloze/lambada_standard_cloze.yaml
lm_eval/tasks/lambada_cloze/lambada_standard_cloze.yaml
+2
-0
No files found.
lm_eval/tasks/glue/qnli/default.yaml
View file @
a0787a9f
...
...
@@ -10,3 +10,5 @@ doc_to_target: label
doc_to_choice
:
[
"
yes"
,
"
no"
]
metric_list
:
-
metric
:
acc
metadata
:
-
version
:
1.0
lm_eval/tasks/glue/qqp/default.yaml
View file @
a0787a9f
...
...
@@ -12,3 +12,5 @@ doc_to_choice: ["no", "yes"]
metric_list
:
-
metric
:
acc
-
metric
:
f1
metadata
:
-
version
:
1.0
lm_eval/tasks/glue/rte/default.yaml
View file @
a0787a9f
...
...
@@ -10,3 +10,5 @@ doc_to_target: label
doc_to_choice
:
[
"
True"
,
"
False"
]
metric_list
:
-
metric
:
acc
metadata
:
-
version
:
1.0
lm_eval/tasks/glue/sst/default.yaml
View file @
a0787a9f
...
...
@@ -10,3 +10,5 @@ doc_to_target: label
doc_to_choice
:
[
"
negative"
,
"
positive"
]
metric_list
:
-
metric
:
acc
metadata
:
-
version
:
1.0
lm_eval/tasks/glue/wnli/default.yaml
View file @
a0787a9f
...
...
@@ -10,3 +10,5 @@ doc_to_target: label
doc_to_choice
:
[
"
False"
,
"
True"
]
metric_list
:
-
metric
:
acc
metadata
:
-
version
:
2.0
lm_eval/tasks/gsm8k/gsm8k-cot-self-consistency.yaml
View file @
a0787a9f
...
...
@@ -30,3 +30,5 @@ filter_list:
regex_pattern
:
"
The
answer
is
(
\\
-?[0-9
\\
.
\\
,]*[0-9]+)"
-
function
:
"
majority_vote"
-
function
:
"
take_first"
metadata
:
-
version
:
0.0
lm_eval/tasks/gsm8k/gsm8k-cot.yaml
View file @
a0787a9f
...
...
@@ -40,3 +40,5 @@ filter_list:
-
function
:
"
regex"
regex_pattern
:
"
The
answer
is
(
\\
-?[0-9
\\
.
\\
,]+)."
-
function
:
"
take_first"
metadata
:
-
version
:
0.0
lm_eval/tasks/gsm8k/gsm8k.yaml
View file @
a0787a9f
...
...
@@ -33,3 +33,5 @@ filter_list:
-
function
:
"
regex"
regex_pattern
:
"
####
(
\\
-?[0-9
\\
.
\\
,]+)"
-
function
:
"
take_first"
metadata
:
-
version
:
1.0
lm_eval/tasks/headqa/headqa_en.yaml
View file @
a0787a9f
...
...
@@ -19,3 +19,5 @@ metric_list:
-
metric
:
acc_norm
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
lm_eval/tasks/hellaswag/hellaswag.yaml
View file @
a0787a9f
...
...
@@ -18,3 +18,5 @@ metric_list:
-
metric
:
acc_norm
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
lm_eval/tasks/hendrycks_ethics/commonsense.yaml
View file @
a0787a9f
...
...
@@ -11,3 +11,5 @@ doc_to_target: label
doc_to_choice
:
[
'
no'
,
'
yes'
]
metric_list
:
-
metric
:
acc
metadata
:
-
version
:
1.0
lm_eval/tasks/hendrycks_ethics/deontology.yaml
View file @
a0787a9f
...
...
@@ -4,5 +4,6 @@ dataset_name: deontology
doc_to_text
:
"
Question:
Would
most
people
believe
this
reasonable
or
unreasonable
to
say?
\"
{{scenario}}
{{excuse.rstrip()}}
\"\n
Answer:"
doc_to_target
:
label
doc_to_choice
:
[
'
unreasonable'
,
'
reasonable'
]
metadata
:
-
version
:
1.0
# TODO: implement exact-match metric for this subset
lm_eval/tasks/hendrycks_ethics/justice.yaml
View file @
a0787a9f
...
...
@@ -5,3 +5,5 @@ task: ethics_justice
dataset_name
:
justice
doc_to_text
:
"
Question:
Would
most
people
believe
this
reasonable
or
unreasonable
to
say?
\"
{{scenario}}
\"\n
Answer:"
# TODO: impl. exact match for this and deontology
metadata
:
-
version
:
1.0
lm_eval/tasks/hendrycks_ethics/utilitarianism.yaml
View file @
a0787a9f
...
...
@@ -8,3 +8,5 @@ doc_to_target: !function utils.doc_to_target
doc_to_choice
:
[
'
no'
,
'
yes'
]
metric_list
:
-
metric
:
acc
metadata
:
-
version
:
1.0
lm_eval/tasks/hendrycks_ethics/utilitarianism_original_yaml
View file @
a0787a9f
...
...
@@ -12,3 +12,5 @@
# metric_list:
# - metric: acc
# TODO: we want this to be implemented as a winograd_schema task type, actually
# metadata:
# - version: 1.0
lm_eval/tasks/hendrycks_ethics/virtue.yaml
View file @
a0787a9f
...
...
@@ -6,3 +6,5 @@ dataset_name: virtue
doc_to_text
:
"
Sentence:
{{scenario}}
\n
Question:
Does
the
character
in
this
sentence
exhibit
the
trait
\"
{{trait}}
\"
?
\n
Answer:"
doc_to_target
:
label
doc_to_choice
:
[
'
no'
,
'
yes'
]
metadata
:
-
version
:
1.0
lm_eval/tasks/lambada/lambada_openai.yaml
View file @
a0787a9f
...
...
@@ -16,3 +16,5 @@ metric_list:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
lm_eval/tasks/lambada/lambada_standard.yaml
View file @
a0787a9f
...
...
@@ -17,3 +17,5 @@ metric_list:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
lm_eval/tasks/lambada_cloze/lambada_openai_cloze.yaml
View file @
a0787a9f
...
...
@@ -16,3 +16,5 @@ metric_list:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
lm_eval/tasks/lambada_cloze/lambada_standard_cloze.yaml
View file @
a0787a9f
...
...
@@ -17,3 +17,5 @@ metric_list:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
Prev
1
2
3
4
5
6
7
8
9
10
Next
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