EtashGuha commited on
Commit
ef8feb9
·
verified ·
1 Parent(s): a021a61

Upload configuration file

Browse files
config/seed_math_allenai_math_fasttext.yaml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_math
3
+ config:
4
+ type: hf_source
5
+ dataset: allenai/math_qa
6
+ split: train
7
+ trust_remote_code: True
8
+ - id: sample_dataset
9
+ config:
10
+ type: function
11
+ function: data_strategies.commons.uniform_sample_limited
12
+ function_config:
13
+ num_samples: 1_000_000 # 1.25% of 10000 target from stage 1
14
+ input_ids:
15
+ - load_math
16
+ - id: rename_task_column
17
+ config:
18
+ type: function
19
+ function: data_strategies.commons.force_rename_columns
20
+ function_config:
21
+ column_maps:
22
+ annotated_formula: response_seed
23
+ Problem: instruction_seed
24
+ input_ids:
25
+ - sample_dataset
26
+ - id: classify
27
+ config:
28
+ type: fasttext
29
+ num_cpus: 32
30
+ hf_repo_id: mlfoundations-dev/instruction_filtering_fast_text_math_pos_numina_neg_bad_seed_math
31
+ input_column: instruction_seed
32
+ target_label: "__label__QA_doc"
33
+ top_percentage_ranking: 10
34
+ input_ids:
35
+ - rename_task_column
36
+ - id: keep_only
37
+ config:
38
+ type: function
39
+ function: data_strategies.commons.keep_only_columns
40
+ function_config:
41
+ columns_to_keep:
42
+ - instruction_seed
43
+ input_ids:
44
+ - classify
45
+ - id: _add_source
46
+ config:
47
+ type: function
48
+ function: data_strategies.commons.add_constant_columns
49
+ function_config:
50
+ source: "allenai"
51
+ input_ids:
52
+ - keep_only