EtashGuha commited on
Commit
7d0e904
·
verified ·
1 Parent(s): 28ed2b1

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/octopack_sft.yaml +146 -0
config/octopack_sft.yaml ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_hf_python
3
+ config:
4
+ type: hf_source
5
+ dataset: bigcode/commitpackft
6
+ split: train
7
+ subset: python
8
+ trust_remote_code: True
9
+ - id: load_hf_c++
10
+ config:
11
+ type: hf_source
12
+ dataset: bigcode/commitpackft
13
+ split: train
14
+ subset: c++
15
+ trust_remote_code: True
16
+ - id: load_hf_java
17
+ config:
18
+ type: hf_source
19
+ dataset: bigcode/commitpackft
20
+ split: train
21
+ subset: java
22
+ trust_remote_code: True
23
+ - id: load_hf_c
24
+ config:
25
+ trust_remote_code: True
26
+ type: hf_source
27
+ dataset: bigcode/commitpackft
28
+ split: train
29
+ subset: c
30
+ - id: load_hf_c#
31
+ config:
32
+ trust_remote_code: True
33
+ type: hf_source
34
+ dataset: bigcode/commitpackft
35
+ split: train
36
+ subset: c#
37
+ - id: load_hf_css
38
+ config:
39
+ trust_remote_code: True
40
+ type: hf_source
41
+ dataset: bigcode/commitpackft
42
+ split: train
43
+ subset: css
44
+ - id: load_hf_javascript
45
+ config:
46
+ trust_remote_code: True
47
+ type: hf_source
48
+ dataset: bigcode/commitpackft
49
+ split: train
50
+ subset: javascript
51
+ - id: load_hf_ruby
52
+ config:
53
+ trust_remote_code: True
54
+ type: hf_source
55
+ dataset: bigcode/commitpackft
56
+ split: train
57
+ subset: ruby
58
+ - id: load_hf_shell
59
+ config:
60
+ trust_remote_code: True
61
+ type: hf_source
62
+ dataset: bigcode/commitpackft
63
+ split: train
64
+ subset: shell
65
+ - id: mix_operator
66
+ config:
67
+ type: mix
68
+ input_ids:
69
+ - load_hf_python
70
+ - load_hf_shell
71
+ - load_hf_c++
72
+ - load_hf_java
73
+ - load_hf_c
74
+ - load_hf_c#
75
+ - load_hf_css
76
+ - load_hf_javascript
77
+ - load_hf_ruby
78
+ - id: sample_dataset
79
+ config:
80
+ type: function
81
+ function: data_strategies.commons.uniform_sample_limited
82
+ function_config:
83
+ num_samples: 50000 # 1.25% of 10000 target from stage 1
84
+ input_ids:
85
+ - mix_operator
86
+ - id: generate_instructions
87
+ config:
88
+ type: completions
89
+ map: chat
90
+ map_config:
91
+ system_message: "You are a helpful assistant."
92
+ user_message: |
93
+ You are to generate a question or task for a language model based on the following instruction and code pairs.
94
+
95
+ Instruction: {{message}}
96
+ Code: {{old_contents}}
97
+
98
+ Include only the new question and task. Do not include anything like "Here is the instruction". Include
99
+ the code in your question and make the task sound like what a human would ask a language model.
100
+ output_column: instruction_seed
101
+ model: gpt-4o-mini
102
+ temperature: 1.0
103
+ batch: True
104
+ input_ids:
105
+ - sample_dataset
106
+ - id: add_constant_column
107
+ config:
108
+ type: function
109
+ function: data_strategies.commons.add_constant_columns
110
+ function_config:
111
+ response_seed: ""
112
+ input_ids:
113
+ - generate_instructions
114
+ - id: rename_task_column
115
+ config:
116
+ type: function
117
+ function: data_strategies.commons.keep_only_columns
118
+ function_config:
119
+ columns_to_keep:
120
+ - response_seed
121
+ - instruction_seed
122
+ input_ids:
123
+ - add_constant_column
124
+ - id: annotate
125
+ config:
126
+ type: completions
127
+ map: chat
128
+ map_config:
129
+ system_message: "You are a helpful assistant."
130
+ user_message_column: instruction_seed
131
+ output_column: response
132
+ model: gpt-4o-mini
133
+ temperature: 1.0
134
+ batch: True
135
+ input_ids:
136
+ - rename_task_column
137
+ - id: convert_to_sharegpt
138
+ config:
139
+ type: function
140
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
141
+ function_config:
142
+ input_instruction_column: instruction_seed
143
+ input_response_column: response
144
+ output_sharegpt_column: conversations
145
+ input_ids:
146
+ - annotate