hylcool commited on
Commit
9c5e109
1 Parent(s): 0841e82

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md CHANGED
@@ -1,3 +1,87 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - data-juicer
9
+ - pretraining
10
+ size_categories:
11
+ - 10M<n<100M
12
  ---
13
+
14
+ # RedPajama -- Wikipedia (refined by Data-Juicer)
15
+
16
+ A refined version of Wikipedia dataset in RedPajama by [Data-Juicer](https://github.com/alibaba/data-juicer). Removing some "bad" samples from the original dataset to make it higher-quality.
17
+
18
+ This dataset is usually used to pretrain a Large Language Model.
19
+
20
+ **Notice**: Here is a small subset for previewing. The whole dataset is available [here](https://dail-wlcb.oss-cn-wulanchabu.aliyuncs.com/LLM_data/our_refined_datasets/pretraining/redpajama-wiki-refine-result.jsonl) (About 68GB).
21
+
22
+ ## Dataset Information
23
+
24
+ - Number of samples: 26,990,659 (Keep ~90.47% from the original dataset)
25
+
26
+ ## Refining Recipe
27
+ ```yaml
28
+ # global parameters
29
+ project_name: 'Data-Juicer-recipes-wiki'
30
+ dataset_path: '/path/to/your/dataset' # path to your dataset directory or file
31
+ export_path: '/path/to/your/dataset.jsonl'
32
+
33
+ np: 50 # number of subprocess to process your dataset
34
+ open_tracer: true
35
+
36
+ # process schedule
37
+ # a list of several process operators with their arguments
38
+ process:
39
+ - clean_email_mapper:
40
+ - clean_links_mapper:
41
+ - fix_unicode_mapper:
42
+ - punctuation_normalization_mapper:
43
+ - whitespace_normalization_mapper:
44
+
45
+ - alphanumeric_filter:
46
+ tokenization: false
47
+ min_ratio: 0.6 # <3sigma (0.735)
48
+ max_ratio: 0.884 # 3sigma
49
+ - average_line_length_filter: # for code
50
+ max_len: 192 # 3sigma
51
+ - character_repetition_filter:
52
+ rep_len: 10
53
+ max_ratio: 0.4 # >3sigma (0.197)
54
+ - flagged_words_filter:
55
+ lang: en
56
+ tokenization: true
57
+ max_ratio: 0.0019 # 3sigma
58
+ - language_id_score_filter:
59
+ min_score: 0.689 # 3sigma
60
+ - maximum_line_length_filter: # for code
61
+ max_len: 1630 # 3sigma tbd
62
+ - perplexity_filter:
63
+ lang: en
64
+ max_ppl: 6887 # 3sigma
65
+ - special_characters_filter:
66
+ max_ratio: 0.5 # >3sigma (0.34)
67
+ - text_length_filter:
68
+ max_len: 18221 # 3sigma
69
+ - words_num_filter:
70
+ lang: en
71
+ tokenization: true
72
+ min_num: 20
73
+ max_num: 6086 # 3sigma
74
+ - word_repetition_filter:
75
+ lang: en
76
+ tokenization: true
77
+ rep_len: 10
78
+ max_ratio: 0.3 # 3sigma (0.194)
79
+
80
+ - document_simhash_deduplicator:
81
+ tokenization: space
82
+ window_size: 6
83
+ lowercase: true
84
+ ignore_pattern: '\p{P}'
85
+ num_blocks: 6
86
+ hamming_distance: 4
87
+ ```