chen459664 commited on
Commit
93d45cc
·
verified ·
1 Parent(s): 9e25429

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. lm-evaluation-harness/lm_eval/models/__pycache__/hf_steered.cpython-311.pyc +0 -0
  2. lm-evaluation-harness/lm_eval/models/__pycache__/openai_completions.cpython-310.pyc +0 -0
  3. lm-evaluation-harness/lm_eval/models/__pycache__/optimum_ipex.cpython-310.pyc +0 -0
  4. lm-evaluation-harness/lm_eval/models/__pycache__/optimum_lm.cpython-311.pyc +0 -0
  5. lm-evaluation-harness/lm_eval/models/__pycache__/sglang_generate_API.cpython-311.pyc +0 -0
  6. lm-evaluation-harness/lm_eval/models/__pycache__/textsynth.cpython-311.pyc +0 -0
  7. lm-evaluation-harness/lm_eval/models/__pycache__/utils.cpython-310.pyc +0 -0
  8. lm-evaluation-harness/lm_eval/models/__pycache__/utils.cpython-311.pyc +0 -0
  9. lm-evaluation-harness/lm_eval/models/__pycache__/vllm_vlms.cpython-310.pyc +0 -0
  10. lm-evaluation-harness/lm_eval/models/__pycache__/vllm_vlms.cpython-311.pyc +0 -0
  11. lm-evaluation-harness/lm_eval/tasks/acpbench/mcq_cot_2shot/prog.yaml +12 -0
  12. lm-evaluation-harness/lm_eval/tasks/acpbench/mcq_cot_2shot/val.yaml +12 -0
  13. lm-evaluation-harness/lm_eval/tasks/aexams/_default_template_yaml +18 -0
  14. lm-evaluation-harness/lm_eval/tasks/aexams/aexams_Physics.yaml +4 -0
  15. lm-evaluation-harness/lm_eval/tasks/aexams/aexams_Science.yaml +4 -0
  16. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_ibo.yaml +4 -0
  17. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_kin.yaml +4 -0
  18. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_orm.yaml +4 -0
  19. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_swa.yaml +4 -0
  20. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_wol.yaml +4 -0
  21. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_xho.yaml +4 -0
  22. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_yaml +35 -0
  23. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_zul.yaml +4 -0
  24. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_2/afrimgsm_amh.yaml +4 -0
  25. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_4/afrimgsm_ibo.yaml +7 -0
  26. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_4/afrimgsm_sna.yaml +7 -0
  27. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_4/afrimgsm_zul.yaml +7 -0
  28. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_lin.yaml +7 -0
  29. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_lug.yaml +7 -0
  30. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_sot.yaml +7 -0
  31. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_swa.yaml +7 -0
  32. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_vai.yaml +6 -0
  33. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_yor.yaml +6 -0
  34. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_eng.yaml +4 -0
  35. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_ewe.yaml +4 -0
  36. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_hau.yaml +4 -0
  37. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_ibo.yaml +4 -0
  38. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_twi.yaml +4 -0
  39. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_vai.yaml +4 -0
  40. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_wol.yaml +4 -0
  41. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_xho.yaml +4 -0
  42. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_yaml +37 -0
  43. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_zul.yaml +4 -0
  44. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_amh.yaml +4 -0
  45. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_eng.yaml +4 -0
  46. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_fra.yaml +4 -0
  47. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_hau.yaml +4 -0
  48. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_ibo.yaml +4 -0
  49. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_kin.yaml +4 -0
  50. lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_orm.yaml +4 -0
lm-evaluation-harness/lm_eval/models/__pycache__/hf_steered.cpython-311.pyc ADDED
Binary file (12.5 kB). View file
 
lm-evaluation-harness/lm_eval/models/__pycache__/openai_completions.cpython-310.pyc ADDED
Binary file (8.35 kB). View file
 
lm-evaluation-harness/lm_eval/models/__pycache__/optimum_ipex.cpython-310.pyc ADDED
Binary file (1.99 kB). View file
 
lm-evaluation-harness/lm_eval/models/__pycache__/optimum_lm.cpython-311.pyc ADDED
Binary file (4.27 kB). View file
 
lm-evaluation-harness/lm_eval/models/__pycache__/sglang_generate_API.cpython-311.pyc ADDED
Binary file (5.57 kB). View file
 
lm-evaluation-harness/lm_eval/models/__pycache__/textsynth.cpython-311.pyc ADDED
Binary file (7.69 kB). View file
 
lm-evaluation-harness/lm_eval/models/__pycache__/utils.cpython-310.pyc ADDED
Binary file (26.8 kB). View file
 
lm-evaluation-harness/lm_eval/models/__pycache__/utils.cpython-311.pyc ADDED
Binary file (38.9 kB). View file
 
lm-evaluation-harness/lm_eval/models/__pycache__/vllm_vlms.cpython-310.pyc ADDED
Binary file (8.34 kB). View file
 
lm-evaluation-harness/lm_eval/models/__pycache__/vllm_vlms.cpython-311.pyc ADDED
Binary file (14.6 kB). View file
 
lm-evaluation-harness/lm_eval/tasks/acpbench/mcq_cot_2shot/prog.yaml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ task: acp_prog_mcq
2
+ dataset_name: acp_prog_mcq
3
+ include: _mcq_cot_2shot_yaml
4
+ fewshot_config:
5
+ sampler: first_n
6
+ samples:
7
+ - context: 'This is a ferry domain, where the task is to transport cars from their start to their goal locations, using a ferry. Each location is accessible by ferry from each other location. The cars can be debarked or boarded, and the ferry can carry only one car at a time. There are 2 locations and 2 cars, numbered consecutively. Currently, the ferry is at l1, with the car c1 on board. The cars are at locations as follows: c0 is at l1.'
8
+ question: 'Which the following facts hold after performing the action \"travel by sea from location l1 to location l0\" in the current state? **Possible Answers**: A. Car c0 is at location l1 and The ferry is at l1 location. B. The ferry is at l0 location and The ferry is at l1 location. C. The ferry is at l0 location. D. The ferry is at l0 location and Car c0 is at location l1.'
9
+ answer: "Let's think step by step. Step 1: The following fact(s) do not hold in the current state: The ferry is at l0 location. Step 2: The action adds the following fact(s): The ferry is at l0 location Step 3: The following fact(s) hold in the current state: Car c0 is at location l1. Step 4: The action deletes the following fact(s): The ferry is at l1 location Step 5: Fact(s) \"The ferry is at l0 location\" are added and Fact(s) \"Car c0 is at location l1\" are not deleted. **Final Answer**: D."
10
+ - context: 'There are several cities, each containing several locations, some of which are airports. There are also trucks, which can drive within a single city, and airplanes, which can fly between airports. The goal is to get some packages from various locations to various new locations. There are 2 trucks and 1 airplane, as well as 4 packages. There are 4 locations across 2 cities. The locations are in cities as follows: l1-1 and l1-0 are in c1; l0-1 and l0-0 are in c0. Currently, a0 is at l0-0, t1 and p0 are at l1-1, t0 is at l0-1, p1 is in t1, p2 and p3 are in a0.'
11
+ question: 'Which the following facts hold after performing the action \"drive truck t0 from location l0-1 in city c0 to location l0-1 in the same city\" in the current state? A. p3 is in t1. B. a0 is at l0-0 and p3 is in t1. C. a0 is at l0-0. D. None of the above.'
12
+ answer: "Let's think step by step. Step 1: The following fact(s) hold in the current state: a0 is at l0-0. Step 2: The action deletes the following fact(s): t0 is at l0-1 Step 3: Fact(s) \"a0 is at l0-0\" are not deleted. **Final Answer**: C."
lm-evaluation-harness/lm_eval/tasks/acpbench/mcq_cot_2shot/val.yaml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ task: acp_val_mcq
2
+ dataset_name: acp_val_mcq
3
+ include: _mcq_cot_2shot_yaml
4
+ fewshot_config:
5
+ sampler: first_n
6
+ samples:
7
+ - context: 'This is a ferry domain, where the task is to transport cars from their start to their goal locations, using a ferry. Each location is accessible by ferry from each other location. The cars can be debarked or boarded, and the ferry can carry only one car at a time. There are 2 locations and 2 cars, numbered consecutively. Currently, the ferry is at l0 location and it is empty. The cars are at locations as follows: c1 and c0 are at l0. The goal is to reach a state where the following facts hold: Car c0 is at location l1 and Car c1 is at location l1.'
8
+ question: 'Which of the following claims is true with regard to the following sequence of actions \"board the car c0 at the location l0, travel by sea from location l0 to location l1, unload the car c0 from the ferry to location l1, travel by sea from location l1 to location l0, board the car c1 at location l0, sail from location l0 to location l1, debark the car c1 from the ferry to location l1\" and the current state? A. The sequence is not applicable. B. The sequence is a plan. C. The sequence is applicable, but does not achieve the goal. D. The sequence is not valid.'
9
+ answer: "Let's think step by step. Step 1: For a sequence of actions to be a plan, all actions should be valid, applicable in sequence, and achieve the goal. Step 2: The action sequence is applicable and it achieves the goal. **Final Answer**: B."
10
+ - context: 'There are several cities, each containing several locations, some of which are airports. There are also trucks, which can drive within a single city, and airplanes, which can fly between airports. The goal is to get some packages from various locations to various new locations. There are 3 trucks and 1 airplane, as well as 4 packages. There are 9 locations across 3 cities. The locations are in cities as follows: l1-2, l1-0, and l1-1 are in c1; l0-0, l0-1, and l0-2 are in c0; l2-1, l2-2, and l2-0 are in c2. Currently, p2 and t1 are at l1-2, p3 is at l2-0, t0 and p0 are at l0-2, p1 is at l1-0, a0 is at l0-0, t2 is at l2-2. The goal is to reach a state where the following facts hold: p1 is at l1-0, p3 is at l2-0, p2 is at l0-1, and p0 is at l1-2.'
11
+ question: 'Which of the following claims is true with regard to the following sequence of actions \"load object p0 into truck t0 at location l0-2, sail the ship t0 into city c0 from location l0-2 in city l0-0, remove the object p0 from the truck t0 and place it on the location l0-0, load the object p0 from location l0-0 onto the airplane a0, fly the airplane a0 from the airport l0-0 to the airport l1-0, remove the object p0 from the airplane a0 and place it on the location l1-0, load object p2 into truck t1 at location l1-2, navigate the truck t1 from its current location l1-2 in city c1 to the new location l1-0 within the same city place the object p0 into the truck t1 at location l1-0 remove the object p2 from the truck t1 and place it on the location l1-0 load the object p2 from location l1-0 onto the airplane a0 fly the airplane a0 from location l1-0 to location l2-0 fly airplane a0 from airport l2-0 to airport l0-0 unload the object p2 from the airplane a0 at location l0-0 place the object p2 into the truck t0 at location l0-0 navigate the truck t0 from its current location l0-0 in city c0 to the new location l0-1 within the same city offload the object p2 from the truck t0 at location l0-1 drive the truck t1 in city c1 from location l1-0 to location l1-2 offload the object p0 from the truck t1 at location l1-2 navigate the truck t2 from its current location l2-2 in city c2 to the new location l2-1 within the same city\" and the current state? A. The sequence is not valid. B. The sequence is applicable, but does not achieve the goal. C. The sequence is a plan. D. The sequence is not applicable.'
12
+ answer: "Let's think step by step. Step 1: For a sequence of actions to be a plan, all actions should be valid, applicable in sequence, and achieve the goal. Step 2: The action \"sail the ship t0 into city c0 from location l0-2 in city l0-0\" is not valid in this problem. **Final Answer**: A."
lm-evaluation-harness/lm_eval/tasks/aexams/_default_template_yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dataset_path: Hennara/aexams
2
+ test_split: test
3
+ fewshot_split: dev
4
+ fewshot_config:
5
+ sampler: first_n
6
+ output_type: multiple_choice
7
+ doc_to_text: "{{question.strip()}}\nA. {{A}}\nB. {{B}}\nC. {{C}}\nD. {{D}}\nالجواب:"
8
+ doc_to_choice: ["A", "B", "C", "D"]
9
+ doc_to_target: "{{['A', 'B', 'C', 'D'].index(answer)}}"
10
+ metric_list:
11
+ - metric: acc
12
+ aggregation: mean
13
+ higher_is_better: true
14
+ - metric: acc_norm
15
+ aggregation: mean
16
+ higher_is_better: true
17
+ metadata:
18
+ version: 1.0
lm-evaluation-harness/lm_eval/tasks/aexams/aexams_Physics.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ "dataset_name": "Physics"
2
+ "description": "قم بالإجابة على مايلي في مجال الفيزياء \n\n"
3
+ "include": "_default_template_yaml"
4
+ "task": "aexams_Physics"
lm-evaluation-harness/lm_eval/tasks/aexams/aexams_Science.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ "dataset_name": "Science"
2
+ "description": "قم بالإجابة على مايلي في مجال العلوم \n\n"
3
+ "include": "_default_template_yaml"
4
+ "task": "aexams_Science"
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_ibo.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ibo
3
+ include: afrimgsm_yaml
4
+ task: afrimgsm_ibo_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_kin.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: kin
3
+ include: afrimgsm_yaml
4
+ task: afrimgsm_kin_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_orm.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: orm
3
+ include: afrimgsm_yaml
4
+ task: afrimgsm_orm_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_swa.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: swa
3
+ include: afrimgsm_yaml
4
+ task: afrimgsm_swa_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_wol.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: wol
3
+ include: afrimgsm_yaml
4
+ task: afrimgsm_wol_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_xho.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: xho
3
+ include: afrimgsm_yaml
4
+ task: afrimgsm_xho_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_yaml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tag:
2
+ - afrimgsm_tasks
3
+ - afrimgsm_tasks_prompt_1
4
+ dataset_path: masakhane/afrimgsm
5
+ dataset_name: null # Overridden by language-specific config.
6
+ output_type: generate_until
7
+ test_split: test
8
+ doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
9
+ doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
10
+ target_delimiter: ""
11
+ generation_kwargs:
12
+ do_sample: false
13
+ until:
14
+ - 'Question:'
15
+ - </s>
16
+ - <|im_end|>
17
+ filter_list:
18
+ - name: remove_whitespace
19
+ filter:
20
+ - function: remove_whitespace
21
+ - function: take_first
22
+ - filter:
23
+ - function: regex
24
+ group_select: -1
25
+ regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+)
26
+ - function: take_first
27
+ name: flexible-extract
28
+ metric_list:
29
+ - metric: exact_match
30
+ aggregation: mean
31
+ higher_is_better: true
32
+ ignore_case: true
33
+ ignore_punctuation: true
34
+ metadata:
35
+ version: 2.0
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_1/afrimgsm_zul.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: zul
3
+ include: afrimgsm_yaml
4
+ task: afrimgsm_zul_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_2/afrimgsm_amh.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: amh
3
+ include: afrimgsm_yaml
4
+ task: afrimgsm_amh_prompt_2
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_4/afrimgsm_ibo.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ibo
3
+ doc_to_text: "Answer the given question with the appropriate numerical value, ensuring\
4
+ \ that the response is clear and without any supplementary information. \n\nQuestion:\
5
+ \ {{question}} \nAnswer: "
6
+ include: afrimgsm_yaml
7
+ task: afrimgsm_ibo_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_4/afrimgsm_sna.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: sna
3
+ doc_to_text: "Answer the given question with the appropriate numerical value, ensuring\
4
+ \ that the response is clear and without any supplementary information. \n\nQuestion:\
5
+ \ {{question}} \nAnswer: "
6
+ include: afrimgsm_yaml
7
+ task: afrimgsm_sna_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_4/afrimgsm_zul.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: zul
3
+ doc_to_text: "Answer the given question with the appropriate numerical value, ensuring\
4
+ \ that the response is clear and without any supplementary information. \n\nQuestion:\
5
+ \ {{question}} \nAnswer: "
6
+ include: afrimgsm_yaml
7
+ task: afrimgsm_zul_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_lin.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: lin
3
+ doc_to_text: "For mathematical questions provided in Lingala language. Supply the\
4
+ \ accurate numeric answer to the provided question. \n\nQuestion: {{question}} \n\
5
+ Answer: "
6
+ include: afrimgsm_yaml
7
+ task: afrimgsm_lin_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_lug.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: lug
3
+ doc_to_text: "For mathematical questions provided in Luganda language. Supply the\
4
+ \ accurate numeric answer to the provided question. \n\nQuestion: {{question}} \n\
5
+ Answer: "
6
+ include: afrimgsm_yaml
7
+ task: afrimgsm_lug_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_sot.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: sot
3
+ doc_to_text: "For mathematical questions provided in Sesotho language. Supply the\
4
+ \ accurate numeric answer to the provided question. \n\nQuestion: {{question}} \n\
5
+ Answer: "
6
+ include: afrimgsm_yaml
7
+ task: afrimgsm_sot_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_swa.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: swa
3
+ doc_to_text: "For mathematical questions provided in Swahili language. Supply the\
4
+ \ accurate numeric answer to the provided question. \n\nQuestion: {{question}} \n\
5
+ Answer: "
6
+ include: afrimgsm_yaml
7
+ task: afrimgsm_swa_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_vai.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: vai
3
+ doc_to_text: "For mathematical questions provided in Vai language. Supply the accurate\
4
+ \ numeric answer to the provided question. \n\nQuestion: {{question}} \nAnswer: "
5
+ include: afrimgsm_yaml
6
+ task: afrimgsm_vai_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/prompt_5/afrimgsm_yor.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: yor
3
+ doc_to_text: "For mathematical questions provided in Yoruba language. Supply the accurate\
4
+ \ numeric answer to the provided question. \n\nQuestion: {{question}} \nAnswer: "
5
+ include: afrimgsm_yaml
6
+ task: afrimgsm_yor_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_eng.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: eng
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_eng_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_ewe.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ewe
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_ewe_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_hau.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: hau
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_hau_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_ibo.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ibo
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_ibo_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_twi.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: twi
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_twi_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_vai.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: vai
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_vai_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_wol.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: wol
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_wol_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_xho.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: xho
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_xho_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_yaml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tag:
2
+ - afrimgsm_cot_tasks
3
+ - afrimgsm_cot_tasks_prompt_1
4
+ dataset_path: masakhane/afrimgsm
5
+ dataset_name: null # Overridden by language-specific config.
6
+ output_type: generate_until
7
+ training_split: train
8
+ test_split: test
9
+ doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
10
+ doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
11
+ generation_kwargs:
12
+ do_sample: false
13
+ until:
14
+ - 'Question:'
15
+ - </s>
16
+ - <|im_end|>
17
+ - <|eot_id|>
18
+ metric_list:
19
+ - metric: exact_match
20
+ aggregation: mean
21
+ higher_is_better: true
22
+ ignore_case: true
23
+ ignore_punctuation: true
24
+ filter_list:
25
+ - name: "strict-match"
26
+ filter:
27
+ - function: "regex"
28
+ regex_pattern: "The answer is (\\-?[0-9\\.\\,]+)"
29
+ - function: "take_first"
30
+ - filter:
31
+ - function: regex
32
+ group_select: -1
33
+ regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+)
34
+ - function: take_first
35
+ name: flexible-extract
36
+ metadata:
37
+ version: 2.0
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_1/afrimgsm_cot_zul.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: zul
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_zul_prompt_1
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_amh.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: amh
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_amh_prompt_2
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_eng.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: eng
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_eng_prompt_2
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_fra.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: fra
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_fra_prompt_2
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_hau.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: hau
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_hau_prompt_2
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_ibo.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ibo
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_ibo_prompt_2
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_kin.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: kin
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_kin_prompt_2
lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct_cot/prompt_2/afrimgsm_cot_orm.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: orm
3
+ include: afrimgsm_cot_yaml
4
+ task: afrimgsm_cot_orm_prompt_2