EtashGuha commited on
Commit
20d03df
·
verified ·
1 Parent(s): a1d0e05

Upload configuration file

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