Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,88 @@
|
|
| 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 & The Pile -- StackExchange (refined by Data-Juicer)
|
| 15 |
+
|
| 16 |
+
A refined version of StackExchange dataset in RedPajama & The Pile by [Data-Juicer](https://github.com/alibaba/data-juicer). Removing some "bad" samples from the original merged 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-pile-stackexchange-refine-result.jsonl) (About 71GB).
|
| 21 |
+
|
| 22 |
+
## Dataset Information
|
| 23 |
+
|
| 24 |
+
- Number of samples: 26,309,203 (Keep ~57.89% from the original dataset)
|
| 25 |
+
|
| 26 |
+
## Refining Recipe
|
| 27 |
+
```yaml
|
| 28 |
+
# global parameters
|
| 29 |
+
project_name: 'Data-Juicer-stack-exchange'
|
| 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.35 # <3sigma
|
| 48 |
+
max_ratio: 0.943 # 3sigma
|
| 49 |
+
- average_line_length_filter: # for code
|
| 50 |
+
min_len: 20 # >3sigma
|
| 51 |
+
max_len: 400 # >3sigma
|
| 52 |
+
- character_repetition_filter:
|
| 53 |
+
rep_len: 10
|
| 54 |
+
max_ratio: 0.4 # >3sigma (0.12)
|
| 55 |
+
- flagged_words_filter:
|
| 56 |
+
lang: en
|
| 57 |
+
tokenization: true
|
| 58 |
+
max_ratio: 0.01 # >3sigma
|
| 59 |
+
- language_id_score_filter: # remove language filter
|
| 60 |
+
min_score: 0.1 # <3sigma
|
| 61 |
+
- maximum_line_length_filter: # for code
|
| 62 |
+
min_len: 80
|
| 63 |
+
- perplexity_filter:
|
| 64 |
+
lang: en
|
| 65 |
+
max_ppl: 10000 # >3sigma
|
| 66 |
+
- special_characters_filter:
|
| 67 |
+
min_ratio: 0.232 # 3sigma
|
| 68 |
+
max_ratio: 0.7 # >3sigma
|
| 69 |
+
- text_length_filter:
|
| 70 |
+
min_len: 200
|
| 71 |
+
- words_num_filter:
|
| 72 |
+
lang: en
|
| 73 |
+
tokenization: true
|
| 74 |
+
min_num: 100
|
| 75 |
+
- word_repetition_filter:
|
| 76 |
+
lang: en
|
| 77 |
+
tokenization: true
|
| 78 |
+
rep_len: 10
|
| 79 |
+
max_ratio: 0.8 # >3sigma
|
| 80 |
+
|
| 81 |
+
- document_simhash_deduplicator: #26309203 left
|
| 82 |
+
tokenization: space
|
| 83 |
+
window_size: 3
|
| 84 |
+
lowercase: true
|
| 85 |
+
ignore_pattern: '\n\n'
|
| 86 |
+
num_blocks: 9
|
| 87 |
+
hamming_distance: 7
|
| 88 |
+
```
|