EtashGuha commited on
Commit
850690a
·
verified ·
1 Parent(s): 210d53b

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/a1_math_metamath_aime.yaml +283 -0
config/a1_math_metamath_aime.yaml ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_numina_math
3
+ config:
4
+ type: "hf_source"
5
+ dataset: "AI-MO/NuminaMath-CoT"
6
+ split: train
7
+ - id: select_amc_aime
8
+ config:
9
+ type: function
10
+ function: data_strategies.commons.select_rows
11
+ function_config:
12
+ conditions:
13
+ source: amc_aime
14
+ input_ids:
15
+ - load_numina_math
16
+ - id: select_olympiad
17
+ config:
18
+ type: function
19
+ function: data_strategies.commons.select_rows
20
+ function_config:
21
+ conditions:
22
+ source: olympiad
23
+ input_ids:
24
+ - load_numina_math
25
+ - id: rename_column_math
26
+ config:
27
+ type: function
28
+ function: data_strategies.commons.force_rename_columns
29
+ function_config:
30
+ column_maps:
31
+ solution: detailed_answer
32
+ problem: question
33
+ input_ids:
34
+ - select_olympiad
35
+ - select_amc_aime
36
+ - id: extract_math_answer
37
+ config:
38
+ type: completions
39
+ require_all_responses: False
40
+ map: metamath_extract_math_answer
41
+ map_config:
42
+ detailed_answer_column: detailed_answer
43
+ output_numerical_answer_column: answer
44
+ model: gpt-4o-mini
45
+ input_ids:
46
+ - rename_column_math
47
+
48
+ - id: generate_math_problems
49
+ config:
50
+ type: completions
51
+ require_all_responses: False
52
+ map: metamath_problem_clone
53
+ map_config:
54
+ starting_id: 7501
55
+ ending_id: 60000
56
+ problems_per_input: 8
57
+ question_column: question
58
+ detailed_answer_column: detailed_answer
59
+ answer_column: answer
60
+ model: gpt-4o-mini
61
+ input_ids:
62
+ - extract_math_answer
63
+
64
+ # - id: add_column_math
65
+ # config:
66
+ # type: function
67
+ # function: data_strategies.commons.add_constant_columns
68
+ # function_config:
69
+ # dataset: math
70
+ # input_ids:
71
+ # - generate_math_problems
72
+
73
+ # - id: generate_backward_questions
74
+ # config:
75
+ # type: completions
76
+ # require_all_responses: False
77
+ # map: metamath_inverse_question
78
+ # map_config:
79
+ # question_column: question
80
+ # output_inverse_question_column: inverse_question
81
+ # output_inverse_answer_column: inverse_answer
82
+ # model: gpt-4o-mini
83
+ # input_ids:
84
+ # - add_column_math
85
+
86
+ # - id: self_verify
87
+ # config:
88
+ # type: completions
89
+ # require_all_responses: False
90
+ # map: metamath_self_verification
91
+ # map_config:
92
+ # question_column: inverse_question
93
+ # answer_column: answer
94
+ # model: gpt-4o-mini
95
+ # input_ids:
96
+ # - generate_backward_questions
97
+
98
+ # - id: fobar
99
+ # config:
100
+ # type: function
101
+ # function: data_strategies.MetaMath.utils.fobar
102
+ # input_ids:
103
+ # - generate_backward_questions
104
+
105
+ # - id: solve_inverse_questions
106
+ # config:
107
+ # type: completions
108
+ # require_all_responses: False
109
+ # map: metamath_solve_inverse
110
+ # map_config:
111
+ # inverse_question_column: inverse_question
112
+ # inverse_answer_column: inverse_answer
113
+ # output_predicted_answer_column: predicted_answer
114
+ # model: gpt-4o-mini
115
+ # input_ids:
116
+ # - self_verify
117
+ # - fobar
118
+
119
+ # - id: rename_columns_inverse
120
+ # config:
121
+ # type: function
122
+ # function: data_strategies.commons.force_rename_columns
123
+ # function_config:
124
+ # column_maps:
125
+ # inverse_question: instruction
126
+ # predicted_answer: completion
127
+ # input_ids:
128
+ # - solve_inverse_questions
129
+
130
+ # - id: rephrase_questions
131
+ # config:
132
+ # type: completions
133
+ # require_all_responses: False
134
+ # map: metamath_rephrase_question
135
+ # map_config:
136
+ # question_column: question
137
+ # output_rephrased_question_column: rephrased_question
138
+ # model: gpt-4o-mini
139
+ # input_ids:
140
+ # - add_column_math
141
+
142
+ # - id: solve_rephrased_questions
143
+ # config:
144
+ # type: completions
145
+ # require_all_responses: False
146
+ # map: metamath_solve_rephrased
147
+ # map_config:
148
+ # rephrased_question_column: rephrased_question
149
+ # answer_column: answer
150
+ # output_predicted_answer_column: predicted_answer
151
+ # model: gpt-4o-mini
152
+ # input_ids:
153
+ # - rephrase_questions
154
+
155
+ # - id: rename_columns_rephrased
156
+ # config:
157
+ # type: function
158
+ # function: data_strategies.commons.force_rename_columns
159
+ # function_config:
160
+ # column_maps:
161
+ # rephrased_question: instruction
162
+ # predicted_answer: completion
163
+ # input_ids:
164
+ # - solve_rephrased_questions
165
+
166
+ # - id: mix_rephrased_and_inverse
167
+ # config:
168
+ # type: mix
169
+ # input_ids:
170
+ # - rename_columns_inverse
171
+ # - rename_columns_rephrased
172
+
173
+ # - id: keep_prompt_and_completion
174
+ # config:
175
+ # type: function
176
+ # function: data_strategies.commons.select_columns
177
+ # function_config:
178
+ # columns: [instruction, completion]
179
+ # input_ids:
180
+ # - mix_rephrased_and_inverse
181
+
182
+ # - id: rename_task_column_final
183
+ # config:
184
+ # type: function
185
+ # function: data_strategies.commons.force_rename_columns
186
+ # function_config:
187
+ # column_maps:
188
+ # completion: response_seed
189
+ # instruction: instruction_seed
190
+ # input_ids:
191
+ # - keep_prompt_and_completion
192
+ # - id: decontaminate
193
+ # config:
194
+ # type: cpu_function
195
+ # sharded: false
196
+ # num_cpus: 32
197
+ # function: data_strategies._A1_Source.utils.decontaminate_fuzzy_w_ngram
198
+ # function_config:
199
+ # column: instruction_seed
200
+ # eval_datasets:
201
+ # - HuggingFaceH4/MATH-500
202
+ # - Maxwell-Jia/AIME_2024
203
+ # - AI-MO/aimo-validation-amc
204
+ # - livecodebench/code_generation_lite
205
+ # - mlfoundations-dev/AIME2025_combined
206
+ # - mlfoundations-dev/cais-hle-multipleChoice-noImage
207
+ # - open-r1/codeforces
208
+ # - Idavidrein/gpqa
209
+ # - daman1209arora/jeebench\
210
+ # eval_columns:
211
+ # - problem
212
+ # - Problem
213
+ # - problem
214
+ # - question_content
215
+ # - question
216
+ # - question
217
+ # - description
218
+ # - Question
219
+ # - question
220
+ # eval_splits:
221
+ # - test
222
+ # - train
223
+ # - train
224
+ # - test
225
+ # - train
226
+ # - test
227
+ # - test
228
+ # - train
229
+ # - test
230
+ # eval_subsets:
231
+ # Idavidrein/gpqa: gpqa_diamond
232
+ # similarity_threshold: 80.0
233
+ # ngram_size: 13
234
+ # input_ids:
235
+ # - rename_task_column_final
236
+ # - id: sample_dataset_final
237
+ # config:
238
+ # type: function
239
+ # function: data_strategies.commons.uniform_sample_fixed
240
+ # function_config:
241
+ # num_samples: 31_600 # 1.25% of 10000 target from stage 1
242
+ # input_ids:
243
+ # - decontaminate
244
+
245
+ # - id: annotate_r1
246
+ # config:
247
+ # type: completions
248
+ # require_all_responses: False
249
+ # map: deepseek_reasoner
250
+ # map_config:
251
+ # input_problem_column: instruction_seed
252
+ # model: deepseek-reasoner
253
+ # batch: false
254
+ # temperature: 1.0
255
+ # require_all_responses: false
256
+ # backend: openai
257
+ # backend_params:
258
+ # max_requests_per_minute: 500
259
+ # max_tokens_per_minute: 1_000_000_000
260
+ # base_url: "https://api.deepseek.com/"
261
+ # invalid_finish_reasons: ['content_filter']
262
+ # input_ids:
263
+ # - sample_dataset_final
264
+ # - id: convert_reasoning_trace_to_final
265
+ # config:
266
+ # type: function
267
+ # function: data_strategies.commons.convert_reasoning_trace_to_final
268
+ # function_config:
269
+ # reasoning_column: reasoning
270
+ # solution_column: deepseek_solution
271
+ # output_column: final_reasoning_trace
272
+ # input_ids:
273
+ # - annotate_r1
274
+ # - id: convert_to_sharegpt
275
+ # config:
276
+ # type: function
277
+ # function: data_strategies.commons.convert_instruction_response_to_sharegpt
278
+ # function_config:
279
+ # input_instruction_column: instruction_seed
280
+ # input_response_column: final_reasoning_trace
281
+ # output_sharegpt_column: conversations
282
+ # input_ids:
283
+ # - convert_reasoning_trace_to_final