sedrickkeh commited on
Commit
3174701
·
verified ·
1 Parent(s): d0ec144

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/load_in_math_automathtext.yaml +113 -0
config/load_in_math_automathtext.yaml ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_math
3
+ config:
4
+ type: hf_source
5
+ dataset: math-ai/AutoMathText
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: 1_100_000
14
+ input_ids:
15
+ - load_math
16
+ - id: add_constant_column
17
+ config:
18
+ type: function
19
+ function: data_strategies.commons.add_constant_columns
20
+ function_config:
21
+ response_seed: ""
22
+ input_ids:
23
+ - sample_dataset
24
+ - id: generate_instructions
25
+ config:
26
+ type: completions
27
+ map: chat
28
+ require_all_responses: false
29
+ map_config:
30
+ system_message: "You are a helpful assistant."
31
+ user_message: |
32
+ You are to reform the following math text snippet into a question with a quantitative or verifiable answer such as one that would be
33
+ included in the USAMO or the Putnam Exam.
34
+
35
+ Text: {{text}}
36
+
37
+ Include only the new question or task. Do not include anything like "Here is the instruction". You can either extract a
38
+ 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.
39
+ output_column: instruction_seed
40
+ model: gpt-4o-mini
41
+ temperature: 1.0
42
+ input_ids:
43
+ - sample_dataset
44
+ - id: add_source_name
45
+ config:
46
+ type: function
47
+ function: data_strategies.commons.add_constant_columns
48
+ function_config:
49
+ _source: "math-ai/AutoMathText"
50
+ input_ids:
51
+ - generate_instructions
52
+ # - id: decontaminate
53
+ # config:
54
+ # type: cpu_function
55
+ # sharded: true
56
+ # num_shards: 8
57
+ # num_cpus: 32
58
+ # function: data_strategies._A1_Source.utils.decontaminate_fuzzy_w_ngram
59
+ # function_config:
60
+ # column: instruction_seed
61
+ # eval_datasets:
62
+ # - HuggingFaceH4/MATH-500
63
+ # - Maxwell-Jia/AIME_2024
64
+ # - AI-MO/aimo-validation-amc
65
+ # - livecodebench/code_generation_lite
66
+ # - mlfoundations-dev/AIME2025_combined
67
+ # - cais/hle
68
+ # - open-r1/codeforces
69
+ # - Idavidrein/gpqa
70
+ # - daman1209arora/jeebench
71
+ # - mlfoundations-dev/mmlu_pro_eval_full
72
+ # - Qwen/CodeElo
73
+ # - open-r1/ioi
74
+ # eval_columns:
75
+ # - problem
76
+ # - Problem
77
+ # - problem
78
+ # - question_content
79
+ # - question
80
+ # - question
81
+ # - description
82
+ # - Question
83
+ # - question
84
+ # - prompt
85
+ # - description
86
+ # - statement
87
+ # eval_splits:
88
+ # - test
89
+ # - train
90
+ # - train
91
+ # - test
92
+ # - train
93
+ # - test
94
+ # - test
95
+ # - train
96
+ # - test
97
+ # - test
98
+ # - test
99
+ # - test
100
+ # eval_subsets:
101
+ # Idavidrein/gpqa: gpqa_diamond
102
+ # similarity_threshold: 75.0
103
+ # ngram_size: 13
104
+ # input_ids:
105
+ # - add_source_name
106
+ - id: sample_dataset_final
107
+ config:
108
+ type: function
109
+ function: data_strategies.commons.uniform_sample_limited
110
+ function_config:
111
+ num_samples: 1_000_000
112
+ input_ids: ["add_source_name"]
113
+