datajuicer/redpajama-book-refined-by-data-juicer
收藏RedPajama -- Book (refined by Data-Juicer)
概述
这是一个由Data-Juicer精炼的RedPajama图书数据集版本,通过移除原始数据集中的一些“不良”样本,提高了数据集的质量。该数据集通常用于预训练大型语言模型。
数据集信息
- 样本数量:195,983(保留了原始数据集的约95.51%)
精炼配方
yaml
全局参数
project_name: Data-Juicer-recipes-book dataset_path: /path/to/your/dataset # 数据集目录或文件路径 export_path: /path/to/your/dataset.jsonl
np: 50 # 用于处理数据集的子进程数量 open_tracer: true
处理流程
一系列处理操作及其参数
process:
-
clean_email_mapper:
-
clean_links_mapper:
-
fix_unicode_mapper:
-
punctuation_normalization_mapper:
-
whitespace_normalization_mapper:
-
alphanumeric_filter: tokenization: false min_ratio: 0.55 # <3sigma (0.697) max_ratio: 0.854 # 3sigma
-
average_line_length_filter: # 针对代码 max_len: 500 # >3sigma (364)
-
character_repetition_filter: rep_len: 10 max_ratio: 0.2 # >3sigma (0.12)
-
flagged_words_filter: lang: en tokenization: true max_ratio: 0.00047 # 3sigma
-
language_id_score_filter: # 移除语言过滤器 min_score: 0.2
-
maximum_line_length_filter: # 针对代码 max_len: 13381 # 3sigma
-
perplexity_filter: lang: en max_ppl: 6000 # <3sigma (16516)
-
special_characters_filter: max_ratio: 0.5 # >3sigma (0.32)
-
words_num_filter: lang: en tokenization: true min_num: 1000 max_num: 539754 # 3sigma
-
word_repetition_filter: lang: en tokenization: true rep_len: 10 max_ratio: 0.194 # 3sigma
-
document_simhash_deduplicator: tokenization: space window_size: 6 lowercase: true ignore_pattern: p{P} num_blocks: 6 hamming_distance: 4



