ssu53 commited on
Commit
bfefefc
·
verified ·
1 Parent(s): 0116598

Upload configuration file

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