EtashGuha commited on
Commit
9c5a676
·
verified ·
1 Parent(s): 59ccfa2

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/magpie.yaml +69 -0
config/magpie.yaml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_hf_python
3
+ config:
4
+ type: hf_source
5
+ dataset: Magpie-Align/Magpie-Qwen2.5-Coder-Pro-300K-v0.1
6
+ split: train
7
+ trust_remote_code: True
8
+ - id: drop_columns
9
+ config:
10
+ type: function
11
+ function: data_strategies.commons.remove_columns
12
+ function_config:
13
+ columns:
14
+ - uuid
15
+ - model
16
+ - gen_input_configs
17
+ input_ids:
18
+ - load_hf_python
19
+ - id: rename_task_column
20
+ config:
21
+ type: function
22
+ function: data_strategies.commons.force_rename_columns
23
+ function_config:
24
+ column_maps:
25
+ response: response_seed
26
+ instruction: instruction_seed
27
+ input_ids:
28
+ - drop_columns
29
+ - id: remove_columns
30
+ config:
31
+ type: function
32
+ function: data_strategies.commons.keep_only_columns
33
+ function_config:
34
+ columns_to_keep:
35
+ - response_seed
36
+ - instruction_seed
37
+ input_ids:
38
+ - rename_task_column
39
+ - id: sample_dataset
40
+ config:
41
+ type: function
42
+ function: data_strategies.commons.uniform_sample_limited
43
+ function_config:
44
+ num_samples: 50000 # 1.25% of 10000 target from stage 1
45
+ input_ids:
46
+ - remove_columns
47
+ - id: annotate
48
+ config:
49
+ type: completions
50
+ map: chat
51
+ map_config:
52
+ system_message: "You are a helpful assistant."
53
+ user_message_column: instruction_seed
54
+ output_column: response
55
+ model: gpt-4o-mini
56
+ temperature: 1.0
57
+ batch: True
58
+ input_ids:
59
+ - sample_dataset
60
+ - id: convert_to_sharegpt
61
+ config:
62
+ type: function
63
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
64
+ function_config:
65
+ input_instruction_column: instruction_seed
66
+ input_response_column: response
67
+ output_sharegpt_column: conversations
68
+ input_ids:
69
+ - annotate