EtashGuha commited on
Commit
46bfd50
·
verified ·
1 Parent(s): dae5132

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/magicoder.yaml +61 -0
config/magicoder.yaml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_hf_python
3
+ config:
4
+ type: hf_source
5
+ dataset: ise-uiuc/Magicoder-OSS-Instruct-75K
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
+ - lang
15
+ - raw_index
16
+ - index
17
+ - seed
18
+ - openai_fingerprint
19
+ input_ids:
20
+ - load_hf_python
21
+ - id: rename_task_column
22
+ config:
23
+ type: function
24
+ function: data_strategies.commons.force_rename_columns
25
+ function_config:
26
+ column_maps:
27
+ solution: response_seed
28
+ problem: instruction_seed
29
+ input_ids:
30
+ - drop_columns
31
+ - id: sample_dataset
32
+ config:
33
+ type: function
34
+ function: data_strategies.commons.uniform_sample_limited
35
+ function_config:
36
+ num_samples: 50000 # 1.25% of 10000 target from stage 1
37
+ input_ids:
38
+ - rename_task_column
39
+ - id: annotate
40
+ config:
41
+ type: completions
42
+ map: chat
43
+ map_config:
44
+ system_message: "You are a helpful assistant."
45
+ user_message_column: instruction_seed
46
+ output_column: response
47
+ model: gpt-4o-mini
48
+ temperature: 1.0
49
+ batch: True
50
+ input_ids:
51
+ - sample_dataset
52
+ - id: convert_to_sharegpt
53
+ config:
54
+ type: function
55
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
56
+ function_config:
57
+ input_instruction_column: instruction_seed
58
+ input_response_column: response
59
+ output_sharegpt_column: conversations
60
+ input_ids:
61
+ - annotate