Upload configuration file
Browse files
config/seed_math_mathcoder_fasttext.yaml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: load_math
|
| 3 |
+
config:
|
| 4 |
+
type: hf_source
|
| 5 |
+
dataset: mathmadness/MathCoder
|
| 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: clean_up
|
| 17 |
+
config:
|
| 18 |
+
type: function
|
| 19 |
+
function: data_strategies.SeedMathData.utils.mathcoder_map
|
| 20 |
+
input_ids:
|
| 21 |
+
- sample_dataset
|
| 22 |
+
- id: classify
|
| 23 |
+
config:
|
| 24 |
+
type: fasttext
|
| 25 |
+
num_cpus: 32
|
| 26 |
+
hf_repo_id: mlfoundations-dev/instruction_filtering_fast_text_math_pos_numina_neg_bad_seed_math
|
| 27 |
+
input_column: instruction_seed
|
| 28 |
+
target_label: "__label__QA_doc"
|
| 29 |
+
top_percentage_ranking: 10
|
| 30 |
+
input_ids:
|
| 31 |
+
- clean_up
|
| 32 |
+
- id: keep_only
|
| 33 |
+
config:
|
| 34 |
+
type: function
|
| 35 |
+
function: data_strategies.commons.keep_only_columns
|
| 36 |
+
function_config:
|
| 37 |
+
columns_to_keep:
|
| 38 |
+
- instruction_seed
|
| 39 |
+
input_ids:
|
| 40 |
+
- classify
|
| 41 |
+
- id: _add_source
|
| 42 |
+
config:
|
| 43 |
+
type: function
|
| 44 |
+
function: data_strategies.commons.add_constant_columns
|
| 45 |
+
function_config:
|
| 46 |
+
source: "mathcoder"
|
| 47 |
+
input_ids:
|
| 48 |
+
- keep_only
|