Datasets:
add README
Browse files- README.md +129 -0
- README_ZH.md +84 -0
- assets/multilingual_results.png +3 -0
- assets/python_results.png +3 -0
- assets/ultradata-stack-v3-l2-logo.png +3 -0
README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- zh
|
| 5 |
+
license: odc-by
|
| 6 |
+
size_categories:
|
| 7 |
+
- n>100B
|
| 8 |
+
task_categories:
|
| 9 |
+
- text-generation
|
| 10 |
+
pretty_name: UltraData-Stack-v3-L2
|
| 11 |
+
tags:
|
| 12 |
+
- llm
|
| 13 |
+
- code
|
| 14 |
+
- code-pretraining
|
| 15 |
+
- data-selection
|
| 16 |
+
- algorithmic-code
|
| 17 |
+
configs:
|
| 18 |
+
- config_name: default
|
| 19 |
+
data_files:
|
| 20 |
+
- split: cpp
|
| 21 |
+
path: "data/cpp/*.parquet"
|
| 22 |
+
- split: cs
|
| 23 |
+
path: "data/cs/*.parquet"
|
| 24 |
+
- split: go
|
| 25 |
+
path: "data/go/*.parquet"
|
| 26 |
+
- split: java
|
| 27 |
+
path: "data/java/*.parquet"
|
| 28 |
+
- split: js
|
| 29 |
+
path: "data/js/*.parquet"
|
| 30 |
+
- split: php
|
| 31 |
+
path: "data/php/*.parquet"
|
| 32 |
+
- split: py
|
| 33 |
+
path: "data/py/*.parquet"
|
| 34 |
+
- split: r
|
| 35 |
+
path: "data/r/*.parquet"
|
| 36 |
+
- split: rb
|
| 37 |
+
path: "data/rb/*.parquet"
|
| 38 |
+
- split: rust
|
| 39 |
+
path: "data/rust/*.parquet"
|
| 40 |
+
- split: sh
|
| 41 |
+
path: "data/sh/*.parquet"
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
# UltraData-Stack-v3-L2
|
| 45 |
+
|
| 46 |
+
<div align="center">
|
| 47 |
+
<img src="assets/ultradata-stack-v3-l2-logo.png" width="600" alt="UltraData-Stack-v3-L2 logo"/>
|
| 48 |
+
</div>
|
| 49 |
+
|
| 50 |
+
<p align="center">
|
| 51 |
+
<a href="https://huggingface.co/collections/openbmb/ultradata">📦 UltraData Collection</a> |
|
| 52 |
+
<a href="https://ultradata.openbmb.cn/">🌐 UltraData</a> |
|
| 53 |
+
<a href="https://huggingface.co/datasets/openbmb/UltraData-Code">🤗 UltraData-Code</a> |
|
| 54 |
+
<a href="https://huggingface.co/openbmb/UltraData-Code-L2-Classifier">🤗 UltraData-Code-L2 Classifier</a>
|
| 55 |
+
</p>
|
| 56 |
+
|
| 57 |
+
<p align="center">English | <a href="README_ZH.md">中文</a></p>
|
| 58 |
+
|
| 59 |
+
## 📚 Introduction
|
| 60 |
+
|
| 61 |
+
**UltraData-Stack-v3-L2** is a selected code corpus of approximately 240B tokens for the 11 programming languages in [The Stack v3](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-train), obtained through quality-control cleaning and fine-grained selection with [UltraData-Code-L2-Classifier](https://huggingface.co/openbmb/UltraData-Code-L2-Classifier). This dataset transfers the language-adaptive L2 selection framework proposed by **UltraData-Code** to another source corpus, in order to examine whether file-level algorithm-related relevance selection can generalize to data sources beyond UltraData-Code-L1.
|
| 62 |
+
|
| 63 |
+
Construction has two stages. First, source records are cleaned by removing URL-only entries, overly short records, and records containing garbled or malformed text. Second, a language-specific selector combines file-role prediction, algorithmic-relevance scoring, an `EXCLUDE` veto, and a shared code-quality constraint. The relevance threshold is calibrated separately for each language. The resulting dataset retains **20.10%** of the cleaned 11-language candidate pool, and is intended to concentrate interpretable computation and problem-solving logic while preserving broad language coverage.
|
| 64 |
+
|
| 65 |
+
## 💡 Highlights
|
| 66 |
+
|
| 67 |
+
- **Transferable algorithmic-relevance selection:** The same selection objective and model interfaces used for UltraData-Code-L2 are adapted to Stack-v3-train, with language-specific evidence and thresholds.
|
| 68 |
+
- **Strong performance gains:** Under the same 1B base model and 10B-token continual-pretraining setup, UltraData-Stack-v3-L2 reaches **30.00** average pass@1 on EvalPlus and **22.75** on MultiPL-E, compared with **25.37** and **17.30** for Stack-v3-train.
|
| 69 |
+
|
| 70 |
+
## 📊 Dataset Statistics
|
| 71 |
+
|
| 72 |
+
Token counts are estimated with the tokenizer used in the technical report.
|
| 73 |
+
|
| 74 |
+
| Language | After cleaning | After selection | Retention | Token share | Tokens |
|
| 75 |
+
|:--|--:|--:|--:|--:|--:|
|
| 76 |
+
| Python | 96,961,008 | 24,671,724 | 25.44% | 15.86% | 38.94B |
|
| 77 |
+
| Java | 165,346,828 | 41,963,467 | 25.38% | 28.76% | 70.60B |
|
| 78 |
+
| JavaScript | 110,967,790 | 14,521,755 | 13.09% | 12.92% | 31.73B |
|
| 79 |
+
| C++ | 67,981,897 | 17,990,102 | 26.46% | 12.78% | 31.38B |
|
| 80 |
+
| PHP | 65,565,149 | 5,500,141 | 8.39% | 10.26% | 25.19B |
|
| 81 |
+
| Ruby | 32,667,620 | 6,389,441 | 19.56% | 2.39% | 5.86B |
|
| 82 |
+
| Shell | 26,704,436 | 5,045,813 | 18.90% | 8.83% | 21.67B |
|
| 83 |
+
| C# | 17,309,141 | 3,548,274 | 20.50% | 3.64% | 8.93B |
|
| 84 |
+
| Go | 29,683,899 | 3,138,105 | 10.57% | 1.65% | 4.04B |
|
| 85 |
+
| Rust | 11,674,463 | 2,907,231 | 24.90% | 2.13% | 5.24B |
|
| 86 |
+
| R | 7,640,182 | 1,456,974 | 19.07% | 0.78% | 1.92B |
|
| 87 |
+
| **Total** | **632,502,413** | **127,133,027** | **20.10%** | **100%** | **245.50B** |
|
| 88 |
+
|
| 89 |
+
## 📈 Evaluation Results
|
| 90 |
+
|
| 91 |
+
The 10B-token comparisons use the same 1B foundation model, training settings, decontamination, and evaluation protocol.
|
| 92 |
+
|
| 93 |
+
**Python results:** UltraData-Stack-v3-L2-py ranks second among the evaluated L2 datasets by average EvalPlus pass@1 and obtains the highest MBPP and MBPP+ scores at L2.
|
| 94 |
+
|
| 95 |
+
<div align="center">
|
| 96 |
+
<img src="assets/python_results.png" alt="Python main results table" width="900"/>
|
| 97 |
+
</div>
|
| 98 |
+
|
| 99 |
+
**Multilingual results:** UltraData-Stack-v3-L2 exceeds Stack-v3-train by **4.63 points** on EvalPlus and **5.45 points** on MultiPL-E, respectively, demonstrating effective L2 language-adaptive selection.
|
| 100 |
+
|
| 101 |
+
<div align="center">
|
| 102 |
+
<img src="assets/multilingual_results.png" alt="Multilingual main results table" width="900"/>
|
| 103 |
+
</div>
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
## ❤️ Acknowledgements
|
| 107 |
+
|
| 108 |
+
UltraData-Stack-v3-L2 is built from [The Stack v3](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-train). The selection framework [UltraData-Code-L2-Classifier](https://huggingface.co/openbmb/UltraData-Code-L2-Classifier) is developed as part of [UltraData-Code](https://huggingface.co/datasets/openbmb/UltraData-Code), and its file-level representations are computed with [Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B).
|
| 109 |
+
|
| 110 |
+
Thanks to the authors and contributors of these open-source projects.
|
| 111 |
+
|
| 112 |
+
## 💳 License
|
| 113 |
+
|
| 114 |
+
The dataset is released under the [Open Data Commons Attribution License (ODC-By) v1.0](https://opendatacommons.org/licenses/by/1-0/), consistent with the source dataset [The Stack v3](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-train). Any use of all or part of the code gathered in UltraData-Stack-v3-L2 must abide by the terms of the original licenses, including attribution clauses where relevant.
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
## 📖 Citation
|
| 118 |
+
|
| 119 |
+
If you find this dataset useful in your research, please consider citing:
|
| 120 |
+
|
| 121 |
+
```bibtex
|
| 122 |
+
@misc{ultradata_code,
|
| 123 |
+
title = {{UltraData-Code}: From Raw Repositories to Algorithmically Dense and Task-Oriented Code Data},
|
| 124 |
+
author = {Chengying Tu and Hengyu Zhao and Shuaikang Xue and Zhongming Qu and Jihao Zhou and Xinle Lin and Junshao Guo and Zixuan Fu and Qiang Ma and Jie Zhou and Chaojun Xiao and Hongfei Yan and Yudong Wang and Xu Han and Zhiyuan Liu and Maosong Sun},
|
| 125 |
+
year = {2026},
|
| 126 |
+
publisher = {Hugging Face},
|
| 127 |
+
howpublished = {\url{https://huggingface.co/datasets/openbmb/UltraData-Code}}
|
| 128 |
+
}
|
| 129 |
+
```
|
README_ZH.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UltraData-Stack-v3-L2
|
| 2 |
+
|
| 3 |
+
<div align="center">
|
| 4 |
+
<img src="assets/ultradata-stack-v3-l2-logo.png" width="600" alt="UltraData-Stack-v3-L2 标志"/>
|
| 5 |
+
</div>
|
| 6 |
+
|
| 7 |
+
<p align="center">
|
| 8 |
+
<a href="https://huggingface.co/collections/openbmb/ultradata">📦 UltraData 合集</a> |
|
| 9 |
+
<a href="https://ultradata.openbmb.cn/">🌐 UltraData</a> |
|
| 10 |
+
<a href="https://huggingface.co/datasets/openbmb/UltraData-Code">🤗 UltraData-Code</a> |
|
| 11 |
+
<a href="https://huggingface.co/openbmb/UltraData-Code-L2-Classifier">🤗 UltraData-Code-L2 分类器</a>
|
| 12 |
+
</p>
|
| 13 |
+
|
| 14 |
+
<p align="center"><a href="README.md">English</a> | 中文</p>
|
| 15 |
+
|
| 16 |
+
## 📚 简介
|
| 17 |
+
|
| 18 |
+
**UltraData-Stack-v3-L2** 是针对 [The Stack v3](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-train) 中的 11 种编程语言,经过质检清洗和 [UltraData-Code-L2-Classifier](https://huggingface.co/openbmb/UltraData-Code-L2-Classifier) 精筛得到的代码预训练语料,规模约为 **240B tokens**。该数据集将 *UltraData-Code* 提出的语言自适应 L2 精筛框架迁移到另一套源语料,用于检验文件级算法相关性筛选能否泛化到 UltraData-Code-L1 之外的数据来源。
|
| 19 |
+
|
| 20 |
+
数据构建分为两个阶段。首先,基础清洗会移除全文仅包含 URL、长度过短以及含乱码或格式异常的记录。随后,针对每种语言分别运行 L2 选择器,综合文件角色预测、算法相关性评分、`EXCLUDE` 否决规则与统一的代码质量约束,并为每种语言单独校准算法相关性阈值。最终数据集保留清洗后 11 语言候选池的约 **20.10%**,旨在提高具有可解释计算过程和问题求解逻辑的代码密度,同时保持广泛的语言覆盖。
|
| 21 |
+
|
| 22 |
+
## 💡 亮点
|
| 23 |
+
|
| 24 |
+
- **可迁移的算法相关性精筛:** 将 UltraData-Code-L2 使用的统一选择目标和模型接口迁移至 Stack-v3-train,并针对不同语言适配识别证据与筛选阈值。
|
| 25 |
+
- **实验结果表现突出:** 在相同的 1B 基座模型与 10B-token 持续预训练设置下,UltraData-Stack-v3-L2 在 EvalPlus 和 MultiPL-E 上的平均 pass@1 分别达到 **30.00** 和 **22.75**,而 Stack-v3-train 对应结果为 **25.37** 和 **17.30**。
|
| 26 |
+
|
| 27 |
+
## 📊 数据集统计
|
| 28 |
+
|
| 29 |
+
Token 数量使用技术报告实验所采用的 tokenizer 估算。
|
| 30 |
+
|
| 31 |
+
| 语言 | 清洗后文件数 | 筛选后文件数 | 保留率 | Token 占比 | Tokens |
|
| 32 |
+
|:--|--:|--:|--:|--:|--:|
|
| 33 |
+
| Python | 96,961,008 | 24,671,724 | 25.44% | 15.86% | 38.94B |
|
| 34 |
+
| Java | 165,346,828 | 41,963,467 | 25.38% | 28.76% | 70.60B |
|
| 35 |
+
| JavaScript | 110,967,790 | 14,521,755 | 13.09% | 12.92% | 31.73B |
|
| 36 |
+
| C++ | 67,981,897 | 17,990,102 | 26.46% | 12.78% | 31.38B |
|
| 37 |
+
| PHP | 65,565,149 | 5,500,141 | 8.39% | 10.26% | 25.19B |
|
| 38 |
+
| Ruby | 32,667,620 | 6,389,441 | 19.56% | 2.39% | 5.86B |
|
| 39 |
+
| Shell | 26,704,436 | 5,045,813 | 18.90% | 8.83% | 21.67B |
|
| 40 |
+
| C# | 17,309,141 | 3,548,274 | 20.50% | 3.64% | 8.93B |
|
| 41 |
+
| Go | 29,683,899 | 3,138,105 | 10.57% | 1.65% | 4.04B |
|
| 42 |
+
| Rust | 11,674,463 | 2,907,231 | 24.90% | 2.13% | 5.24B |
|
| 43 |
+
| R | 7,640,182 | 1,456,974 | 19.07% | 0.78% | 1.92B |
|
| 44 |
+
| **总计** | **632,502,413** | **127,133,027** | **20.10%** | **100%** | **245.50B** |
|
| 45 |
+
|
| 46 |
+
## 📈 评测结果
|
| 47 |
+
|
| 48 |
+
10B-token 对比均使用相同的 1B 基座模型、训练设置、去污流程和评测协议。
|
| 49 |
+
|
| 50 |
+
**Python 结果:**在参与评测的 L2 数据中,UltraData-Stack-v3-L2-py 的 EvalPlus 平均 pass@1 位列第二,并在 L2 中取得最高的 MBPP 和 MBPP+ 分数。
|
| 51 |
+
|
| 52 |
+
<div align="center">
|
| 53 |
+
<img src="assets/python_results.png" alt="Python main results table" width="900"/>
|
| 54 |
+
</div>
|
| 55 |
+
|
| 56 |
+
**多语言结果:**UltraData-Stack-v3-L2 在 EvalPlus 和 MultiPL-E 上分别比 Stack-v3-train 高 4.63 和 5.45 个百分点,验证了 L2 语言自适应筛选方法的有效性。
|
| 57 |
+
|
| 58 |
+
<div align="center">
|
| 59 |
+
<img src="assets/multilingual_results.png" alt="Multilingual main results table" width="900"/>
|
| 60 |
+
</div>
|
| 61 |
+
|
| 62 |
+
## ❤️ 致谢
|
| 63 |
+
|
| 64 |
+
UltraData-Stack-v3-L2 基于 [The Stack v3](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-train) 构建。选择框架来自 [UltraData-Code](https://huggingface.co/datasets/openbmb/UltraData-Code) 的 [UltraData-Code-L2-Classifier](https://huggingface.co/openbmb/UltraData-Code-L2-Classifier),文件级表示使用 [Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B) 计算。
|
| 65 |
+
|
| 66 |
+
感谢上述开源项目的作者与贡献者。
|
| 67 |
+
|
| 68 |
+
## 💳 许可证
|
| 69 |
+
|
| 70 |
+
本数据集基于 [Open Data Commons Attribution License (ODC-By) v1.0](https://opendatacommons.org/licenses/by/1-0/) 发布,与源数据集 [The Stack v3](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-train) 保持一致。使用 UltraData-Stack-v3-L2 中收录的全部或部分代码时,必须遵守其原始许可证的相关条款,包括适用的署名要求。
|
| 71 |
+
|
| 72 |
+
## 📖 引用
|
| 73 |
+
|
| 74 |
+
如果本数据集对您的研究有帮助,请考虑引用:
|
| 75 |
+
|
| 76 |
+
```bibtex
|
| 77 |
+
@misc{ultradata_code,
|
| 78 |
+
title = {{UltraData-Code}: From Raw Repositories to Algorithmically Dense and Task-Oriented Code Data},
|
| 79 |
+
author = {Chengying Tu and Hengyu Zhao and Shuaikang Xue and Zhongming Qu and Jihao Zhou and Xinle Lin and Junshao Guo and Zixuan Fu and Qiang Ma and Jie Zhou and Chaojun Xiao and Hongfei Yan and Yudong Wang and Xu Han and Zhiyuan Liu and Maosong Sun},
|
| 80 |
+
year = {2026},
|
| 81 |
+
publisher = {Hugging Face},
|
| 82 |
+
howpublished = {\url{https://huggingface.co/datasets/openbmb/UltraData-Code}}
|
| 83 |
+
}
|
| 84 |
+
```
|
assets/multilingual_results.png
ADDED
|
Git LFS Details
|
assets/python_results.png
ADDED
|
Git LFS Details
|
assets/ultradata-stack-v3-l2-logo.png
ADDED
|
Git LFS Details
|