EtashGuha commited on
Commit
a17cb28
·
verified ·
1 Parent(s): 847e4a6

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/seed_code_opencoder.yaml +86 -0
config/seed_code_opencoder.yaml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_hf_package
3
+ config:
4
+ type: hf_source
5
+ dataset: OpenCoder-LLM/opc-sft-stage2
6
+ split: train
7
+ subset: package_instruct
8
+ trust_remote_code: True
9
+ - id: load_hf_infinity
10
+ config:
11
+ type: hf_source
12
+ dataset: OpenCoder-LLM/opc-sft-stage1
13
+ split: train
14
+ subset: filtered_infinity_instruct
15
+ trust_remote_code: True
16
+ - id: load_hf_largescale
17
+ config:
18
+ type: hf_source
19
+ dataset: OpenCoder-LLM/opc-sft-stage1
20
+ split: train
21
+ subset: largescale_diverse_instruct
22
+ trust_remote_code: True
23
+ - id: load_hf_realuser
24
+ config:
25
+ type: hf_source
26
+ dataset: OpenCoder-LLM/opc-sft-stage1
27
+ split: train
28
+ subset: realuser_instruct
29
+ trust_remote_code: True
30
+ - id: drop_columns
31
+ config:
32
+ type: function
33
+ function: data_strategies.commons.remove_columns
34
+ function_config:
35
+ columns:
36
+ - tag
37
+ input_ids:
38
+ - load_hf_package
39
+ - load_hf_realuser
40
+ - load_hf_largescale
41
+ - load_hf_infinity
42
+ - id: rename_task_column
43
+ config:
44
+ type: function
45
+ function: data_strategies.commons.force_rename_columns
46
+ function_config:
47
+ column_maps:
48
+ output: response_seed
49
+ instruction: instruction_seed
50
+ input_ids:
51
+ - drop_columns
52
+ - id: sample_dataset
53
+ config:
54
+ type: function
55
+ function: data_strategies.commons.uniform_sample_limited
56
+ function_config:
57
+ num_samples: 1_000_000 # 1.25% of 10000 target from stage 1
58
+ input_ids:
59
+ - rename_task_column
60
+ - id: classify
61
+ config:
62
+ type: fasttext
63
+ num_cpus: 32
64
+ hf_repo_id: mlfoundations-dev/instruction_filtering_fast_text_code_pos_leetcode_taco_neg_reflection_octopack
65
+ input_column: instruction_seed
66
+ target_label: "__label__QA_doc"
67
+ top_percentage_ranking: 10
68
+ input_ids:
69
+ - sample_dataset
70
+ - id: keep_only
71
+ config:
72
+ type: function
73
+ function: data_strategies.commons.keep_only_columns
74
+ function_config:
75
+ columns_to_keep:
76
+ - instruction_seed
77
+ input_ids:
78
+ - classify
79
+ - id: _add_source
80
+ config:
81
+ type: function
82
+ function: data_strategies.commons.add_constant_columns
83
+ function_config:
84
+ source: "opencoder"
85
+ input_ids:
86
+ - keep_only