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
f7f298ee
"mmdet3d/models/task_modules/voxel/voxel_generator.py" did not exist on "cfc3f545870fc44bdf4e9fc24058c9244c257b1c"
Commit
f7f298ee
authored
Jan 25, 2024
by
lintangsutawika
Browse files
removed unused files for now
parents
c0d5a660
12bc8fce
Changes
186
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
151 additions
and
6 deletions
+151
-6
lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_cot_zeroshot_template_yaml
...u/flan_cot_zeroshot/_mmlu_flan_cot_zeroshot_template_yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu_flan_generative_template_yaml
...lan_n_shot/generative/_mmlu_flan_generative_template_yaml
+3
-1
lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml
...shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml
+3
-4
lm_eval/tasks/mmlu/generative/_default_template_yaml
lm_eval/tasks/mmlu/generative/_default_template_yaml
+18
-0
lm_eval/tasks/mmlu/generative/_mmlu.yaml
lm_eval/tasks/mmlu/generative/_mmlu.yaml
+6
-0
lm_eval/tasks/mmlu/generative/mmlu_abstract_algebra.yaml
lm_eval/tasks/mmlu/generative/mmlu_abstract_algebra.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_anatomy.yaml
lm_eval/tasks/mmlu/generative/mmlu_anatomy.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_astronomy.yaml
lm_eval/tasks/mmlu/generative/mmlu_astronomy.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_business_ethics.yaml
lm_eval/tasks/mmlu/generative/mmlu_business_ethics.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_clinical_knowledge.yaml
lm_eval/tasks/mmlu/generative/mmlu_clinical_knowledge.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_college_biology.yaml
lm_eval/tasks/mmlu/generative/mmlu_college_biology.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_college_chemistry.yaml
lm_eval/tasks/mmlu/generative/mmlu_college_chemistry.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_college_computer_science.yaml
.../tasks/mmlu/generative/mmlu_college_computer_science.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_college_mathematics.yaml
lm_eval/tasks/mmlu/generative/mmlu_college_mathematics.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_college_medicine.yaml
lm_eval/tasks/mmlu/generative/mmlu_college_medicine.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_college_physics.yaml
lm_eval/tasks/mmlu/generative/mmlu_college_physics.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_computer_security.yaml
lm_eval/tasks/mmlu/generative/mmlu_computer_security.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_conceptual_physics.yaml
lm_eval/tasks/mmlu/generative/mmlu_conceptual_physics.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_econometrics.yaml
lm_eval/tasks/mmlu/generative/mmlu_econometrics.yaml
+8
-0
lm_eval/tasks/mmlu/generative/mmlu_electrical_engineering.yaml
...al/tasks/mmlu/generative/mmlu_electrical_engineering.yaml
+8
-0
No files found.
lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_cot_zeroshot_template_yaml
View file @
f7f298ee
...
...
@@ -8,7 +8,7 @@ filter_list:
- name: "get-answer"
filter:
- function: "regex"
regex_pattern: "((?<=The answer is )(.*)(?=.)|(?<=
the
answer is )(.*)(?=.)|(?<=The answer: )(.*)(?=.)|(?<=The final answer: )(.*)(?=.))"
regex_pattern: "((?<=The answer is )(.*)(?=.)|(?<=answer is )(.*)(?=.)|(?<=The answer: )(.*)(?=.)|(?<=The final answer: )(.*)(?=.))"
- function: "take_first"
generation_kwargs:
until:
...
...
lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu_flan_generative_template_yaml
View file @
f7f298ee
...
...
@@ -2,8 +2,10 @@ group: mmlu_flan_n_shot_generative
dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split
test_split: test
fewshot_split: dev
fewshot_config:
sampler: first_n
output_type: generate_until
doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA:
"
doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA:"
doc_to_target: "{{['(A)', '(B)', '(C)', '(D)'][answer]}}"
generation_kwargs:
until:
...
...
lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml
View file @
f7f298ee
dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split
test_split: test
fewshot_split: dev
fewshot_config:
sampler: first_n
output_type: multiple_choice
doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA:
"
doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA:"
doc_to_choice: ["(A)", "(B)", "(C)", "(D)"]
doc_to_target: answer
metric_list:
- metric: acc
aggregation: mean
higher_is_better: true
- metric: acc_norm
aggregation: mean
higher_is_better: true
metadata:
version: 0.0
lm_eval/tasks/mmlu/generative/_default_template_yaml
0 → 100644
View file @
f7f298ee
dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split
test_split: test
fewshot_split: dev
fewshot_config:
sampler: first_n
output_type: generate_until
doc_to_text: "{{question.strip()}}\nA. {{choices[0]}}\nB. {{choices[1]}}\nC. {{choices[2]}}\nD. {{choices[3]}}\nAnswer:"
doc_to_target: "{{['A', 'B', 'C', 'D'][answer]}}"
generation_kwargs:
until:
- "</s>"
- "<0x0A>"
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
metadata:
version: 0.0
lm_eval/tasks/mmlu/generative/_mmlu.yaml
0 → 100644
View file @
f7f298ee
group
:
mmlu_generative
task
:
-
mmlu_stem_generative
-
mmlu_other_generative
-
mmlu_social_sciences_generative
-
mmlu_humanities_generative
lm_eval/tasks/mmlu/generative/mmlu_abstract_algebra.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
abstract_algebra"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
abstract
\
\
algebra.
\n\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_abstract_algebra_generative"
"
task_alias"
:
"
abstract_algebra"
lm_eval/tasks/mmlu/generative/mmlu_anatomy.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
anatomy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
anatomy.
\n\
\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_anatomy_generative"
"
task_alias"
:
"
anatomy"
lm_eval/tasks/mmlu/generative/mmlu_astronomy.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
astronomy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
astronomy.
\n\
\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_astronomy_generative"
"
task_alias"
:
"
astronomy"
lm_eval/tasks/mmlu/generative/mmlu_business_ethics.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
business_ethics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
business
\
\
ethics.
\n\n
"
"
group"
:
"
mmlu_other_generative"
"
group_alias"
:
"
other"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_business_ethics_generative"
"
task_alias"
:
"
business_ethics"
lm_eval/tasks/mmlu/generative/mmlu_clinical_knowledge.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
clinical_knowledge"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
clinical
\
\
knowledge.
\n\n
"
"
group"
:
"
mmlu_other_generative"
"
group_alias"
:
"
other"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_clinical_knowledge_generative"
"
task_alias"
:
"
clinical_knowledge"
lm_eval/tasks/mmlu/generative/mmlu_college_biology.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
college_biology"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
biology.
\n\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_biology_generative"
"
task_alias"
:
"
college_biology"
lm_eval/tasks/mmlu/generative/mmlu_college_chemistry.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
college_chemistry"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
chemistry.
\n\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_chemistry_generative"
"
task_alias"
:
"
college_chemistry"
lm_eval/tasks/mmlu/generative/mmlu_college_computer_science.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
college_computer_science"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
computer
science.
\n\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_computer_science_generative"
"
task_alias"
:
"
college_computer_science"
lm_eval/tasks/mmlu/generative/mmlu_college_mathematics.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
college_mathematics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
mathematics.
\n\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_mathematics_generative"
"
task_alias"
:
"
college_mathematics"
lm_eval/tasks/mmlu/generative/mmlu_college_medicine.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
college_medicine"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
medicine.
\n\n
"
"
group"
:
"
mmlu_other_generative"
"
group_alias"
:
"
other"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_medicine_generative"
"
task_alias"
:
"
college_medicine"
lm_eval/tasks/mmlu/generative/mmlu_college_physics.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
college_physics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
physics.
\n\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_physics_generative"
"
task_alias"
:
"
college_physics"
lm_eval/tasks/mmlu/generative/mmlu_computer_security.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
computer_security"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
computer
\
\
security.
\n\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_computer_security_generative"
"
task_alias"
:
"
computer_security"
lm_eval/tasks/mmlu/generative/mmlu_conceptual_physics.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
conceptual_physics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
conceptual
\
\
physics.
\n\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_conceptual_physics_generative"
"
task_alias"
:
"
conceptual_physics"
lm_eval/tasks/mmlu/generative/mmlu_econometrics.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
econometrics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
econometrics.
\n\
\n
"
"
group"
:
"
mmlu_social_sciences_generative"
"
group_alias"
:
"
social_sciences"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_econometrics_generative"
"
task_alias"
:
"
econometrics"
lm_eval/tasks/mmlu/generative/mmlu_electrical_engineering.yaml
0 → 100644
View file @
f7f298ee
"
dataset_name"
:
"
electrical_engineering"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
electrical
\
\
engineering.
\n\n
"
"
group"
:
"
mmlu_stem_generative"
"
group_alias"
:
"
stem"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_electrical_engineering_generative"
"
task_alias"
:
"
electrical_engineering"
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