EtashGuha commited on
Commit
3191edd
·
verified ·
1 Parent(s): cb29794

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/a1_math_automathtext.yaml +144 -0
config/a1_math_automathtext.yaml ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_math
3
+ config:
4
+ type: hf_source
5
+ dataset: math-ai/AutoMathText
6
+ split: train
7
+ trust_remote_code: True
8
+ - id: sample_dataset
9
+ config:
10
+ type: function
11
+ function: data_strategies.commons.uniform_sample_fixed
12
+ function_config:
13
+ num_samples: 50_000 # 1.25% of 10000 target from stage 1
14
+ input_ids:
15
+ - load_math
16
+ - id: add_constant_column
17
+ config:
18
+ type: function
19
+ function: data_strategies.commons.add_constant_columns
20
+ function_config:
21
+ response_seed: ""
22
+ input_ids:
23
+ - sample_dataset
24
+ - id: drop_columns
25
+ config:
26
+ type: function
27
+ function: data_strategies.commons.keep_only_columns
28
+ function_config:
29
+ columns_to_keep:
30
+ - response_seed
31
+ - text
32
+ input_ids:
33
+ - add_constant_column
34
+ - id: generate_instructions
35
+ config:
36
+ type: completions
37
+ map: chat
38
+ require_all_responses: false
39
+ map_config:
40
+ system_message: "You are a helpful assistant."
41
+ user_message: |
42
+ You are to reform the following math text snippet into a question with a quantitative or verifiable answer such as one that would be
43
+ included in the USAMO or the Putnam Exam.
44
+
45
+ Text: {{text}}
46
+
47
+ Include only the new question or task. Do not include anything like "Here is the instruction". You can either extract a
48
+ question from the text or form a new one based on the text. Make the question sound like what a human would ask a language model.
49
+ output_column: instruction_seed
50
+ model: gpt-4o-mini
51
+ temperature: 1.0
52
+ batch: False
53
+ input_ids:
54
+ - drop_columns
55
+ - id: decontaminate
56
+ config:
57
+ type: cpu_function
58
+ sharded: false
59
+ num_cpus: 32
60
+ function: data_strategies._A1_Source.utils.decontaminate_fuzzy_w_ngram
61
+ function_config:
62
+ column: instruction_seed
63
+ eval_datasets:
64
+ - HuggingFaceH4/MATH-500
65
+ - Maxwell-Jia/AIME_2024
66
+ - AI-MO/aimo-validation-amc
67
+ - livecodebench/code_generation_lite
68
+ - mlfoundations-dev/AIME2025_combined
69
+ - mlfoundations-dev/cais-hle-multipleChoice-noImage
70
+ - open-r1/codeforces
71
+ - Idavidrein/gpqa
72
+ - daman1209arora/jeebench
73
+ eval_columns:
74
+ - problem
75
+ - Problem
76
+ - problem
77
+ - question_content
78
+ - question
79
+ - question
80
+ - description
81
+ - Question
82
+ - question
83
+ eval_splits:
84
+ - test
85
+ - train
86
+ - train
87
+ - test
88
+ - train
89
+ - test
90
+ - test
91
+ - train
92
+ - test
93
+ eval_subsets:
94
+ Idavidrein/gpqa: gpqa_diamond
95
+ similarity_threshold: 80.0
96
+ input_ids:
97
+ - generate_instructions
98
+ - id: sample_dataset_final
99
+ config:
100
+ type: function
101
+ function: data_strategies.commons.uniform_sample_fixed
102
+ function_config:
103
+ num_samples: 31_600 # 1.25% of 10000 target from stage 1
104
+ input_ids:
105
+ - decontaminate
106
+
107
+ # - id: annotate_r1
108
+ # config:
109
+ # type: completions
110
+ # map: deepseek_reasoner
111
+ # map_config:
112
+ # input_problem_column: instruction_seed
113
+ # model: deepseek-reasoner
114
+ # batch: false
115
+ # temperature: 1.0
116
+ # require_all_responses: false
117
+ # backend: openai
118
+ # backend_params:
119
+ # max_requests_per_minute: 500
120
+ # max_tokens_per_minute: 1_000_000_000
121
+ # base_url: "https://api.deepseek.com/"
122
+ # invalid_finish_reasons: ['content_filter']
123
+ # input_ids:
124
+ # - sample_dataset_final
125
+ # - id: convert_reasoning_trace_to_final
126
+ # config:
127
+ # type: function
128
+ # function: data_strategies.commons.convert_reasoning_trace_to_final
129
+ # function_config:
130
+ # reasoning_column: reasoning
131
+ # solution_column: deepseek_solution
132
+ # output_column: final_reasoning_trace
133
+ # input_ids:
134
+ # - annotate_r1
135
+ # - id: convert_to_sharegpt
136
+ # config:
137
+ # type: function
138
+ # function: data_strategies.commons.convert_instruction_response_to_sharegpt
139
+ # function_config:
140
+ # input_instruction_column: instruction_seed
141
+ # input_response_column: final_reasoning_trace
142
+ # output_sharegpt_column: conversations
143
+ # input_ids:
144
+ # - convert_reasoning_trace_to_final