Commit abd17276 authored by Baber's avatar Baber
Browse files

Merge branch 'smolrefact' into tasklist

# Conflicts:
#	lm_eval/__main__.py
#	lm_eval/api/group.py
#	lm_eval/api/task.py
#	lm_eval/evaluator_utils.py
#	lm_eval/tasks/__init__.py
#	lm_eval/utils.py
#	pyproject.toml
parents 00afd536 70314843
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Philosophie.
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
ist (X)", wobei X der richtige Buchstabe ist.
'
include: _de_lite_template_yaml
task: mmlu_prox_lite_de_philosophy
task_alias: philosophy
process_docs: !function utils.process_philosophy
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Physik.
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
ist (X)", wobei X der richtige Buchstabe ist.
'
include: _de_lite_template_yaml
task: mmlu_prox_lite_de_physics
task_alias: physics
process_docs: !function utils.process_physics
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Psychologie.
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
ist (X)", wobei X der richtige Buchstabe ist.
'
include: _de_lite_template_yaml
task: mmlu_prox_lite_de_psychology
task_alias: psychology
process_docs: !function utils.process_psychology
dataset_path: li-lab/MMLU-ProX-Lite
dataset_name: en
test_split: test
fewshot_split: validation
fewshot_config:
sampler: first_n
doc_to_text: !function utils.fewshot_to_text
doc_to_target: ""
output_type: generate_until
doc_to_text: !function utils.doc_to_text
doc_to_target: answer
filter_list:
- name: "custom-extract"
filter:
- function: "regex"
regex_pattern: 'answer is \(?([ABCDEFGHIJ])\)?'
- function: "take_first"
generation_kwargs:
until:
- "</s>"
- "Q:"
- "Question:"
- "<|im_end|>"
do_sample: false
temperature: 0.0
max_gen_toks: 2048
num_fewshot: 5
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
metadata:
version: 0.0
group: mmlu_prox_lite_en
task:
- mmlu_prox_lite_en_biology
- mmlu_prox_lite_en_business
- mmlu_prox_lite_en_chemistry
- mmlu_prox_lite_en_computer_science
- mmlu_prox_lite_en_economics
- mmlu_prox_lite_en_engineering
- mmlu_prox_lite_en_health
- mmlu_prox_lite_en_history
- mmlu_prox_lite_en_law
- mmlu_prox_lite_en_math
- mmlu_prox_lite_en_other
- mmlu_prox_lite_en_philosophy
- mmlu_prox_lite_en_physics
- mmlu_prox_lite_en_psychology
aggregate_metric_list:
- aggregation: mean
metric: exact_match
weight_by_size: true
filter_list: custom-extract
metadata:
version: 0.0
description: 'The following are multiple choice questions (with answers) about biology.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_biology
task_alias: biology
process_docs: !function utils.process_biology
description: 'The following are multiple choice questions (with answers) about business.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_business
task_alias: business
process_docs: !function utils.process_business
description: 'The following are multiple choice questions (with answers) about chemistry.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_chemistry
task_alias: chemistry
process_docs: !function utils.process_chemistry
description: 'The following are multiple choice questions (with answers) about computer_science.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_computer_science
task_alias: computer_science
process_docs: !function utils.process_computer_science
description: 'The following are multiple choice questions (with answers) about economics.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_economics
task_alias: economics
process_docs: !function utils.process_economics
description: 'The following are multiple choice questions (with answers) about engineering.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_engineering
task_alias: engineering
process_docs: !function utils.process_engineering
description: 'The following are multiple choice questions (with answers) about health.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_health
task_alias: health
process_docs: !function utils.process_health
description: 'The following are multiple choice questions (with answers) about history.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_history
task_alias: history
process_docs: !function utils.process_history
description: 'The following are multiple choice questions (with answers) about law.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_law
task_alias: law
process_docs: !function utils.process_law
description: 'The following are multiple choice questions (with answers) about math.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_math
task_alias: math
process_docs: !function utils.process_math
description: 'The following are multiple choice questions (with answers) about other.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_other
task_alias: other
process_docs: !function utils.process_other
description: 'The following are multiple choice questions (with answers) about philosophy.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_philosophy
task_alias: philosophy
process_docs: !function utils.process_philosophy
description: 'The following are multiple choice questions (with answers) about physics.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_physics
task_alias: physics
process_docs: !function utils.process_physics
description: 'The following are multiple choice questions (with answers) about psychology.
Think step by step and then finish your answer with "the answer is (X)" where X
is the correct letter choice.
'
include: _en_lite_template_yaml
task: mmlu_prox_lite_en_psychology
task_alias: psychology
process_docs: !function utils.process_psychology
dataset_path: li-lab/MMLU-ProX-Lite
dataset_name: es
test_split: test
fewshot_split: validation
fewshot_config:
sampler: first_n
doc_to_text: !function utils.fewshot_to_text
doc_to_target: ""
output_type: generate_until
doc_to_text: !function utils.doc_to_text
doc_to_target: answer
filter_list:
- name: "custom-extract"
filter:
- function: "regex"
regex_pattern: 'La respuesta es \(?([ABCDEFGHIJ])\)?'
- function: "take_first"
generation_kwargs:
until:
- "</s>"
- "Q:"
- "Pregunta:"
- "<|im_end|>"
do_sample: false
temperature: 0.0
max_gen_toks: 2048
num_fewshot: 5
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
metadata:
version: 0.0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment