EtashGuha commited on
Commit
2d6b32a
·
verified ·
1 Parent(s): 5503d4c

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/seed_math_mathcoder.yaml +44 -0
config/seed_math_mathcoder.yaml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_math
3
+ config:
4
+ type: hf_source
5
+ dataset: mathmadness/MathCoder
6
+ split: train
7
+ trust_remote_code: True
8
+ - id: sample_dataset
9
+ config:
10
+ type: function
11
+ function: data_strategies.commons.uniform_sample_limited
12
+ function_config:
13
+ num_samples: 50000 # 1.25% of 10000 target from stage 1
14
+ input_ids:
15
+ - load_math
16
+ - id: clean_up
17
+ config:
18
+ type: function
19
+ function: data_strategies.SeedMathData.utils.mathcoder_map
20
+ input_ids:
21
+ - sample_dataset
22
+ - id: annotate
23
+ config:
24
+ type: completions
25
+ map: chat
26
+ map_config:
27
+ system_message: "You are a helpful assistant."
28
+ user_message_column: instruction_seed
29
+ output_column: response
30
+ model: gpt-4o-mini
31
+ temperature: 1.0
32
+ batch: True
33
+ input_ids:
34
+ - clean_up
35
+ - id: convert_to_sharegpt
36
+ config:
37
+ type: function
38
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
39
+ function_config:
40
+ input_instruction_column: instruction_seed
41
+ input_response_column: response
42
+ output_sharegpt_column: conversations
43
+ input_ids:
44
+ - annotate