Upload configuration file
Browse files
config/filtered_pdf_flow.yaml
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: load_seed_code
|
| 3 |
+
config:
|
| 4 |
+
type: load_preexisting
|
| 5 |
+
framework_name: raw_parsed_pdfs_for_verifiable_qa
|
| 6 |
+
- id: filtered_qas
|
| 7 |
+
config:
|
| 8 |
+
shard: True
|
| 9 |
+
num_shards: 1
|
| 10 |
+
type: function
|
| 11 |
+
function: data_strategies.32b_exploit.pdf_helper.filter_valid_qas
|
| 12 |
+
input_ids:
|
| 13 |
+
- load_seed_code
|
| 14 |
+
- id: validate_questions
|
| 15 |
+
config:
|
| 16 |
+
type: completions
|
| 17 |
+
model: gpt-4o-mini
|
| 18 |
+
map: binary_classifier
|
| 19 |
+
map_config:
|
| 20 |
+
user_message: |
|
| 21 |
+
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.
|
| 22 |
+
Provide your reasoning.
|
| 23 |
+
Question:
|
| 24 |
+
{{improved_question_solution}}
|
| 25 |
+
output_column: qa_validation_outputs
|
| 26 |
+
temperature: 0.0 # From stage 1
|
| 27 |
+
top_p: 1.0
|
| 28 |
+
presence_penalty: 0.0
|
| 29 |
+
input_ids:
|
| 30 |
+
- filtered_qas
|
| 31 |
+
|
| 32 |
+
- id: filter_by_validation_output
|
| 33 |
+
config:
|
| 34 |
+
type: function
|
| 35 |
+
function: data_strategies.commons.select_rows
|
| 36 |
+
function_config:
|
| 37 |
+
conditions:
|
| 38 |
+
qa_validation_outputs: True
|
| 39 |
+
input_ids:
|
| 40 |
+
- validate_questions
|
| 41 |
+
- id: fuzzy_dedup
|
| 42 |
+
config:
|
| 43 |
+
type: cpu_function
|
| 44 |
+
num_cpus: 80
|
| 45 |
+
function: data_strategies.DeepSeekR1.utils.fuzzy_dedup
|
| 46 |
+
function_config:
|
| 47 |
+
column: improved_question_solution
|
| 48 |
+
similarity_threshold: 95.0
|
| 49 |
+
input_ids:
|
| 50 |
+
- filter_by_validation_output
|
| 51 |
+
- id: decontaminate
|
| 52 |
+
config:
|
| 53 |
+
type: cpu_function
|
| 54 |
+
num_cpus: 80
|
| 55 |
+
function: data_strategies.DeepSeekR1.utils.decontaminate_table
|
| 56 |
+
function_config:
|
| 57 |
+
column: improved_question_solution
|
| 58 |
+
eval_datasets:
|
| 59 |
+
- HuggingFaceH4/MATH-500
|
| 60 |
+
- Maxwell-Jia/AIME_2024
|
| 61 |
+
- AI-MO/aimo-validation-amc
|
| 62 |
+
- livecodebench/code_generation_lite
|
| 63 |
+
eval_columns:
|
| 64 |
+
- problem
|
| 65 |
+
- Problem
|
| 66 |
+
- problem
|
| 67 |
+
- question_content
|
| 68 |
+
eval_splits:
|
| 69 |
+
- test
|
| 70 |
+
- train
|
| 71 |
+
- train
|
| 72 |
+
- test
|
| 73 |
+
similarity_threshold: 95.0
|
| 74 |
+
input_ids:
|
| 75 |
+
- fuzzy_dedup
|