Descartes commited on
Commit
93cd882
1 Parent(s): ef03939

update readme

Browse files
Files changed (1) hide show
  1. README.md +78 -0
README.md CHANGED
@@ -1,3 +1,81 @@
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
+ - 100K<n<1M
12
  ---
13
+ # The Pile -- NIHExPorter (refined by Data-Juicer)
14
+
15
+ A refined version of NIHExPorter dataset in The Pile by [Data-Juicer](https://github.com/alibaba/data-juicer). Removing some "bad" samples from the original dataset to make it higher-quality.
16
+
17
+ This dataset is usually used to pretrain a Large Language Model.
18
+
19
+ **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/the-pile-hin-refine-result.jsonl) (About 2.0G).
20
+
21
+ ## Dataset Information
22
+
23
+ - Number of samples: 858,492 (Keep ~91.36% from the original dataset)
24
+
25
+ ## Refining Recipe
26
+ ```yaml
27
+ # global parameters
28
+ project_name: 'Data-Juicer-recipes-Hin'
29
+ dataset_path: '/path/to/your/dataset' # path to your dataset directory or file
30
+ export_path: '/path/to/your/dataset.jsonl'
31
+
32
+ np: 50 # number of subprocess to process your dataset
33
+ open_tracer: true
34
+
35
+ # process schedule
36
+ # a list of several process operators with their arguments
37
+ process:
38
+ - clean_email_mapper:
39
+ - clean_links_mapper:
40
+ - fix_unicode_mapper:
41
+ - punctuation_normalization_mapper:
42
+ - whitespace_normalization_mapper:
43
+
44
+ - alphanumeric_filter:
45
+ tokenization: false
46
+ min_ratio: 0.75 # <3sigma (0.800)
47
+ max_ratio: 0.866
48
+ - average_line_length_filter:
49
+ max_len: 10000 # >3sigma (5425)
50
+ - character_repetition_filter:
51
+ rep_len: 10
52
+ max_ratio: 0.2 # >3sigma (0.127)
53
+ - flagged_words_filter:
54
+ lang: en
55
+ tokenization: true
56
+ max_ratio: 0.0003 # 3sigma
57
+ - language_id_score_filter:
58
+ min_score: 0.7
59
+ - perplexity_filter:
60
+ lang: en
61
+ max_ppl: 1669 #(3sigma)
62
+ - special_characters_filter:
63
+ max_ratio: 0.3 # > 3sigma (0.218)
64
+ - words_num_filter:
65
+ tokenization: true
66
+ min_num: 20
67
+ max_num: 2000
68
+ - word_repetition_filter:
69
+ lang: en
70
+ tokenization: true
71
+ rep_len: 10
72
+ max_ratio: 0.104 # 3sigma
73
+
74
+ - document_simhash_deduplicator:
75
+ tokenization: space
76
+ window_size: 6
77
+ lowercase: true
78
+ ignore_pattern: '\p{P}'
79
+ num_blocks: 6
80
+ hamming_distance: 4
81
+ ```