fineweb-filtered
收藏资源简介:
FineWeb Filtered是HuggingFaceFW/fineweb数据集的过滤子集,专门筛选并保留高质量、干净的英文网络文档用于预训练。该数据集不修改原始文本内容,仅执行保留/丢弃的过滤操作。每条数据记录包含完整文档文本(text)、唯一文档标识符(id)、来源URL(url)、Common Crawl批次标识(dump)、爬取日期(date)、检测到的语言代码(language)、语言识别置信度分数(language_score)以及估计的词元数量(token_count)。数据集应用了多层过滤规则,依次检查并丢弃不符合条件的文档:1) 质量过滤:字符数少于200或单词数少于50、语言分数低于0.65、符号比例高于30%、数字比例高于40%;2) 许可证过滤:匹配被阻止的许可证或域名;3) AI生成内容过滤:AI生成概率高于0.85;4) 毒性过滤:毒性分数高于0.5;5) 困惑度过滤:困惑度超出正常范围(若无KenLM模型则使用熵代理)。该数据集适用于大规模语言模型预训练、文本生成研究以及其他需要高质量英文网络语料的自然语言处理任务。数据规模超过1万亿词元,采用ODC-By 1.0许可证。
FineWeb Filtered is a filtered subset of the HuggingFaceFW/fineweb dataset, specifically curated to retain high-quality, clean English web documents for pre-training. The dataset does not modify the original text content, only performing keep/discard filtering operations. Each data record includes the following fields: full document text (text), unique document identifier (id), source URL (url), Common Crawl batch identifier (dump), crawl date (date), detected language code (language), language identification confidence score (language_score), and estimated token count (token_count). The dataset applies multiple layers of filtering rules, sequentially checking and discarding documents that do not meet the following criteria: 1) Quality filtering: fewer than 200 characters or 50 words, language score below 0.65, symbol ratio above 30%, digit ratio above 40%; 2) License filtering: matching blocked licenses or domains; 3) AI-generated content filtering: AI generation probability above 0.85; 4) Toxicity filtering: toxicity score above 0.5; 5) Perplexity filtering: perplexity outside normal range (using entropy proxy if KenLM model is unavailable). This dataset is suitable for large-scale language model pre-training, text generation research, and other natural language processing tasks requiring high-quality English web corpora. The data scale exceeds 1 trillion tokens, and it is licensed under ODC-By 1.0.
数据集概述
基本信息
- 数据集名称: FineWeb Filtered
- 语言: 英语 (en)
- 许可协议: ODC-By 1.0
- 数据规模: 超过1T tokens
- 任务类别: 文本生成
- 来源数据集: HuggingFaceFW/fineweb
数据集描述
FineWeb Filtered 是 HuggingFaceFW/fineweb 的一个过滤子集,仅保留高质量、干净的英文网络文档。所有文本内容保持原样,不做任何修改,过滤机制仅为保留或丢弃文档。
数据结构
每条记录包含以下字段(继承自 FineWeb):
| 字段 | 描述 |
|---|---|
text |
完整文档文本 |
id |
唯一文档ID |
url |
来源URL |
dump |
Common Crawl 爬取批次 |
date |
爬取日期 |
language |
检测到的语言代码 |
language_score |
语言识别置信度分数 |
token_count |
预估 token 数量 |
过滤规则
文档若未通过以下任意一项检查,则被丢弃(按顺序应用):
| 过滤类型 | 丢弃条件 |
|---|---|
| 质量过滤 | 字符数少于200或单词数少于50;语言得分低于0.65;符号占比超过30%;数字占比超过40% |
| 许可过滤 | 匹配被阻止的许可证或域名(默认无阻止项) |
| AI生成内容过滤 | AI生成概率超过0.85 |
| 有害内容过滤 | 有害性得分超过0.5 |
| 困惑度过滤 | 困惑度超出正常范围(若未设置KenLM模型,则使用熵代理) |
使用方式
通过 Hugging Face Datasets 库加载(支持流式加载),也可直接读取 Parquet 文件。支持在代码中按语言得分进一步筛选。
来源与许可
本数据集基于 HuggingFaceFW/fineweb 构建,继承原数据集的 ODC-By 1.0 许可协议。使用时请引用原始 FineWeb 数据集。





