Upload configuration file
Browse files- config/parse_zayne_pdfs.yaml +28 -18
config/parse_zayne_pdfs.yaml
CHANGED
|
@@ -7,8 +7,8 @@ operators:
|
|
| 7 |
urls:
|
| 8 |
# - "https://www.andrews.edu/~rwright/physics/OpenStax%20Physics-Student%20Solution%20Manual.pdf"
|
| 9 |
# - "https://biocomp.utoronto.ca/files/2024/05/Exam2024.pdf"
|
| 10 |
-
- "https://ia801305.us.archive.org/8/items/ProblemsInCalculusOfOneVariableI.A.Maron/Problems%20in%20Calculus%20of%20One%20Variable%20-%20I.%20A.%20Maron.pdf"
|
| 11 |
-
|
| 12 |
# - "https://www.asi.edu.au/wp-content/uploads/2023/05/ASOE-Chemistry-2022-ASDAN-questions-only.pdf"
|
| 13 |
- id: get_pdf_bytes
|
| 14 |
config:
|
|
@@ -24,25 +24,35 @@ operators:
|
|
| 24 |
- get_pdf_bytes
|
| 25 |
- id: get_page_bytes
|
| 26 |
config:
|
| 27 |
-
type:
|
|
|
|
| 28 |
function: data_strategies.32b_exploit.seed_pdf_parser.utils.extract_pages_from_dataset
|
| 29 |
input_ids:
|
| 30 |
- process_pdfs
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
# - id: generate_questions
|
| 47 |
# config:
|
| 48 |
# type: completions
|
|
|
|
| 7 |
urls:
|
| 8 |
# - "https://www.andrews.edu/~rwright/physics/OpenStax%20Physics-Student%20Solution%20Manual.pdf"
|
| 9 |
# - "https://biocomp.utoronto.ca/files/2024/05/Exam2024.pdf"
|
| 10 |
+
# - "https://ia801305.us.archive.org/8/items/ProblemsInCalculusOfOneVariableI.A.Maron/Problems%20in%20Calculus%20of%20One%20Variable%20-%20I.%20A.%20Maron.pdf"
|
| 11 |
+
- "https://www.asi.edu.au/wp-content/uploads/2024/02/ASOE-Chemistry-2023-Exam-Paper.pdf"
|
| 12 |
# - "https://www.asi.edu.au/wp-content/uploads/2023/05/ASOE-Chemistry-2022-ASDAN-questions-only.pdf"
|
| 13 |
- id: get_pdf_bytes
|
| 14 |
config:
|
|
|
|
| 24 |
- get_pdf_bytes
|
| 25 |
- id: get_page_bytes
|
| 26 |
config:
|
| 27 |
+
type: cpu_function
|
| 28 |
+
num_cpus: 80
|
| 29 |
function: data_strategies.32b_exploit.seed_pdf_parser.utils.extract_pages_from_dataset
|
| 30 |
input_ids:
|
| 31 |
- process_pdfs
|
| 32 |
+
- id: drop_columns
|
| 33 |
+
config:
|
| 34 |
+
type: function
|
| 35 |
+
function: data_strategies.commons.remove_columns
|
| 36 |
+
function_config:
|
| 37 |
+
columns:
|
| 38 |
+
- pdf_bytes
|
| 39 |
+
input_ids:
|
| 40 |
+
- get_page_bytes
|
| 41 |
+
- id: generate_plan_instructions
|
| 42 |
+
config:
|
| 43 |
+
type: completions
|
| 44 |
+
map: gemini_ocr
|
| 45 |
+
map_config:
|
| 46 |
+
pdf_url_column: "url"
|
| 47 |
+
output_extraction_column: "output_extraction"
|
| 48 |
+
page_number_column: "page_number"
|
| 49 |
+
model: "gemini/gemini-2.0-flash-lite-preview-02-05"
|
| 50 |
+
backend_params:
|
| 51 |
+
invalid_finish_reasons: ["content_filter"]
|
| 52 |
+
max_requests_per_minute: 4_000
|
| 53 |
+
max_tokens_per_minute: 4_000_000
|
| 54 |
+
input_ids:
|
| 55 |
+
- drop_columns
|
| 56 |
# - id: generate_questions
|
| 57 |
# config:
|
| 58 |
# type: completions
|