Upload configuration file
Browse files
config/seed_math_deepmind_fasttext.yaml
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: load_math_alg
|
| 3 |
+
config:
|
| 4 |
+
type: hf_source
|
| 5 |
+
dataset: deepmind/math_dataset
|
| 6 |
+
split: train
|
| 7 |
+
subset: algebra__linear_2d_composed
|
| 8 |
+
trust_remote_code: True
|
| 9 |
+
- id: load_math_poly_eval
|
| 10 |
+
config:
|
| 11 |
+
type: hf_source
|
| 12 |
+
dataset: deepmind/math_dataset
|
| 13 |
+
split: train
|
| 14 |
+
subset: polynomials__evaluate_composed
|
| 15 |
+
trust_remote_code: True
|
| 16 |
+
- id: load_math_prob_seq
|
| 17 |
+
config:
|
| 18 |
+
type: hf_source
|
| 19 |
+
dataset: deepmind/math_dataset
|
| 20 |
+
split: train
|
| 21 |
+
subset: probability__swr_p_sequence
|
| 22 |
+
trust_remote_code: True
|
| 23 |
+
- id: load_math_prob_level
|
| 24 |
+
config:
|
| 25 |
+
type: hf_source
|
| 26 |
+
dataset: deepmind/math_dataset
|
| 27 |
+
split: train
|
| 28 |
+
subset: probability__swr_p_level_set
|
| 29 |
+
trust_remote_code: True
|
| 30 |
+
- id: load_math_poly_pow
|
| 31 |
+
config:
|
| 32 |
+
type: hf_source
|
| 33 |
+
dataset: deepmind/math_dataset
|
| 34 |
+
split: train
|
| 35 |
+
subset: polynomials__simplify_power
|
| 36 |
+
trust_remote_code: True
|
| 37 |
+
- id: load_math_calc
|
| 38 |
+
config:
|
| 39 |
+
type: hf_source
|
| 40 |
+
dataset: deepmind/math_dataset
|
| 41 |
+
split: train
|
| 42 |
+
subset: calculus__differentiate_composed
|
| 43 |
+
trust_remote_code: True
|
| 44 |
+
- id: sample_dataset
|
| 45 |
+
config:
|
| 46 |
+
type: function
|
| 47 |
+
function: data_strategies.commons.uniform_sample_limited
|
| 48 |
+
function_config:
|
| 49 |
+
num_samples: 1_000_000 # 1.25% of 10000 target from stage 1
|
| 50 |
+
input_ids:
|
| 51 |
+
- load_math_calc
|
| 52 |
+
- load_math_poly_eval
|
| 53 |
+
- load_math_alg
|
| 54 |
+
- load_math_prob_seq
|
| 55 |
+
- load_math_prob_level
|
| 56 |
+
- load_math_poly_pow
|
| 57 |
+
- id: clean_up
|
| 58 |
+
config:
|
| 59 |
+
type: function
|
| 60 |
+
function: data_strategies.SeedMathData.utils.deepmind_map
|
| 61 |
+
input_ids:
|
| 62 |
+
- sample_dataset
|
| 63 |
+
- id: classify
|
| 64 |
+
config:
|
| 65 |
+
type: fasttext
|
| 66 |
+
num_cpus: 32
|
| 67 |
+
hf_repo_id: mlfoundations-dev/instruction_filtering_fast_text_math_pos_numina_neg_bad_seed_math
|
| 68 |
+
input_column: instruction_seed
|
| 69 |
+
target_label: "__label__QA_doc"
|
| 70 |
+
top_percentage_ranking: 10
|
| 71 |
+
input_ids:
|
| 72 |
+
- clean_up
|
| 73 |
+
- id: keep_only
|
| 74 |
+
config:
|
| 75 |
+
type: function
|
| 76 |
+
function: data_strategies.commons.keep_only_columns
|
| 77 |
+
function_config:
|
| 78 |
+
columns_to_keep:
|
| 79 |
+
- instruction_seed
|
| 80 |
+
input_ids:
|
| 81 |
+
- classify
|
| 82 |
+
- id: _add_source
|
| 83 |
+
config:
|
| 84 |
+
type: function
|
| 85 |
+
function: data_strategies.commons.add_constant_columns
|
| 86 |
+
function_config:
|
| 87 |
+
source: "deepmind"
|
| 88 |
+
input_ids:
|
| 89 |
+
- keep_only
|