EtashGuha commited on
Commit
444542e
·
verified ·
1 Parent(s): b0861b0

Upload configuration file

Browse files
config/a1_science_organic_chem_pdfs.yaml ADDED
@@ -0,0 +1,453 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: create_urls
3
+ config:
4
+ type: function
5
+ function: data_strategies.32b_exploit.seed_pdf_parser.utils.create_url_dataset
6
+ function_config:
7
+ urls:
8
+ - "https://assets.openstax.org/oscms-prodcms/media/documents/OrganicChemistry-SAMPLE_9ADraVJ.pdf"
9
+ - "https://tech.chemistrydocs.com/Books/Organic/Fundamentals-of-Organic-Chemistry-by-John-McMurry-7th-Edition.pdf"
10
+ - "https://blogmedia.testbook.com/kmat-kerala/wp-content/uploads/2023/06/organic-chemistry-by-jonathan-clayden-nick-greeves-stuart-warren-z-lib.org_-847123c1.pdf"
11
+ - "https://djm.cc/library/Principles_of_Organic_Chemistry_Norris_edited.pdf"
12
+ - "https://peralta18.wordpress.com/wp-content/uploads/2011/12/francis-a-carey-organic-chemistry-4th-ed.pdf"
13
+ - "https://rushim.ru/books/mechanizms/march6ed.pdf"
14
+ - "https://softouch.on.ca/kb/data/Organic%20Chemistry%20I%20For%20Dummies.pdf"
15
+ - "http://jsforum.chez-alice.fr/book/org-chem-hoffman-2.pdf"
16
+ - "https://faculty.ksu.edu.sa/sites/default/files/vogel_-_practical_organic_chemistry_5th_edition.pdf"
17
+ - "https://tech.chemistrydocs.com/Books/Organic/Organic-Chemistry-An-Acid-Base-Approach-3e-By-Michael-Smith.pdf"
18
+ - "https://scholarsbasics.wordpress.com/wp-content/uploads/2018/03/essentials-of-organic-chemistry-dewick-paul-m-srg.pdf"
19
+ - "https://chemistlibrary.wordpress.com/wp-content/uploads/2015/07/advanced-organic-chemistry-4ed-2000-part-a-structure-and-mechanisms-carey-sundberg.pdf"
20
+ - "https://ncert.nic.in/textbook/pdf/kech202.pdf"
21
+ - "https://www.siue.edu/~tpatric/Ch%2001%20Intro%20H%20T%20I.pdf"
22
+ - "https://uscibooks.aip.org/wp-content/uploads/adfm_new.pdf"
23
+ - "https://www.cur.ac.rw/mis/main/library/documents/book_file/digital-66644eea87c353.30190490.pdf"
24
+ - "https://chem.teset.sumdu.edu.ua/media/documents/C.%20G.%20Lyons,%20S.%20McLintock%20and%20Nora%20H.%20Lumb%20(Auth.)-A%20Concise%20Text-book%20of%20Organic%20Chemistry-Pergamon%20(1965).pdf"
25
+ - "https://alazharpharmacy.com/documents/level-1/semester-2/organic-chemistry-1/Organic-Chemistry-John-McMurry-9th.pdf"
26
+ - "https://yustikaforict.wordpress.com/wp-content/uploads/2012/12/organic_chemistry_4th_ed_-_francis_a-_carey-291.pdf"
27
+ - "https://library.sciencemadness.org/library/books/the_practical_methods_of_organic_chemistry.pdf"
28
+ - "https://warwick.ac.uk/fac/sci/chemistry/research/wills/willsgroup/teaching_materials/basic_organic_chemistry_and_mechanisms_revision_from_m_wills_for_when_you_are_lost_and_confused.pdf"
29
+ - "https://tech.chemistrydocs.com/Books/Organic/Study-Guide-and-Solutions-Manual-for-Organic-Chemistry-by-Paula-Yurkanis-Bruice.pdf"
30
+ - "https://9afi.com/storage/daftar/OYK01OrRS6b8KdwjD0Wvq7KAnhqluKvtaoY6WU99.pdf"
31
+ - "https://web.mnstate.edu/jasperse/online/PracticeTests-Answers-All-Chem350.pdf"
32
+ - "https://www.zu.edu.jo/UploadFile/Library/E_Books/Files/LibraryFile_16956_49.pdf"
33
+ - "https://biologystudentuprcayey.wordpress.com/wp-content/uploads/2012/08/organic-chemistry-5th-edition-by-paula-yurkanis-bruice.pdf"
34
+ - "https://web.ung.edu/media/Chemistry2/Chemistry-LR.pdf"
35
+ - "https://www.mdc.edu/wolfson/sciencecenter/docs/Chemistry/Organic-Chemistry-ACS-sample-Questions.pdf"
36
+ - "https://kvmwai.edu.in/upload/StudyMaterial/Org__Chem_by_Carrothur.pdf"
37
+ - "http://orga.blog.unq.edu.ar/wp-content/uploads/sites/72/2016/08/Techniky-organickej-chemie.pdf"
38
+ - "https://copharm.uobaghdad.edu.iq/wp-content/uploads/sites/6/2019/10/Organic-Chemistry-6th-Edition.pdf"
39
+ - "https://library.sciencemadness.org/library/books/vogel_practical_ochem_3.pdf"
40
+ - "https://benthambooks.com/ebook-files/sample-files/9789815223224-sample.pdf"
41
+ - "https://crescent.education/wp-content/uploads/2021/06/Pharmaceutical-Organic-Chemistry.pdf"
42
+ - "https://healy.create.stedwards.edu/Chemistry/CHEM30/Syllabus/instant_notes_in_organic.pdf"
43
+ - "https://rushim.ru/books/praktikum/Monson.pdf"
44
+ - "https://mazams.weebly.com/uploads/4/8/2/6/48260335/tcy156.pdf"
45
+ - "https://sites.science.oregonstate.edu/chemistry/courses/ch411/restrict2/ch411%20F11%20final%20key%20.pdf"
46
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/avogadro-exam-solution-2011.pdf"
47
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/avogadro-exam-solution-2010.pdf"
48
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/avogadro-exam-solution-2009.pdf"
49
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/avogadro-exam-solution-2008.pdf"
50
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/avogadro-exam-solution-2007.pdf"
51
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/chem-13-news-solution-2011.pdf"
52
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/chem-13-news-exam-solution-2010.pdf"
53
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/chem-13-news-exam-solution-2009.pdf"
54
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/chem-13-news-exam-solution-2008.pdf"
55
+ - "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/chem-13-news-exam-solution-2007.pdf"
56
+ - "https://www.icho.sk/files/documents/preparatory-problems/series-1/preparatory%20problems%20icho%202011%20.pdf"
57
+ - "https://www.mit.edu/~anugrah/files/MockIChOSolutions.pdf"
58
+ - "https://www.mit.edu/~anugrah/files/2012CChOLocalSoln.pdf"
59
+ - "https://docs.google.com/document/d/1NUKaRdZJL6jlGv4_TDKFtWFRcJhA9big/edit?usp=sharing&ouid=104203154145158971338&rtpof=true&sd=true"
60
+ - "https://www.cheminst.ca/wp-content/uploads/2022/11/CCC-PtA-2022-ENG-final-ANSWERS.pdf"
61
+ - "https://www.cheminst.ca/wp-content/uploads/2022/12/Canadian-Chemistry-Olympiad-2022-EN_key.pdf"
62
+ - "https://www.cheminst.ca/wp-content/uploads/2022/01/CCC-PtA-2021-ENG-ANSWERS.pdf"
63
+ - "https://www.cheminst.ca/wp-content/uploads/2021/01/CCC-PtA-2020-ENG-ANSWERS-revised-COVID19.pdf"
64
+ - "https://www.cheminst.ca/wp-content/uploads/2019/11/CCC-2019-PtA-answers.pdf"
65
+ - "https://www.cheminst.ca/wp-content/uploads/2019/11/CCC-2017-PtA-answers-EN.pdf"
66
+ - "https://www.cheminst.ca/wp-content/uploads/2019/11/CCC-2018-PtA-answers-EN.pdf"
67
+ - "https://www.cheminst.ca/wp-content/uploads/2019/11/CCC-2016-PtA-answers-EN.pdf"
68
+ - "https://www.cheminst.ca/wp-content/uploads/2019/11/CCC-2015-PtA-answers-EN.pdf"
69
+ - "https://www.cheminst.ca/wp-content/uploads/2019/11/CCC-2014-PtA-answers-EN.pdf"
70
+ - "https://www.ttcho.com/_files/ugd/988b76_e3d21fc42bb24de4959d7250f0cfcb3a.pdf"
71
+ - "https://www.ttcho.com/_files/ugd/988b76_01ceeff230b24cbbb0125b2bfa3f3475.pdf"
72
+ - "https://www.ttcho.com/_files/ugd/988b76_48944f6ace684143bfdc9080fca59862.pdf"
73
+ - "https://www.ttcho.com/_files/ugd/988b76_ba0cb3177d05436da273a400a037ed01.pdf"
74
+ - "http://chemistryrace.com/wp-content/uploads/2025/02/ChR_2025_answer_booklet.pdf"
75
+ - "http://chemistryrace.com/wp-content/uploads/2024/02/ChR_2024_answer_booklet.pdf"
76
+ - "http://chemistryrace.com/wp-content/uploads/2023/02/chemistry_race_2023_answers-book.pdf"
77
+ - "http://chemistryrace.com/wp-content/uploads/2022/02/cambridge_chemistry_race_2022_answers.pdf"
78
+ - "http://chemistryrace.com/wp-content/uploads/2021/02/Chemistry_Race_2021_Questions_and_Solutions.pdf"
79
+ - "https://chemistryrace.soc.srcf.net/wp-content/uploads/2020/02/Chemistry_Race_2020_Questions_and_Solutions.pdf"
80
+ - "http://www.learnchem.net/quiz2/colympiad/1999l.shtml"
81
+ - "https://www.soinc.org/chem-lab-c"
82
+ - "https://mhchem.org/221/classroom/qe.htm"
83
+ - "https://www.oecho.at/austrian-chemistry-olympiad/exercises/"
84
+ - "https://www.usmle.org/sites/default/files/2021-10/Step_1_Sample_Items.pdf"
85
+ - "https://www.cambridgeinternational.org/programmes-and-qualifications/cambridge-igcse-chemistry-0620/past-papers/"
86
+ - "https://www.asi.edu.au/wp-content/uploads/2024/02/ASOE-Chemistry-2023-Exam-Paper.pdf"
87
+ - "https://www.asi.edu.au/wp-content/uploads/2023/05/ASOE-Chemistry-2022-ASDAN-questions-only.pdf"
88
+ - "https://www.asi.edu.au/wp-content/uploads/2023/05/ASOE_Chemistry_2021_reduced-FS-1.pdf"
89
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2020-asoe-chemistry-exam.pdf"
90
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2019-asoe-chemistry-exam.pdf"
91
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2018-asoe-chemistry-exam.pdf"
92
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2017-asoe-chemistry-exam.pdf"
93
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2016-asoe-chemistry-exam.pdf"
94
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2015-asoe-chemistry-exam.pdf"
95
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2014-asoe-chemistry-exam.pdf"
96
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2013-asoe-chemistry-exam.pdf"
97
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2012-asoe-chemistry-exam.pdf"
98
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2011-asoe-chemistry-exam.pdf"
99
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2010-asoe-chemistry-exam.pdf"
100
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2009-asoe-chemistry-exam.pdf"
101
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2008-asoe-chemistry-exam.pdf"
102
+ - "https://www.asi.edu.au/wp-content/uploads/2022/12/2007-asoe-chemistry-exam.pdf"
103
+ - "http://lib.ysu.am/disciplines_bk/ea4b336028cd91ba7265865d8fde153c.pdf"
104
+ - "https://www.sfcollege.edu/_media/Assets/sf/placement/files/Chemistry%20Practice%20Placement%20Exam.pdf"
105
+ - "https://www.pvamu.edu/chemistry/wp-content/uploads/sites/26/_01_pract_Test.pdf"
106
+ - "https://sccollege.edu/students/studentservices/counseling/Shared%20Documents/Chem%20Placement%20Practice%20Exam%202023.pdf"
107
+ - "https://www.csn.edu/sites/default/files/documents/department-documents/department-of-physical-sciences/chemplacementtestpractice.pdf"
108
+ - id: get_pdf_bytes
109
+ config:
110
+ shard: True
111
+ num_shards: 10
112
+ type: function
113
+ function: data_strategies.32b_exploit.seed_pdf_parser.utils.download_pdfs
114
+ input_ids:
115
+ - create_urls
116
+ - id: process_pdfs
117
+ config:
118
+ sharded: True
119
+ num_shards: 10
120
+ type: function
121
+ function: data_strategies.32b_exploit.seed_pdf_parser.utils.get_all_page_counts
122
+ input_ids:
123
+ - get_pdf_bytes
124
+ - id: get_page_bytes
125
+ config:
126
+ type: cpu_function
127
+ num_cpus: 40
128
+ sharded: true
129
+ num_shards: 20
130
+ function: data_strategies.32b_exploit.seed_pdf_parser.utils.expand_and_extract_pages
131
+ function_config:
132
+ page_count_column: page_count
133
+ input_ids:
134
+ - process_pdfs
135
+ - id: drop_columns
136
+ config:
137
+ type: function
138
+ sharded: True
139
+ num_shards: 1
140
+ function: data_strategies.commons.remove_columns
141
+ function_config:
142
+ columns:
143
+ - pdf_bytes
144
+ input_ids:
145
+ - get_page_bytes
146
+ - id: generate_plan_instructions
147
+ config:
148
+ type: completions
149
+ map: gemini_ocr
150
+ map_config:
151
+ pdf_url_column: "url"
152
+ output_extraction_column: "output_extraction"
153
+ page_number_column: "page_number"
154
+ model: "gemini/gemini-2.0-flash-lite-preview-02-05"
155
+ backend_params:
156
+ invalid_finish_reasons: ["content_filter"]
157
+ max_requests_per_minute: 4_000
158
+ max_tokens_per_minute: 4_000_000
159
+ input_ids:
160
+ - drop_columns
161
+ - id: get_question_choices_and_solutions
162
+ config:
163
+ type: completions
164
+ map: chat
165
+ map_config:
166
+ user_message: |
167
+ Extract the questions, answer choices, and solutions from the extracted text from the pdf below.
168
+
169
+ Format your response as below:
170
+ QUESTION: "the question from the text and all relevant context excluding the answer and choices" (i.e. if the question is "What was Elvis Presley's (a) favorite sandwich? (b) most hated song? (c) birthday?" You should have a question "QUESTION: What was Elvis Presley's favorite sandwich..." and then another question "QUESTION: What was Elvis Presley's most hated song?..." etc.)
171
+ ANSWER CHOICES: "answer choice 1" ||| "answer choice 2" ... (if no answer choices are available just say "free response", if answer choices are available please write them out i.e. "A: 0.57 ||| B: John Hancock ||| ..." etc.)
172
+ SOLUTION: "correct answer choice" or "free response answer". If you cannot determine the correct solution say "NO ANSWER DETECTED"
173
+
174
+ It is important that each QUESTION: is self contained, meaning, if you were to read "QUESTION: ..." by itself, you should be able to answer it. Given the example "What was Elvis Presley's (a) favorite sandwich? (b) most hated song? (c) birthday?", you should NOT say "QUESTION: favorite sandwich?" as this makes no sense. Instead you should say "QUESTION: What was Elvis Presley's favorite sandwich?"
175
+ To be clear. All questions with subquestions should be restated as individual questions themselves with all relevant information required to answer them.
176
+ Only break up the subquestions. I.E. only break up questions that have (a) (b) and (c) or (1) (2) and (3), do not break up questions that do not have markers indicating they have parts or subquestions please.
177
+ We are creating a bank of questions that are automatically extracted from pdfs, so it is imperative you get this right.
178
+ ---
179
+ Extracted Text:
180
+
181
+ {{output_extraction}}
182
+ """
183
+ output_column: question_choices_solutions
184
+ model: gpt-4o-mini
185
+ input_ids:
186
+ - generate_plan_instructions
187
+ - id: split_qas
188
+ config:
189
+ shard: True
190
+ num_shards: 1
191
+ type: function
192
+ function: data_strategies.32b_exploit.pdf_helper.process_extracted_questions
193
+ input_ids:
194
+ - get_question_choices_and_solutions
195
+ - id: generate_questions_improved
196
+ config:
197
+ type: completions
198
+ map: chat
199
+ map_config:
200
+ user_message: |
201
+ You are an instructor creating exam questions.
202
+ I will provide you with a given question and the text from which it was extracted from.
203
+ You will ensure that the question is answerable, meaning that there is enough context to answer the question.
204
+ To do this, you will look at the extracted text and ensure that nothing is missing from the current questions instantiation. If there is, you will provide the new extra text before restating the question but be sure you always add the question itself at the end.
205
+ Because you are an instructor creating exam questions, you will never include the solution in the extra text or question.
206
+
207
+ Here is an example of your task:
208
+ Extracted Question: Calculate the chemical amount (in mol or mmol) of nitric acid that reacts with the
209
+ 5.000 g sample of this mineral.
210
+ Extracted Text: A sample of a different mineral is analysed by the same methods. This mineral also contains only Pb2+, CO3 2−, OH− and O2− ions.
211
+ When a 5.000 g sample of this mineral is treated with 25.00 mL of 2.000 mol L−1 nitric acid
212
+ (HNO3), 0.5214 g of carbon dioxide is released, and 0.01051 mol of the acid remains.
213
+ When subjected to thermal decomposition, 5.000 g of this mineral loses 0.5926 g.
214
+ (g) Calculate the chemical amount (in mol or mmol) of nitric acid that reacts with the
215
+ 5.000 g sample of this mineral.
216
+
217
+ You would tell me:
218
+
219
+ A sample of a different mineral is analysed by the same methods. This mineral also contains only Pb2+, CO3 2−, OH− and O2− ions.
220
+ When a 5.000 g sample of this mineral is treated with 25.00 mL of 2.000 mol L−1 nitric acid
221
+ (HNO3), 0.5214 g of carbon dioxide is released, and 0.01051 mol of the acid remains.
222
+ When subjected to thermal decomposition, 5.000 g of this mineral loses 0.5926 g. Calculate the chemical amount (in mol or mmol) of nitric acid that reacts with the
223
+ 5.000 g sample of this mineral.
224
+
225
+ ---
226
+
227
+ Here is the question: {{extracted_question}}
228
+ Here is the extracted text: {{output_extraction}}
229
+
230
+ ---
231
+
232
+ Do not include any filler like "here is the improved question". Include only the relevant information and the question itself. Include all answer choices if applicable.
233
+ Do not include the solution if you see it. This is an exam, so you should NOT include the final answer in the question.
234
+ """
235
+ output_column: improved_question_solution
236
+ model: gpt-4o-mini
237
+ input_ids:
238
+ - split_qas
239
+ - id: filtered_qas
240
+ config:
241
+ shard: True
242
+ num_shards: 1
243
+ type: function
244
+ function: data_strategies.32b_exploit.pdf_helper.filter_valid_qas
245
+ input_ids:
246
+ - generate_questions_improved
247
+ - id: validate_questions
248
+ config:
249
+ type: completions
250
+ model: gpt-4o-mini
251
+ map: binary_classifier
252
+ map_config:
253
+ user_message: |
254
+ Yes or No, is the question an answerable difficult science, math, or coding question? If the question refers to content (figures, equations, additional text) that you cannot see, then it is unanswerable.
255
+ Provide your reasoning.
256
+ Question:
257
+ {{improved_question_solution}}
258
+ output_column: qa_validation_outputs
259
+ temperature: 0.0 # From stage 1
260
+ top_p: 1.0
261
+ presence_penalty: 0.0
262
+ input_ids:
263
+ - filtered_qas
264
+
265
+ - id: filter_by_validation_output
266
+ config:
267
+ type: function
268
+ function: data_strategies.commons.select_rows
269
+ function_config:
270
+ conditions:
271
+ qa_validation_outputs: True
272
+ input_ids:
273
+ - validate_questions
274
+ - id: load_scp_data
275
+ config:
276
+ type: hf_source
277
+ dataset: EricLu/SCP-116K
278
+ split: train
279
+ - id: slim_pdf_data
280
+ config:
281
+ type: function
282
+ function: data_strategies.commons.remove_columns
283
+ function_config:
284
+ columns:
285
+ - page_bytes
286
+ - output_extraction
287
+ input_ids:
288
+ - filter_by_validation_output
289
+ - id: pdf_altered
290
+ config:
291
+ type: function
292
+ function: data_strategies.commons.force_rename_columns
293
+ function_config:
294
+ column_maps:
295
+ improved_question_solution: problem
296
+ extracted_solution: matched_solution
297
+ input_ids:
298
+ - slim_pdf_data
299
+ - id: all_data
300
+ config:
301
+ type: mix
302
+ input_ids:
303
+ - load_scp_data
304
+ - pdf_altered
305
+ - id: organic_chem_questions
306
+ config:
307
+ type: completions
308
+ model: gpt-4o-mini
309
+ map: binary_classifier
310
+ map_config:
311
+ user_message: |
312
+ Yes or No, is this question an organic chemistry question?
313
+ Question:
314
+ {{problem}}
315
+ output_column: is_organic_chemistry
316
+ temperature: 0.0 # From stage 1
317
+ top_p: 1.0
318
+ presence_penalty: 0.0
319
+ input_ids:
320
+ - all_data
321
+
322
+ - id: filter_by_organic_chemistry_questions
323
+ config:
324
+ type: function
325
+ function: data_strategies.commons.select_rows
326
+ function_config:
327
+ conditions:
328
+ is_organic_chemistry: True
329
+ input_ids:
330
+ - organic_chem_questions
331
+ - id: rename_task_column
332
+ config:
333
+ type: function
334
+ function: data_strategies.commons.force_rename_columns
335
+ function_config:
336
+ column_maps:
337
+ problem: instruction_seed
338
+ input_ids:
339
+ - filter_by_organic_chemistry_questions
340
+ - id: sample_dataset_pre
341
+ config:
342
+ type: function
343
+ function: data_strategies.commons.uniform_sample_fixed
344
+ function_config:
345
+ num_samples: 40_000
346
+ input_ids:
347
+ - rename_task_column
348
+ - id: annotate_r1
349
+ config:
350
+ type: completions
351
+ map: deepseek_reasoner
352
+ map_config:
353
+ input_problem_column: instruction_seed
354
+ model: deepseek-reasoner
355
+ batch: false
356
+ temperature: 1.0
357
+ require_all_responses: false
358
+ backend: openai
359
+ backend_params:
360
+ max_requests_per_minute: 500
361
+ max_tokens_per_minute: 1_000_000_000
362
+ base_url: "https://api.deepseek.com/"
363
+ invalid_finish_reasons: ['content_filter']
364
+ input_ids:
365
+ - sample_dataset_pre
366
+ - id: add_source_name
367
+ config:
368
+ type: function
369
+ function: data_strategies.commons.add_constant_columns
370
+ function_config:
371
+ source: "organic-chemistry-questions"
372
+ input_ids:
373
+ - annotate_r1
374
+ - id: decontaminate
375
+ config:
376
+ type: cpu_function
377
+ sharded: false
378
+ num_cpus: 32
379
+ function: data_strategies._A1_Source.utils.decontaminate_fuzzy_w_ngram
380
+ function_config:
381
+ column: instruction_seed
382
+ eval_datasets:
383
+ - HuggingFaceH4/MATH-500
384
+ - Maxwell-Jia/AIME_2024
385
+ - AI-MO/aimo-validation-amc
386
+ - livecodebench/code_generation_lite
387
+ - mlfoundations-dev/AIME2025_combined
388
+ - cais/hle
389
+ - open-r1/codeforces
390
+ - Idavidrein/gpqa
391
+ - daman1209arora/jeebench
392
+ - mlfoundations-dev/mmlu_pro_eval_full
393
+ - Qwen/CodeElo
394
+ - open-r1/ioi
395
+ eval_columns:
396
+ - problem
397
+ - Problem
398
+ - problem
399
+ - question_content
400
+ - question
401
+ - question
402
+ - description
403
+ - Question
404
+ - question
405
+ - prompt
406
+ - description
407
+ - statement
408
+ eval_splits:
409
+ - test
410
+ - train
411
+ - train
412
+ - test
413
+ - train
414
+ - test
415
+ - test
416
+ - train
417
+ - test
418
+ - test
419
+ - test
420
+ - test
421
+ eval_subsets:
422
+ Idavidrein/gpqa: gpqa_diamond
423
+ similarity_threshold: 75.0
424
+ ngram_size: 13
425
+ input_ids:
426
+ - add_source_name
427
+ - id: sample_dataset
428
+ config:
429
+ type: function
430
+ function: data_strategies.commons.uniform_sample_limited
431
+ function_config:
432
+ num_samples: 31_600 # 1.25% of 10000 target from stage 1
433
+ input_ids: ["decontaminate"]
434
+ - id: convert_reasoning_trace_to_final
435
+ config:
436
+ type: function
437
+ function: data_strategies.commons.convert_reasoning_trace_to_final
438
+ function_config:
439
+ reasoning_column: reasoning
440
+ solution_column: deepseek_solution
441
+ output_column: final_reasoning_trace
442
+ input_ids:
443
+ - sample_dataset
444
+ - id: convert_to_sharegpt
445
+ config:
446
+ type: function
447
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
448
+ function_config:
449
+ input_instruction_column: instruction_seed
450
+ input_response_column: final_reasoning_trace
451
+ output_sharegpt_column: conversations
452
+ input_ids:
453
+ - convert_reasoning_trace_to_final