EtashGuha commited on
Commit
c8784fc
·
verified ·
1 Parent(s): d7d9cc9

Upload configuration file

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