EtashGuha commited on
Commit
fee4de1
·
verified ·
1 Parent(s): 127cd3b

Upload configuration file

Browse files
config/codeevolinstruct_seeding_stackexchange_codegolf.yaml ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_stackexchange_codegolf
3
+ config:
4
+ type: load_preexisting
5
+ framework_name: stackexchange_code_golf_reorg_cache
6
+ - id: evolution_prompt
7
+ config:
8
+ type: function
9
+ require_all_responses: False
10
+ function: data_strategies.EvolInstruct.utils.prompts_for_evolving_instructions_no_input
11
+ function_config:
12
+ input_instruction_column: instruction
13
+ output_prompt_column: instruction_evolution_prompt
14
+ input_ids:
15
+ - load_stackexchange_codegolf
16
+ - id: sample_dataset
17
+ config:
18
+ type: function
19
+ function: data_strategies.commons.uniform_sample_limited
20
+ function_config:
21
+ num_samples: 150 # 1.25% of 12000 target from stage 1
22
+ input_ids:
23
+ - evolution_prompt
24
+ - id: evolve_instruction
25
+ input_ids:
26
+ - sample_dataset
27
+ config:
28
+ type: completions
29
+ map: chat
30
+ map_config:
31
+ user_message_column: instruction_evolution_prompt
32
+ output_column: evolved_instruction
33
+ model: gpt-4o-mini
34
+ top_p: 0.95
35
+ batch: False
36
+
37
+ - id: annotate_instruction
38
+ input_ids:
39
+ - evolve_instruction
40
+ config:
41
+ type: completions
42
+ map: chat
43
+ require_all_responses: False
44
+ map_config:
45
+ user_message_column: evolved_instruction
46
+ output_column: completion
47
+ model: gpt-4o-mini
48
+ top_p: 0.95
49
+ batch: False
50
+
51
+ - id: select_columns
52
+ config:
53
+ type: function
54
+ function: data_strategies.commons.select_columns
55
+ function_config:
56
+ columns:
57
+ - evolved_instruction
58
+ - completion
59
+ input_ids:
60
+ - annotate_instruction
61
+
62
+ - id: to_sharegpt
63
+ config:
64
+ type: function
65
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
66
+ function_config:
67
+ input_instruction_column: evolved_instruction
68
+ input_response_column: completion
69
+ output_sharegpt_column: conversations
70
+ input_ids:
71
+ - select_columns