EtashGuha commited on
Commit
ac952f1
·
verified ·
1 Parent(s): c1b76e7

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/seed_code_dolphin.yaml +61 -0
config/seed_code_dolphin.yaml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_hf_python
3
+ config:
4
+ type: hf_source
5
+ dataset: cognitivecomputations/dolphin-coder
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
+ - system_prompt
15
+ input_ids:
16
+ - load_hf_python
17
+ - id: rename_task_column
18
+ config:
19
+ type: function
20
+ function: data_strategies.commons.force_rename_columns
21
+ function_config:
22
+ column_maps:
23
+ response: response_seed
24
+ question: instruction_seed
25
+ input_ids:
26
+ - drop_columns
27
+ - id: sample_dataset
28
+ config:
29
+ type: function
30
+ function: data_strategies.commons.uniform_sample_limited
31
+ function_config:
32
+ num_samples: 1_000_000 # 1.25% of 10000 target from stage 1
33
+ input_ids:
34
+ - rename_task_column
35
+ - id: classify
36
+ config:
37
+ type: fasttext
38
+ num_cpus: 32
39
+ hf_repo_id: mlfoundations-dev/instruction_filtering_fast_text_code_pos_leetcode_taco_neg_reflection_octopack
40
+ input_column: instruction_seed
41
+ target_label: "__label__QA_doc"
42
+ top_percentage_ranking: 10
43
+ input_ids:
44
+ - sample_dataset
45
+ - id: keep_only
46
+ config:
47
+ type: function
48
+ function: data_strategies.commons.keep_only_columns
49
+ function_config:
50
+ columns_to_keep:
51
+ - instruction_seed
52
+ input_ids:
53
+ - classify
54
+ - id: _add_source
55
+ config:
56
+ type: function
57
+ function: data_strategies.commons.add_constant_columns
58
+ function_config:
59
+ source: "dolphin"
60
+ input_ids:
61
+ - keep_only