EtashGuha commited on
Commit
005dcac
·
verified ·
1 Parent(s): b04dd17

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/fineweb_seed_science.yaml +72 -0
config/fineweb_seed_science.yaml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_hf
3
+ config:
4
+ type: hf_source
5
+ dataset: Josephgflowers/Par-Four-Fineweb-Edu-Fortified-Chemistry-Physics-Astronomy-Math-Reason
6
+ split: train
7
+ - id: sample_dataset
8
+ config:
9
+ type: function
10
+ function: data_strategies.commons.uniform_sample_fixed
11
+ function_config:
12
+ num_samples: 5_000
13
+ input_ids:
14
+ - load_hf
15
+ - id: generate_instructions
16
+ config:
17
+ type: completions
18
+ map: chat
19
+ map_config:
20
+ system_message: "You are a helpful assistant."
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: problem
30
+ model: gpt-4o-mini
31
+ temperature: 1.0
32
+ batch: True
33
+ input_ids:
34
+ - sample_dataset
35
+ # - id: annotate_r1_distill_70b
36
+ # config:
37
+ # type: completions
38
+ # map: deepseek_reasoner
39
+ # map_config:
40
+ # input_problem_column: problem
41
+ # model: deepseek-reasoner
42
+ # batch: False
43
+ # temperature: 1.0
44
+ # backend: openai_client
45
+ # backend_params:
46
+ # max_requests_per_minute: 2_500
47
+ # max_tokens_per_minute: 1_000_000_000
48
+ # api_key: sk-66c9461d203144cc8bda1d0e71e08799
49
+ # base_url: "https://api.deepseek.com/"
50
+ # invalid_finish_reasons: ['content_filter']
51
+ # input_ids:
52
+ # - generate_instructions
53
+ # - id: convert_reasoning_trace_to_final
54
+ # config:
55
+ # type: function
56
+ # function: data_strategies.commons.convert_reasoning_trace_to_final
57
+ # function_config:
58
+ # reasoning_column: reasoning
59
+ # solution_column: deepseek_solution
60
+ # output_column: final_reasoning_trace
61
+ # input_ids:
62
+ # - annotate_r1_distill_70b
63
+ # - id: convert_to_sharegpt
64
+ # config:
65
+ # type: function
66
+ # function: data_strategies.commons.convert_instruction_response_to_sharegpt
67
+ # function_config:
68
+ # input_instruction_column: problem
69
+ # input_response_column: final_reasoning_trace
70
+ # output_sharegpt_column: conversations
71
+ # input_ids:
72
+ # - convert_reasoning_trace_to_final