EtashGuha commited on
Commit
f6264cb
·
verified ·
1 Parent(s): 2f26544

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/a1_science_camel_physics.yaml +170 -0
config/a1_science_camel_physics.yaml ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_discipline
3
+ config:
4
+ type: function
5
+ function: data_strategies.commons.load_json_string_to_dataset
6
+ function_config:
7
+ json_string: '{"discipline": ["physics"], "expert": ["Physicist"], "num_topics": [25], "num_subtopics": [25], "num_questions": [80]}'
8
+
9
+ - id: generate_topics
10
+ config:
11
+ type: completions
12
+ map: list # this uses structured output if available
13
+ map_config:
14
+ system_message: "You are a helpful assistant."
15
+ user_message: "Please list {{num_topics}} diverse {{discipline}} topics. Make sure the topics are {{discipline}} topics. No explanation." # number of topics
16
+ output_column: topic
17
+ model: gpt-4o-mini
18
+ batch: False
19
+ input_ids:
20
+ - load_discipline
21
+
22
+ - id: generate_subtopics
23
+ config:
24
+ type: completions
25
+ map: list # this uses structured output if available
26
+ map_config:
27
+ system_message: "You are a helpful assistant."
28
+ user_message: "List {{num_subtopics}} different {{discipline}} {{topic}} problem topics. Be precise and make sure the problems are {{topic}} problems." # number of subtopics per topic
29
+ output_column: subtopic
30
+ model: gpt-4o-mini
31
+ batch: False
32
+ input_ids:
33
+ - generate_topics
34
+
35
+ - id: generate_questions
36
+ config:
37
+ type: completions
38
+ map: list
39
+ map_config:
40
+ system_message: "You are a {{expert}}."
41
+ user_message: "From this {{discipline}} subject {{topic}} and this subtopic {{subtopic}} we need to write {{num_questions}} new questions for a {{discipline}} student to solve. Please write a precise problem for the student to solve."
42
+ output_column: question
43
+ model: gpt-4o-mini
44
+ batch: False
45
+ input_ids:
46
+ - generate_subtopics
47
+
48
+ - id: rename_task_column
49
+ config:
50
+ type: function
51
+ function: data_strategies.commons.force_rename_columns
52
+ function_config:
53
+ column_maps:
54
+ question: instruction_seed
55
+ input_ids:
56
+ - generate_questions
57
+ - id: sample_dataset_pre
58
+ config:
59
+ type: function
60
+ function: data_strategies.commons.uniform_sample_fixed
61
+ function_config:
62
+ num_samples: 40_000
63
+ input_ids:
64
+ - rename_task_column
65
+ - id: annotate_r1_distill_70b
66
+ config:
67
+ type: completions
68
+ map: deepseek_reasoner
69
+ map_config:
70
+ input_problem_column: instruction_seed
71
+ model: deepseek-reasoner
72
+ batch: false
73
+ temperature: 1.0
74
+ require_all_responses: false
75
+ backend: openai
76
+ backend_params:
77
+ max_requests_per_minute: 500
78
+ max_tokens_per_minute: 1_000_000_000
79
+ base_url: "https://api.deepseek.com/"
80
+ invalid_finish_reasons: ['content_filter']
81
+ input_ids:
82
+ - sample_dataset_pre
83
+ - id: add_source_name
84
+ config:
85
+ type: function
86
+ function: data_strategies.commons.add_constant_columns
87
+ function_config:
88
+ source: "camel-physics"
89
+ input_ids:
90
+ - annotate_r1_distill_70b
91
+ - id: decontaminate
92
+ config:
93
+ type: cpu_function
94
+ sharded: false
95
+ num_cpus: 32
96
+ function: data_strategies._A1_Source.utils.decontaminate_fuzzy_w_ngram
97
+ function_config:
98
+ column: instruction_seed
99
+ eval_datasets:
100
+ - HuggingFaceH4/MATH-500
101
+ - Maxwell-Jia/AIME_2024
102
+ - AI-MO/aimo-validation-amc
103
+ - livecodebench/code_generation_lite
104
+ - mlfoundations-dev/AIME2025_combined
105
+ - cais/hle
106
+ - open-r1/codeforces
107
+ - Idavidrein/gpqa
108
+ - daman1209arora/jeebench
109
+ - mlfoundations-dev/mmlu_pro_eval_full
110
+ - Qwen/CodeElo
111
+ - open-r1/ioi
112
+ eval_columns:
113
+ - problem
114
+ - Problem
115
+ - problem
116
+ - question_content
117
+ - question
118
+ - question
119
+ - description
120
+ - Question
121
+ - question
122
+ - prompt
123
+ - description
124
+ - statement
125
+ eval_splits:
126
+ - test
127
+ - train
128
+ - train
129
+ - test
130
+ - train
131
+ - test
132
+ - test
133
+ - train
134
+ - test
135
+ - test
136
+ - test
137
+ - test
138
+ eval_subsets:
139
+ Idavidrein/gpqa: gpqa_diamond
140
+ similarity_threshold: 75.0
141
+ ngram_size: 13
142
+ input_ids:
143
+ - add_source_name
144
+ - id: sample_dataset
145
+ config:
146
+ type: function
147
+ function: data_strategies.commons.uniform_sample_limited
148
+ function_config:
149
+ num_samples: 31_600 # 1.25% of 10000 target from stage 1
150
+ input_ids: ["decontaminate"]
151
+ - id: convert_reasoning_trace_to_final
152
+ config:
153
+ type: function
154
+ function: data_strategies.commons.convert_reasoning_trace_to_final
155
+ function_config:
156
+ reasoning_column: reasoning
157
+ solution_column: deepseek_solution
158
+ output_column: final_reasoning_trace
159
+ input_ids:
160
+ - sample_dataset
161
+ - id: convert_to_sharegpt
162
+ config:
163
+ type: function
164
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
165
+ function_config:
166
+ input_instruction_column: instruction_seed
167
+ input_response_column: final_reasoning_trace
168
+ output_sharegpt_column: conversations
169
+ input_ids:
170
+ - convert_reasoning_trace_to_final