Upload configuration file
Browse files- 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 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
|
| 18 |
-
- id: extract_math_answer
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
|
| 30 |
-
- id: generate_math_problems
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
|
| 46 |
-
- id: add_column_math
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
|
| 55 |
-
- id: load_gsmk8_source
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
|
| 60 |
-
- id: rename_column_gsmk8
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
|
| 70 |
-
- id: generate_gsmk8_problems
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
|
| 86 |
-
- id: add_column_gsmk8
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
|
| 95 |
-
- id: mix_math_gsmk8
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
|
| 102 |
-
- id: generate_backward_questions
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
|
| 115 |
-
- id: self_verify
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
|
| 127 |
-
- id: fobar
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
|
| 134 |
-
- id: solve_inverse_questions
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
|
| 148 |
-
- id: rename_columns_inverse
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
|
| 159 |
-
- id: rephrase_questions
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
|
| 171 |
-
- id: solve_rephrased_questions
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
|
| 184 |
-
- id: rename_columns_rephrased
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
|
| 195 |
-
- id: mix_rephrased_and_inverse
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
|
| 202 |
-
- id: keep_prompt_and_completion
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 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:
|