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
37a46351
Commit
37a46351
authored
Nov 28, 2023
by
lintangsutawika
Browse files
reformat
parent
525afc17
Changes
122
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
22 additions
and
20 deletions
+22
-20
lm_eval/api/task.py
lm_eval/api/task.py
+3
-1
lm_eval/tasks/anli/anli_r1.yaml
lm_eval/tasks/anli/anli_r1.yaml
+1
-1
lm_eval/tasks/arc/arc_easy.yaml
lm_eval/tasks/arc/arc_easy.yaml
+1
-1
lm_eval/tasks/arithmetic/arithmetic_1dc.yaml
lm_eval/tasks/arithmetic/arithmetic_1dc.yaml
+1
-1
lm_eval/tasks/asdiv/default.yaml
lm_eval/tasks/asdiv/default.yaml
+1
-1
lm_eval/tasks/babi/babi.yaml
lm_eval/tasks/babi/babi.yaml
+1
-1
lm_eval/tasks/bbh/cot_fewshot/_cot_fewshot_template_yaml
lm_eval/tasks/bbh/cot_fewshot/_cot_fewshot_template_yaml
+1
-1
lm_eval/tasks/bbh/cot_zeroshot/_cot_zeroshot_template_yaml
lm_eval/tasks/bbh/cot_zeroshot/_cot_zeroshot_template_yaml
+1
-1
lm_eval/tasks/bbh/fewshot/_fewshot_template_yaml
lm_eval/tasks/bbh/fewshot/_fewshot_template_yaml
+1
-1
lm_eval/tasks/bbh/zeroshot/_zeroshot_template_yaml
lm_eval/tasks/bbh/zeroshot/_zeroshot_template_yaml
+1
-1
lm_eval/tasks/belebele/_default_template_yaml
lm_eval/tasks/belebele/_default_template_yaml
+1
-1
lm_eval/tasks/bigbench/generate_until_template_yaml
lm_eval/tasks/bigbench/generate_until_template_yaml
+1
-1
lm_eval/tasks/bigbench/multiple_choice_template_yaml
lm_eval/tasks/bigbench/multiple_choice_template_yaml
+1
-1
lm_eval/tasks/blimp/template_yaml
lm_eval/tasks/blimp/template_yaml
+1
-1
lm_eval/tasks/cmmlu/_default_template_yaml
lm_eval/tasks/cmmlu/_default_template_yaml
+1
-1
lm_eval/tasks/code_x_glue/code-text/go.yaml
lm_eval/tasks/code_x_glue/code-text/go.yaml
+1
-1
lm_eval/tasks/code_x_glue/code-text/java.yaml
lm_eval/tasks/code_x_glue/code-text/java.yaml
+1
-1
lm_eval/tasks/code_x_glue/code-text/javascript.yaml
lm_eval/tasks/code_x_glue/code-text/javascript.yaml
+1
-1
lm_eval/tasks/code_x_glue/code-text/php.yaml
lm_eval/tasks/code_x_glue/code-text/php.yaml
+1
-1
lm_eval/tasks/code_x_glue/code-text/python.yaml
lm_eval/tasks/code_x_glue/code-text/python.yaml
+1
-1
No files found.
lm_eval/api/task.py
View file @
37a46351
...
...
@@ -91,7 +91,9 @@ class TaskConfig(dict):
should_decontaminate
:
bool
=
False
doc_to_decontamination_query
:
str
=
None
metadata
:
Union
[
str
,
list
]
=
None
# by default, not used in the code. allows for users to pass arbitrary info to tasks
metadata
:
Union
[
str
,
list
]
=
None
# by default, not used in the code. allows for users to pass arbitrary info to tasks
def
__post_init__
(
self
)
->
None
:
if
self
.
dataset_path
and
(
"."
in
self
.
dataset_path
):
...
...
lm_eval/tasks/anli/anli_r1.yaml
View file @
37a46351
...
...
@@ -23,4 +23,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
\ No newline at end of file
-
version
:
1.0
lm_eval/tasks/arc/arc_easy.yaml
View file @
37a46351
...
...
@@ -20,4 +20,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
\ No newline at end of file
-
version
:
1.0
lm_eval/tasks/arithmetic/arithmetic_1dc.yaml
View file @
37a46351
...
...
@@ -13,4 +13,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
\ No newline at end of file
-
version
:
1.0
lm_eval/tasks/asdiv/default.yaml
View file @
37a46351
...
...
@@ -11,4 +11,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
\ No newline at end of file
-
version
:
1.0
lm_eval/tasks/babi/babi.yaml
View file @
37a46351
...
...
@@ -17,4 +17,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
0.0
\ No newline at end of file
-
version
:
0.0
lm_eval/tasks/bbh/cot_fewshot/_cot_fewshot_template_yaml
View file @
37a46351
...
...
@@ -25,4 +25,4 @@ filter_list:
regex_pattern: "(?<=the answer is )(.*)(?=.)"
- function: "take_first"
metadata:
- version: 0.0
\ No newline at end of file
- version: 0.0
lm_eval/tasks/bbh/cot_zeroshot/_cot_zeroshot_template_yaml
View file @
37a46351
...
...
@@ -23,4 +23,4 @@ filter_list:
regex_pattern: "((?<=The answer is )(.*)(?=.)|(?<=the answer is )(.*)(?=.)|(?<=The answer: )(.*)(?=.)|(?<=The final answer: )(.*)(?=.))"
- function: "take_first"
metadata:
- version: 0
\ No newline at end of file
- version: 0
lm_eval/tasks/bbh/fewshot/_fewshot_template_yaml
View file @
37a46351
...
...
@@ -17,4 +17,4 @@ generation_kwargs:
do_sample: false
temperature: 0.0
metadata:
- version: 0
\ No newline at end of file
- version: 0
lm_eval/tasks/bbh/zeroshot/_zeroshot_template_yaml
View file @
37a46351
...
...
@@ -17,4 +17,4 @@ generation_kwargs:
do_sample: false
temperature: 0.0
metadata:
- version: 0
\ No newline at end of file
- version: 0
lm_eval/tasks/belebele/_default_template_yaml
View file @
37a46351
...
...
@@ -18,4 +18,4 @@ metric_list:
aggregation: mean
higher_is_better: true
metadata:
- version: 0.0
\ No newline at end of file
- version: 0.0
lm_eval/tasks/bigbench/generate_until_template_yaml
View file @
37a46351
...
...
@@ -15,4 +15,4 @@ metric_list:
higher_is_better: true
ignore_punctuation: true
metadata:
- version: 0.0
\ No newline at end of file
- version: 0.0
lm_eval/tasks/bigbench/multiple_choice_template_yaml
View file @
37a46351
...
...
@@ -12,4 +12,4 @@ metric_list:
- metric: acc
# TODO: brier score and other metrics
metadata:
- version: 0.0
\ No newline at end of file
- version: 0.0
lm_eval/tasks/blimp/template_yaml
View file @
37a46351
...
...
@@ -10,4 +10,4 @@ doc_to_decontamination_query: "{{sentence_good}} {{sentence_bad}}"
metric_list:
- metric: acc
metadata:
- version: 1.0
\ No newline at end of file
- version: 1.0
lm_eval/tasks/cmmlu/_default_template_yaml
View file @
37a46351
...
...
@@ -16,4 +16,4 @@ metric_list:
aggregation: mean
higher_is_better: true
metadata:
- version: 0.0
\ No newline at end of file
- version: 0.0
lm_eval/tasks/code_x_glue/code-text/go.yaml
View file @
37a46351
...
...
@@ -18,4 +18,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
True
metadata
:
-
version
:
0.0
\ No newline at end of file
-
version
:
0.0
lm_eval/tasks/code_x_glue/code-text/java.yaml
View file @
37a46351
...
...
@@ -18,4 +18,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
True
metadata
:
-
version
:
0.0
\ No newline at end of file
-
version
:
0.0
lm_eval/tasks/code_x_glue/code-text/javascript.yaml
View file @
37a46351
...
...
@@ -18,4 +18,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
True
metadata
:
-
version
:
0.0
\ No newline at end of file
-
version
:
0.0
lm_eval/tasks/code_x_glue/code-text/php.yaml
View file @
37a46351
...
...
@@ -18,4 +18,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
True
metadata
:
-
version
:
0.0
\ No newline at end of file
-
version
:
0.0
lm_eval/tasks/code_x_glue/code-text/python.yaml
View file @
37a46351
...
...
@@ -18,4 +18,4 @@ metric_list:
aggregation
:
mean
higher_is_better
:
True
metadata
:
-
version
:
0.0
\ No newline at end of file
-
version
:
0.0
Prev
1
2
3
4
5
…
7
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