EtashGuha commited on
Commit
6b26786
·
verified ·
1 Parent(s): fe5d4e7

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/a1_math_openwebmath.yaml +145 -0
config/a1_math_openwebmath.yaml ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_math
3
+ config:
4
+ type: hf_source
5
+ dataset: open-web-math/open-web-math
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: generate_instructions
17
+ config:
18
+ type: completions
19
+ map: chat
20
+ map_config:
21
+ system_message: "You are a helpful assistant."
22
+ user_message: |
23
+ You are to reform the following math text snippet into a question with a quantitative or verifiable answer such as one that would be
24
+ included in the USAMO or the Putnam Exam.
25
+
26
+ Text: {{text}}
27
+
28
+ Include only the new question or task. Do not include anything like "Here is the instruction". You can either extract a
29
+ 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.
30
+ output_column: instruction_seed
31
+ model: gpt-4o-mini
32
+ temperature: 1.0
33
+ require_all_responses: False
34
+ batch: True
35
+ input_ids:
36
+ - sample_dataset
37
+ - id: add_constant_column
38
+ config:
39
+ type: function
40
+ function: data_strategies.commons.add_constant_columns
41
+ function_config:
42
+ response_seed: ""
43
+ input_ids:
44
+ - generate_instructions
45
+ - id: drop_columns
46
+ config:
47
+ type: function
48
+ function: data_strategies.commons.keep_only_columns
49
+ function_config:
50
+ columns_to_keep:
51
+ - instruction_seed
52
+ - response_seed
53
+ input_ids:
54
+ - add_constant_column
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
+ ngram_size: 13
97
+ input_ids:
98
+ - drop_columns
99
+ - id: sample_dataset_final
100
+ config:
101
+ type: function
102
+ function: data_strategies.commons.uniform_sample_fixed
103
+ function_config:
104
+ num_samples: 31_600 # 1.25% of 10000 target from stage 1
105
+ input_ids:
106
+ - decontaminate
107
+
108
+ # - id: annotate_r1
109
+ # config:
110
+ # type: completions
111
+ # map: deepseek_reasoner
112
+ # map_config:
113
+ # input_problem_column: instruction_seed
114
+ # model: deepseek-reasoner
115
+ # batch: false
116
+ # temperature: 1.0
117
+ # require_all_responses: false
118
+ # backend: openai
119
+ # backend_params:
120
+ # max_requests_per_minute: 500
121
+ # max_tokens_per_minute: 1_000_000_000
122
+ # base_url: "https://api.deepseek.com/"
123
+ # invalid_finish_reasons: ['content_filter']
124
+ # input_ids:
125
+ # - sample_dataset_final
126
+ # - id: convert_reasoning_trace_to_final
127
+ # config:
128
+ # type: function
129
+ # function: data_strategies.commons.convert_reasoning_trace_to_final
130
+ # function_config:
131
+ # reasoning_column: reasoning
132
+ # solution_column: deepseek_solution
133
+ # output_column: final_reasoning_trace
134
+ # input_ids:
135
+ # - annotate_r1
136
+ # - id: convert_to_sharegpt
137
+ # config:
138
+ # type: function
139
+ # function: data_strategies.commons.convert_instruction_response_to_sharegpt
140
+ # function_config:
141
+ # input_instruction_column: instruction_seed
142
+ # input_response_column: final_reasoning_trace
143
+ # output_sharegpt_column: conversations
144
+ # input_ids:
145
+ # - convert_reasoning_trace_to_final