Upload configuration file
Browse files
config/wi_reasoning_fasttext_classification.yaml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: load_DCLM_baseline
|
| 3 |
+
config:
|
| 4 |
+
type: json_source
|
| 5 |
+
directory: /data/horse/ws/rehe951g-p_finetuning/DCLM-baseline-subset
|
| 6 |
+
sharded: true
|
| 7 |
+
|
| 8 |
+
- id: clean_DCLM_baseline
|
| 9 |
+
config:
|
| 10 |
+
type: function
|
| 11 |
+
function: data_strategies.WebInstruct.utils.clean_dataset
|
| 12 |
+
function_config:
|
| 13 |
+
input_column: text
|
| 14 |
+
output_column: cleaned_text
|
| 15 |
+
remove_columns:
|
| 16 |
+
- bff_contained_ngram_count_before_dedupe
|
| 17 |
+
- metadata
|
| 18 |
+
- previous_word_count
|
| 19 |
+
- warcinfo
|
| 20 |
+
- language_id_whole_page_fasttext
|
| 21 |
+
sharded: true
|
| 22 |
+
materialize_output: false
|
| 23 |
+
input_ids:
|
| 24 |
+
- load_DCLM_baseline
|
| 25 |
+
|
| 26 |
+
- id: classify_fasttext
|
| 27 |
+
config:
|
| 28 |
+
type: fasttext
|
| 29 |
+
hf_repo_id: mlfoundations-dev/wi_reasoning_fasttext_training
|
| 30 |
+
input_column: cleaned_text
|
| 31 |
+
target_label: "__label__QA_doc"
|
| 32 |
+
filter_threshold: 0.8
|
| 33 |
+
input_ids:
|
| 34 |
+
- clean_DCLM_baseline
|
| 35 |
+
|