EtashGuha commited on
Commit
0068059
·
verified ·
1 Parent(s): 81be976

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/reflection.yaml +54 -0
config/reflection.yaml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_hf_python
3
+ config:
4
+ type: hf_source
5
+ dataset: SenseLLM/ReflectionSeq-GPT
6
+ split: train
7
+ trust_remote_code: True
8
+ - id: clean_up
9
+ config:
10
+ type: function
11
+ function: data_strategies.SeedCodeData.utils.reflection_map
12
+ input_ids:
13
+ - load_hf_python
14
+ - id: rename_task_column
15
+ config:
16
+ type: function
17
+ function: data_strategies.commons.keep_only_columns
18
+ function_config:
19
+ columns_to_keep:
20
+ - response_seed
21
+ - instruction_seed
22
+ input_ids:
23
+ - clean_up
24
+ - id: sample_dataset
25
+ config:
26
+ type: function
27
+ function: data_strategies.commons.uniform_sample_limited
28
+ function_config:
29
+ num_samples: 50000 # 1.25% of 10000 target from stage 1
30
+ input_ids:
31
+ - rename_task_column
32
+ - id: annotate
33
+ config:
34
+ type: completions
35
+ map: chat
36
+ map_config:
37
+ system_message: "You are a helpful assistant."
38
+ user_message_column: instruction_seed
39
+ output_column: response
40
+ model: gpt-4o-mini
41
+ temperature: 1.0
42
+ batch: True
43
+ input_ids:
44
+ - sample_dataset
45
+ - id: convert_to_sharegpt
46
+ config:
47
+ type: function
48
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
49
+ function_config:
50
+ input_instruction_column: instruction_seed
51
+ input_response_column: response
52
+ output_sharegpt_column: conversations
53
+ input_ids:
54
+ - annotate