John commited on
Commit
1a2033d
·
verified ·
1 Parent(s): a38be0d

Automatic dcft datacuration framework upload for webinstruct_stage1_scale_up

Browse files
config/webinstruct_stage1_scale_up.yaml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: webinstruct_stage1_scale_up
2
+ operators:
3
+ - id: sample_dclm_refined_web_shards
4
+ config:
5
+ type: dclm_refinedweb_source
6
+ num_shards: 1
7
+ s3_bucket: commoncrawl
8
+ s3_prefix: contrib/datacomp/DCLM-refinedweb/
9
+ seed: 314 # different shard than used for training with default seed 42
10
+
11
+ - id: clean_dclm_refinedweb_docs
12
+ config:
13
+ type: function
14
+ function: data_strategies.WebInstruct.utils.clean_dataset
15
+ function_config:
16
+ input_column: text
17
+ output_column: cleaned_text
18
+ remove_columns:
19
+ - bff_contained_ngram_count_before_dedupe
20
+ - language_id_whole_page_fasttext
21
+ - metadata
22
+ - previous_word_count
23
+ - warcinfo
24
+ input_ids:
25
+ - sample_dclm_refined_web_shards
26
+
27
+ - id: classify_fasttext
28
+ config:
29
+ type: fasttext
30
+ fasttext_url: https://huggingface.co/mlfoundations-dev/fasttext-qa-v5/resolve/main/fasttext_classifier_v5.bin
31
+ input_column: cleaned_text
32
+ target_label: "__label__QA_doc"
33
+ filter_threshold: 0.5
34
+ input_ids:
35
+ - clean_dclm_refinedweb_docs
36
+
37
+ - id: classify_url
38
+ config:
39
+ type: function
40
+ function: data_strategies.WebInstruct.utils.url_filter_fast
41
+ function_config:
42
+ input_column: url
43
+ job_path: dcft/data_strategies/WebInstruct/cache/parallel/
44
+ filter: True
45
+ input_ids:
46
+ - classify_fasttext