EtashGuha commited on
Commit
c190864
·
verified ·
1 Parent(s): 8b2eb4e

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/a1_math_metamath.yaml +185 -185
config/a1_math_metamath.yaml CHANGED
@@ -4,209 +4,209 @@ operators:
4
  type: json_source
5
  file: dcft/data_strategies/MetaMath/MATH_train.json
6
 
7
- - id: rename_column_math
8
- config:
9
- type: function
10
- function: data_strategies.commons.force_rename_columns
11
- function_config:
12
- column_maps:
13
- solution: detailed_answer
14
- problem: question
15
- input_ids:
16
- - load_math_source
17
 
18
- - id: extract_math_answer
19
- config:
20
- type: completions
21
- require_all_responses: False
22
- map: metamath_extract_math_answer
23
- map_config:
24
- detailed_answer_column: detailed_answer
25
- output_numerical_answer_column: answer
26
- model: gpt-4o-mini
27
- input_ids:
28
- - rename_column_math
29
 
30
- - id: generate_math_problems
31
- config:
32
- type: completions
33
- require_all_responses: False
34
- map: metamath_problem_clone
35
- map_config:
36
- starting_id: 7501
37
- ending_id: 60000
38
- problems_per_input: 8
39
- question_column: question
40
- detailed_answer_column: detailed_answer
41
- answer_column: answer
42
- model: gpt-4o-mini
43
- input_ids:
44
- - extract_math_answer
45
 
46
- - id: add_column_math
47
- config:
48
- type: function
49
- function: data_strategies.commons.add_constant_columns
50
- function_config:
51
- dataset: math
52
- input_ids:
53
- - generate_math_problems
54
 
55
- - id: load_gsmk8_source
56
- config:
57
- type: json_source
58
- file: dcft/data_strategies/MetaMath/gsm8k_train.json
59
 
60
- - id: rename_column_gsmk8
61
- config:
62
- type: function
63
- function: data_strategies.commons.force_rename_columns
64
- function_config:
65
- column_maps:
66
- answer_detail: detailed_answer
67
- input_ids:
68
- - load_gsmk8_source
69
 
70
- - id: generate_gsmk8_problems
71
- config:
72
- type: completions
73
- require_all_responses: False
74
- map: metamath_problem_clone
75
- map_config:
76
- starting_id: 7501
77
- ending_id: 60000
78
- problems_per_input: 8
79
- question_column: question
80
- detailed_answer_column: detailed_answer
81
- answer_column: answer
82
- model: gpt-4o-mini
83
- input_ids:
84
- - rename_column_gsmk8
85
 
86
- - id: add_column_gsmk8
87
- config:
88
- type: function
89
- function: data_strategies.commons.add_constant_columns
90
- function_config:
91
- dataset: gsmk8
92
- input_ids:
93
- - generate_gsmk8_problems
94
 
95
- - id: mix_math_gsmk8
96
- config:
97
- type: mix
98
- input_ids:
99
- - add_column_gsmk8
100
- - add_column_math
101
 
102
- - id: generate_backward_questions
103
- config:
104
- type: completions
105
- require_all_responses: False
106
- map: metamath_inverse_question
107
- map_config:
108
- question_column: question
109
- output_inverse_question_column: inverse_question
110
- output_inverse_answer_column: inverse_answer
111
- model: gpt-4o-mini
112
- input_ids:
113
- - mix_math_gsmk8
114
 
115
- - id: self_verify
116
- config:
117
- type: completions
118
- require_all_responses: False
119
- map: metamath_self_verification
120
- map_config:
121
- question_column: inverse_question
122
- answer_column: answer
123
- model: gpt-4o-mini
124
- input_ids:
125
- - generate_backward_questions
126
 
127
- - id: fobar
128
- config:
129
- type: function
130
- function: data_strategies.MetaMath.utils.fobar
131
- input_ids:
132
- - generate_backward_questions
133
 
134
- - id: solve_inverse_questions
135
- config:
136
- type: completions
137
- require_all_responses: False
138
- map: metamath_solve_inverse
139
- map_config:
140
- inverse_question_column: inverse_question
141
- inverse_answer_column: inverse_answer
142
- output_predicted_answer_column: predicted_answer
143
- model: gpt-4o-mini
144
- input_ids:
145
- - self_verify
146
- - fobar
147
 
148
- - id: rename_columns_inverse
149
- config:
150
- type: function
151
- function: data_strategies.commons.force_rename_columns
152
- function_config:
153
- column_maps:
154
- inverse_question: instruction
155
- predicted_answer: completion
156
- input_ids:
157
- - solve_inverse_questions
158
 
159
- - id: rephrase_questions
160
- config:
161
- type: completions
162
- require_all_responses: False
163
- map: metamath_rephrase_question
164
- map_config:
165
- question_column: question
166
- output_rephrased_question_column: rephrased_question
167
- model: gpt-4o-mini
168
- input_ids:
169
- - mix_math_gsmk8
170
 
171
- - id: solve_rephrased_questions
172
- config:
173
- type: completions
174
- require_all_responses: False
175
- map: metamath_solve_rephrased
176
- map_config:
177
- rephrased_question_column: rephrased_question
178
- answer_column: answer
179
- output_predicted_answer_column: predicted_answer
180
- model: gpt-4o-mini
181
- input_ids:
182
- - rephrase_questions
183
 
184
- - id: rename_columns_rephrased
185
- config:
186
- type: function
187
- function: data_strategies.commons.force_rename_columns
188
- function_config:
189
- column_maps:
190
- rephrased_question: instruction
191
- predicted_answer: completion
192
- input_ids:
193
- - solve_rephrased_questions
194
 
195
- - id: mix_rephrased_and_inverse
196
- config:
197
- type: mix
198
- input_ids:
199
- - rename_columns_inverse
200
- - rename_columns_rephrased
201
 
202
- - id: keep_prompt_and_completion
203
- config:
204
- type: function
205
- function: data_strategies.commons.select_columns
206
- function_config:
207
- columns: [instruction, completion]
208
- input_ids:
209
- - mix_rephrased_and_inverse
210
 
211
  # - id: rename_task_column_final
212
  # config:
 
4
  type: json_source
5
  file: dcft/data_strategies/MetaMath/MATH_train.json
6
 
7
+ # - id: rename_column_math
8
+ # config:
9
+ # type: function
10
+ # function: data_strategies.commons.force_rename_columns
11
+ # function_config:
12
+ # column_maps:
13
+ # solution: detailed_answer
14
+ # problem: question
15
+ # input_ids:
16
+ # - load_math_source
17
 
18
+ # - id: extract_math_answer
19
+ # config:
20
+ # type: completions
21
+ # require_all_responses: False
22
+ # map: metamath_extract_math_answer
23
+ # map_config:
24
+ # detailed_answer_column: detailed_answer
25
+ # output_numerical_answer_column: answer
26
+ # model: gpt-4o-mini
27
+ # input_ids:
28
+ # - rename_column_math
29
 
30
+ # - id: generate_math_problems
31
+ # config:
32
+ # type: completions
33
+ # require_all_responses: False
34
+ # map: metamath_problem_clone
35
+ # map_config:
36
+ # starting_id: 7501
37
+ # ending_id: 60000
38
+ # problems_per_input: 8
39
+ # question_column: question
40
+ # detailed_answer_column: detailed_answer
41
+ # answer_column: answer
42
+ # model: gpt-4o-mini
43
+ # input_ids:
44
+ # - extract_math_answer
45
 
46
+ # - id: add_column_math
47
+ # config:
48
+ # type: function
49
+ # function: data_strategies.commons.add_constant_columns
50
+ # function_config:
51
+ # dataset: math
52
+ # input_ids:
53
+ # - generate_math_problems
54
 
55
+ # - id: load_gsmk8_source
56
+ # config:
57
+ # type: json_source
58
+ # file: dcft/data_strategies/MetaMath/gsm8k_train.json
59
 
60
+ # - id: rename_column_gsmk8
61
+ # config:
62
+ # type: function
63
+ # function: data_strategies.commons.force_rename_columns
64
+ # function_config:
65
+ # column_maps:
66
+ # answer_detail: detailed_answer
67
+ # input_ids:
68
+ # - load_gsmk8_source
69
 
70
+ # - id: generate_gsmk8_problems
71
+ # config:
72
+ # type: completions
73
+ # require_all_responses: False
74
+ # map: metamath_problem_clone
75
+ # map_config:
76
+ # starting_id: 7501
77
+ # ending_id: 60000
78
+ # problems_per_input: 8
79
+ # question_column: question
80
+ # detailed_answer_column: detailed_answer
81
+ # answer_column: answer
82
+ # model: gpt-4o-mini
83
+ # input_ids:
84
+ # - rename_column_gsmk8
85
 
86
+ # - id: add_column_gsmk8
87
+ # config:
88
+ # type: function
89
+ # function: data_strategies.commons.add_constant_columns
90
+ # function_config:
91
+ # dataset: gsmk8
92
+ # input_ids:
93
+ # - generate_gsmk8_problems
94
 
95
+ # - id: mix_math_gsmk8
96
+ # config:
97
+ # type: mix
98
+ # input_ids:
99
+ # - add_column_gsmk8
100
+ # - add_column_math
101
 
102
+ # - id: generate_backward_questions
103
+ # config:
104
+ # type: completions
105
+ # require_all_responses: False
106
+ # map: metamath_inverse_question
107
+ # map_config:
108
+ # question_column: question
109
+ # output_inverse_question_column: inverse_question
110
+ # output_inverse_answer_column: inverse_answer
111
+ # model: gpt-4o-mini
112
+ # input_ids:
113
+ # - mix_math_gsmk8
114
 
115
+ # - id: self_verify
116
+ # config:
117
+ # type: completions
118
+ # require_all_responses: False
119
+ # map: metamath_self_verification
120
+ # map_config:
121
+ # question_column: inverse_question
122
+ # answer_column: answer
123
+ # model: gpt-4o-mini
124
+ # input_ids:
125
+ # - generate_backward_questions
126
 
127
+ # - id: fobar
128
+ # config:
129
+ # type: function
130
+ # function: data_strategies.MetaMath.utils.fobar
131
+ # input_ids:
132
+ # - generate_backward_questions
133
 
134
+ # - id: solve_inverse_questions
135
+ # config:
136
+ # type: completions
137
+ # require_all_responses: False
138
+ # map: metamath_solve_inverse
139
+ # map_config:
140
+ # inverse_question_column: inverse_question
141
+ # inverse_answer_column: inverse_answer
142
+ # output_predicted_answer_column: predicted_answer
143
+ # model: gpt-4o-mini
144
+ # input_ids:
145
+ # - self_verify
146
+ # - fobar
147
 
148
+ # - id: rename_columns_inverse
149
+ # config:
150
+ # type: function
151
+ # function: data_strategies.commons.force_rename_columns
152
+ # function_config:
153
+ # column_maps:
154
+ # inverse_question: instruction
155
+ # predicted_answer: completion
156
+ # input_ids:
157
+ # - solve_inverse_questions
158
 
159
+ # - id: rephrase_questions
160
+ # config:
161
+ # type: completions
162
+ # require_all_responses: False
163
+ # map: metamath_rephrase_question
164
+ # map_config:
165
+ # question_column: question
166
+ # output_rephrased_question_column: rephrased_question
167
+ # model: gpt-4o-mini
168
+ # input_ids:
169
+ # - mix_math_gsmk8
170
 
171
+ # - id: solve_rephrased_questions
172
+ # config:
173
+ # type: completions
174
+ # require_all_responses: False
175
+ # map: metamath_solve_rephrased
176
+ # map_config:
177
+ # rephrased_question_column: rephrased_question
178
+ # answer_column: answer
179
+ # output_predicted_answer_column: predicted_answer
180
+ # model: gpt-4o-mini
181
+ # input_ids:
182
+ # - rephrase_questions
183
 
184
+ # - id: rename_columns_rephrased
185
+ # config:
186
+ # type: function
187
+ # function: data_strategies.commons.force_rename_columns
188
+ # function_config:
189
+ # column_maps:
190
+ # rephrased_question: instruction
191
+ # predicted_answer: completion
192
+ # input_ids:
193
+ # - solve_rephrased_questions
194
 
195
+ # - id: mix_rephrased_and_inverse
196
+ # config:
197
+ # type: mix
198
+ # input_ids:
199
+ # - rename_columns_inverse
200
+ # - rename_columns_rephrased
201
 
202
+ # - id: keep_prompt_and_completion
203
+ # config:
204
+ # type: function
205
+ # function: data_strategies.commons.select_columns
206
+ # function_config:
207
+ # columns: [instruction, completion]
208
+ # input_ids:
209
+ # - mix_rephrased_and_inverse
210
 
211
  # - id: rename_task_column_final
212
  # config: