AutoMathText-V2
收藏资源简介:
AutoMathText-V2是一个包含2.46万亿token的高质量、去重文本数据集,涵盖网络内容、数学、代码、推理和双语数据。该数据集通过三层去重管道和AI驱动的质量评估精心策划,为大型语言模型提供优质训练数据。它结合了50多个优质数据源和先进处理技术,包括语义去重、污染检测和智能文本清理,以在不同领域提供卓越的模型性能。
AutoMathText-V2 is a high-quality, deduplicated text dataset containing 2.46 trillion tokens, covering web content, mathematics, code, reasoning, and bilingual data. This dataset is meticulously curated via a three-tier deduplication pipeline and AI-driven quality assessment to provide high-quality training data for large language models. It integrates over 50 high-quality data sources and advanced processing techniques, including semantic deduplication, contamination detection, and intelligent text cleaning, to deliver exceptional model performance across diverse domains.
AutoMathText-V2 数据集概述
基本信息
- 数据集名称:AutoMathText-V2
- 总规模:2.46万亿token
- 主要特点:高质量、去重文本,涵盖网页内容、数学、代码、推理和双语数据
- 许可证:AutoMathText Data Agreement for Model Training
数据集组成
领域分布
| 领域 | Token数量 | 占比 | 描述 |
|---|---|---|---|
| Nemotron CC High | 1,468.3B | 59.7% | 高质量CommonCrawl数据 |
| DCLM | 314.2B | 12.8% | DCLM基线网页内容 |
| RefineCode | 279.4B | 11.4% | GitHub仓库(仅学术使用) |
| Nemotron CC Medium-High | 254.5B | 10.3% | 中高质量CommonCrawl数据 |
| FineWeb Edu | 117.4B | 4.8% | 教育网页内容 |
| Chinese | 112.18B | 4.6% | 中文通用内容 |
| Reasoning QA | 86.2B | 3.5% | 指令遵循和复杂推理任务 |
| Math Web | 68.3B | 2.8% | 数学和科学内容 |
| MegaMath | 28.5B | 1.2% | 专业数学集合 |
| Translation | 1.61B | 0.1% | 英中翻译对 |
数据来源
- 总来源数:52个优质数据集
- 主要来源领域:
- DCLM域:DCLM-Baseline
- FineWeb Edu域:FineWeb-Edu
- 中文教育域:FineWeb-Edu-Chinese
- 数学网页域:AutoMathText、FineMath、Open-Web-Math-Pro、InfiMM-WebMath-40B
- 推理QA域:包含35个推理相关数据集
- 翻译域:UN-PC、UN-PC-Reverse
- MegaMath域:MegaMath-QA、MegaMath-Translated-Code、MegaMath-Text-Code-Block
处理流程
三重去重
- 精确去重:SHA256内容哈希,移除约30%精确重复
- 模糊去重:MinHash LSH,Jaccard相似度阈值0.9,移除约20%近似重复
- 语义去重:GTE多语言基础嵌入,余弦相似度阈值0.007,移除约10%语义重复
AI质量评估
- 架构:基于Qwen2的分类器
- 方法:微调回归头进行质量评分,多源分数归一化和融合
高级文本清理
- 工具:Ultimate Data Cleaner v7.5.0.5
- 特性:高级LaTeX和代码保护,质量启发式清理
污染检测
- 方法:测试集保护,精确字符串匹配与预处理
- 范围:数学数据集测试问题,GSM8K评估问题
使用方式
加载数据集
python from datasets import load_dataset dataset = load_dataset("OpenSQZ/AutoMathText-V2", streaming=True)
RefineCode内容下载
- 要求:AWS凭证,smart_open[s3]和boto3库
- 方法:使用blob_id字段从AWS S3下载完整代码内容
数据集结构
目录结构
- 组织方式:按领域和质量分位数组织
- 质量分位数:每个领域分为10个质量百分位(0-10, 10-20, ..., 90-100)
- 可用配置:领域特定配置、质量过滤配置、Nemotron变体、组合配置、自定义采样
语言分布
- 英语:约95%
- 中文:约5%
技术文档
- 详细文档:https://iiis-ai.github.io/AutoMathText-V2
- GitHub仓库:https://github.com/iiis-ai/AutoMathText-V2
引用
bibtex @misc{automathtext_v2_2025, title={AutoMathText-V2: A 2.46 Trillion Token AI-Curated STEM Pretraining Dataset}, author={Li, Chao and Zhang, Yifan and Yuan, Yang and Yao, Andrew C}, year={2025}, publisher={Hugging Face}, url={https://huggingface.co/datasets/OpenSQZ/AutoMathText-V2}, note={A 2.46T token multi-domain dataset with fine-grained deduplication and AI-powered quality assessment.} }




