ryanmarten commited on
Commit
d425aef
·
verified ·
1 Parent(s): edc8038

Automatic dcft datacuration framework upload for mix_test

Browse files
config/EvolInstruct/tests/evol_instruct_gpt-4o-mini_test.yaml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_alpaca
3
+ config:
4
+ type: hf_source
5
+ dataset: yahma/alpaca-cleaned
6
+ split: train
7
+ columns:
8
+ - instruction
9
+ - output
10
+ num_truncate: 100
11
+
12
+ - id: instruction_generation
13
+ config:
14
+ type: function
15
+ sharded: true
16
+ function: data_strategies.EvolInstruct.utils.instruction_generation
17
+ function_config:
18
+ input_column: instruction
19
+ output_column: evolved_instruction
20
+ input_ids:
21
+ - load_alpaca
22
+
23
+ - id: annotate
24
+ input_ids:
25
+ - instruction_generation
26
+ config:
27
+ type: completions
28
+ map: chat
29
+ map_config:
30
+ user_message_column: evolved_instruction
31
+ output_column: completion
32
+ model: gpt-4o-mini
33
+ batch: False
34
+
35
+ - id: select_columns
36
+ config:
37
+ type: function
38
+ sharded: true
39
+ function: data_strategies.commons.select_columns
40
+ function_config:
41
+ columns:
42
+ - evolved_instruction
43
+ - completion
44
+ input_ids:
45
+ - annotate
46
+
47
+ - id: to_sharegpt
48
+ config:
49
+ type: function
50
+ sharded: true
51
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
52
+ function_config:
53
+ input_instruction_column: evolved_instruction
54
+ input_response_column: completion
55
+ output_sharegpt_column: conversations
56
+ input_ids:
57
+ - select_columns