EtashGuha commited on
Commit
fa23360
·
verified ·
1 Parent(s): e12a682

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/tiny_codes.yaml +66 -0
config/tiny_codes.yaml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_hf_python
3
+ config:
4
+ type: hf_source
5
+ dataset: nampdn-ai/tiny-codes
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
+ - main_topic
15
+ - subtopic
16
+ - adjective
17
+ - action_verb
18
+ - scenario
19
+ - target_audience
20
+ - programming_language
21
+ - common_sense_topic
22
+ - idx
23
+ input_ids:
24
+ - load_hf_python
25
+ - id: rename_task_column
26
+ config:
27
+ type: function
28
+ function: data_strategies.commons.force_rename_columns
29
+ function_config:
30
+ column_maps:
31
+ prompt: response_seed
32
+ response: instruction_seed
33
+ input_ids:
34
+ - drop_columns
35
+ - id: sample_dataset
36
+ config:
37
+ type: function
38
+ function: data_strategies.commons.uniform_sample_limited
39
+ function_config:
40
+ num_samples: 50000 # 1.25% of 10000 target from stage 1
41
+ input_ids:
42
+ - rename_task_column
43
+ - id: annotate
44
+ config:
45
+ type: completions
46
+ map: chat
47
+ map_config:
48
+ system_message: "You are a helpful assistant."
49
+ user_message_column: instruction_seed
50
+ output_column: response
51
+ model: gpt-4o-mini
52
+ temperature: 1.0
53
+ require_all_responses: False
54
+ batch: True
55
+ input_ids:
56
+ - sample_dataset
57
+ - id: convert_to_sharegpt
58
+ config:
59
+ type: function
60
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
61
+ function_config:
62
+ input_instruction_column: instruction_seed
63
+ input_response_column: response
64
+ output_sharegpt_column: conversations
65
+ input_ids:
66
+ - annotate