EtashGuha commited on
Commit
591e507
·
verified ·
1 Parent(s): a17cb28

Upload configuration file

Browse files
config/seed_code_share_gpt_code.yaml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_hf_python
3
+ config:
4
+ type: hf_source
5
+ dataset: ajibawa-2023/Code-290k-ShareGPT
6
+ split: train
7
+ trust_remote_code: True
8
+ - id: clean_up
9
+ config:
10
+ type: function
11
+ function: data_strategies.SeedCodeData.utils.sharegpt_instruct_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: 1_000_000 # 1.25% of 10000 target from stage 1
30
+ input_ids:
31
+ - rename_task_column
32
+ - id: classify
33
+ config:
34
+ type: fasttext
35
+ num_cpus: 32
36
+ hf_repo_id: mlfoundations-dev/instruction_filtering_fast_text_code_pos_leetcode_taco_neg_reflection_octopack
37
+ input_column: instruction_seed
38
+ target_label: "__label__QA_doc"
39
+ top_percentage_ranking: 10
40
+ input_ids:
41
+ - sample_dataset
42
+ - id: keep_only
43
+ config:
44
+ type: function
45
+ function: data_strategies.commons.keep_only_columns
46
+ function_config:
47
+ columns_to_keep:
48
+ - instruction_seed
49
+ input_ids:
50
+ - classify
51
+ - id: _add_source
52
+ config:
53
+ type: function
54
+ function: data_strategies.commons.add_constant_columns
55
+ function_config:
56
+ source: "share_gpt_code"
57
+ input_ids:
58
+ - keep_only