Unverified Commit 0b45cc71 authored by Weihao XUAN's avatar Weihao XUAN Committed by GitHub
Browse files

Update MMLU-ProX task (#3174)

* update MMLU_ProX

* update MMLU_ProX

* cleanup code by pre-commit
parent 05b37f20
group: mmlu_prox_lite_ur
task:
- mmlu_prox_lite_ur_biology
- mmlu_prox_lite_ur_business
- mmlu_prox_lite_ur_chemistry
- mmlu_prox_lite_ur_computer_science
- mmlu_prox_lite_ur_economics
- mmlu_prox_lite_ur_engineering
- mmlu_prox_lite_ur_health
- mmlu_prox_lite_ur_history
- mmlu_prox_lite_ur_law
- mmlu_prox_lite_ur_math
- mmlu_prox_lite_ur_other
- mmlu_prox_lite_ur_philosophy
- mmlu_prox_lite_ur_physics
- mmlu_prox_lite_ur_psychology
aggregate_metric_list:
- aggregation: mean
metric: exact_match
weight_by_size: true
filter_list: custom-extract
metadata:
version: 0.0
group: mmlu_prox_ur
task:
- mmlu_prox_ur_biology
- mmlu_prox_ur_business
- mmlu_prox_ur_chemistry
- mmlu_prox_ur_computer_science
- mmlu_prox_ur_economics
- mmlu_prox_ur_engineering
- mmlu_prox_ur_health
- mmlu_prox_ur_history
- mmlu_prox_ur_law
- mmlu_prox_ur_math
- mmlu_prox_ur_other
- mmlu_prox_ur_philosophy
- mmlu_prox_ur_physics
- mmlu_prox_ur_psychology
aggregate_metric_list:
- aggregation: mean
metric: exact_match
weight_by_size: true
filter_list: custom-extract
metadata:
version: 0.0
dataset_path: li-lab/MMLU-ProX-Lite
dataset_name: ur
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: 'جواب \(?([ABCDEFGHIJ])\)? ہے'
- function: "take_first"
generation_kwargs:
until:
- "</s>"
- "Q:"
- "سوال:"
- "<|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
dataset_path: li-lab/MMLU-ProX
dataset_name: ur
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: 'جواب \(?([ABCDEFGHIJ])\)? ہے'
- function: "take_first"
generation_kwargs:
until:
- "</s>"
- "Q:"
- "سوال:"
- "<|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
description: 'درج ذیل حیاتیات کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔
براہ کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں،
جہاں X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_biology
task_alias: biology
process_docs: !function utils.process_biology
description: 'درج ذیل کاروبار کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔
براہ کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں،
جہاں X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_business
task_alias: business
process_docs: !function utils.process_business
description: 'درج ذیل کیمیا کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔ براہ
کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں، جہاں
X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_chemistry
task_alias: chemistry
process_docs: !function utils.process_chemistry
description: 'درج ذیل کمپیوٹر سائنس کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے
ساتھ)۔ براہ کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم
کریں، جہاں X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_computer_science
task_alias: computer_science
process_docs: !function utils.process_computer_science
description: 'درج ذیل معاشیات کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔
براہ کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں،
جہاں X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_economics
task_alias: economics
process_docs: !function utils.process_economics
description: 'درج ذیل انجینئرنگ کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔
براہ کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں،
جہاں X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_engineering
task_alias: engineering
process_docs: !function utils.process_engineering
description: 'درج ذیل صحت کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔ براہ
کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں، جہاں
X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_health
task_alias: health
process_docs: !function utils.process_health
description: 'درج ذیل تاریخ کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔ براہ
کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں، جہاں
X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_history
task_alias: history
process_docs: !function utils.process_history
description: 'درج ذیل قانون کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔ براہ
کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں، جہاں
X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_law
task_alias: law
process_docs: !function utils.process_law
description: 'درج ذیل ریاضی کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔ براہ
کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں، جہاں
X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_math
task_alias: math
process_docs: !function utils.process_math
description: 'درج ذیل دیگر کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔ براہ
کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں، جہاں
X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_other
task_alias: other
process_docs: !function utils.process_other
description: 'درج ذیل فلسفہ کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔ براہ
کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں، جہاں
X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_philosophy
task_alias: philosophy
process_docs: !function utils.process_philosophy
description: 'درج ذیل طبیعیات کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔
براہ کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں،
جہاں X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_physics
task_alias: physics
process_docs: !function utils.process_physics
description: 'درج ذیل نفسیات کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔
براہ کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں،
جہاں X درست آپشن کا حرف ہے۔
'
include: _ur_lite_template_yaml
task: mmlu_prox_lite_ur_psychology
task_alias: psychology
process_docs: !function utils.process_psychology
description: 'درج ذیل حیاتیات کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔
براہ کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں،
جہاں X درست آپشن کا حرف ہے۔
'
include: _ur_template_yaml
task: mmlu_prox_ur_biology
task_alias: biology
process_docs: !function utils.process_biology
description: 'درج ذیل کاروبار کے متعلق ایک متعدد انتخابی سوال ہے (جوابات کے ساتھ)۔
براہ کرم قدم بہ قدم سوچیں، اور پھر اپنے جواب کو "جواب (X) ہے" کے ساتھ ختم کریں،
جہاں X درست آپشن کا حرف ہے۔
'
include: _ur_template_yaml
task: mmlu_prox_ur_business
task_alias: business
process_docs: !function utils.process_business
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