Datasets:
Update README.md
#4
by PhillCarv - opened
README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
-
-
|
| 4 |
-
- zh
|
| 5 |
license: apache-2.0
|
| 6 |
size_categories:
|
| 7 |
-
-
|
| 8 |
task_categories:
|
| 9 |
- text-generation
|
| 10 |
pretty_name: UltraData-Code
|
|
@@ -18,186 +17,83 @@ configs:
|
|
| 18 |
- config_name: UltraData-Code-L2
|
| 19 |
data_files:
|
| 20 |
- split: cpp
|
| 21 |
-
path:
|
| 22 |
- split: cs
|
| 23 |
-
path:
|
| 24 |
- split: go
|
| 25 |
-
path:
|
| 26 |
- split: java
|
| 27 |
-
path:
|
| 28 |
- split: js
|
| 29 |
-
path:
|
| 30 |
- split: php
|
| 31 |
-
path:
|
| 32 |
- split: py
|
| 33 |
-
path:
|
| 34 |
- split: r
|
| 35 |
-
path:
|
| 36 |
- split: rb
|
| 37 |
-
path:
|
| 38 |
- split: rust
|
| 39 |
-
path:
|
| 40 |
- split: sh
|
| 41 |
-
path:
|
| 42 |
- config_name: UltraData-Code-L3
|
| 43 |
data_files:
|
| 44 |
- split: cpp
|
| 45 |
-
path:
|
| 46 |
- split: cs
|
| 47 |
-
path:
|
| 48 |
- split: go
|
| 49 |
-
path:
|
| 50 |
- split: java
|
| 51 |
-
path:
|
| 52 |
- split: js
|
| 53 |
-
path:
|
| 54 |
- split: php
|
| 55 |
-
path:
|
| 56 |
- split: py
|
| 57 |
-
path:
|
| 58 |
- split: r
|
| 59 |
-
path:
|
| 60 |
- split: rb
|
| 61 |
-
path:
|
| 62 |
- split: rust
|
| 63 |
-
path:
|
| 64 |
- split: sh
|
| 65 |
-
path:
|
| 66 |
default_config_name: UltraData-Code-L2
|
| 67 |
---
|
|
|
|
| 68 |
|
| 69 |
-
|
| 70 |
|
| 71 |
-
|
| 72 |
-
<img src="assets/ultradata-code-logo.png" width="600" alt="UltraData-Code logo"/>
|
| 73 |
-
</div>
|
| 74 |
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
|
| 84 |
|
| 85 |
-
|
| 86 |
|
| 87 |
-
|
| 88 |
|
| 89 |
-
|
| 90 |
-
<img src="assets/ultradata-code-l0-l3-overview.png" width="760" alt="UltraData-Code L0-L3 construction pipeline"/>
|
| 91 |
-
</div>
|
| 92 |
|
| 93 |
-
|
| 94 |
|
| 95 |
-
|
| 96 |
|
| 97 |
-
**
|
| 98 |
|
| 99 |
-
**
|
| 100 |
-
|
| 101 |
-
## 📢 What's New
|
| 102 |
-
|
| 103 |
-
- **[2026.09.07]** The [***UltraData-Code***](https://huggingface.co/datasets/openbmb/UltraData-Code) dataset is released! It is a complete implementation of the [UltraData](https://ultradata.openbmb.cn/) [L0-L4 tiered data management framework](https://arxiv.org/pdf/2602.09003). It covers four code data states from L0 through L3, with each level corresponding to a distinct construction stage. This release currently open-sources **L2** (\~400B tokens) and **L3** (\~150B tokens) across 11 programming languages. 🚀🚀🚀
|
| 104 |
-
- **[2026.09.07]** ***[MiniCPM5-2B](https://huggingface.co/openbmb/MiniCPM5-2B) is released!***, the second model in the MiniCPM5 series after MiniCPM5-1B. It is a dense 2B Transformer that scales up the same training recipe, built for on-device, local deployment, and resource-constrained scenarios. It reaches **2B-class open-source SOTA**, remains competitive with 4B-class models, and shows particular advantages in coding, mathematics, long-context understanding, tool use, and agentic tasks. UltraData-RL-2609 serves as the core RL dataset for MiniCPM5-2B. 🚀🚀🚀
|
| 105 |
-
- **[2026.02.08]** The [***UltraData***](https://ultradata.openbmb.cn/) platform is now live, introducing the [L0-L4 tiered data management framework](https://arxiv.org/pdf/2602.09003). 🔍🔍🔍
|
| 106 |
-
|
| 107 |
-
## 💡 Highlights
|
| 108 |
-
|
| 109 |
-
> **Abstract:** Code generation has become a core capability of large language models, and code data is a central part of the pre-training process that develops it. As code corpora continue to grow, their scale, diversity, and quality increasingly shape the capabilities learned during pre-training. Following a tiered data management perspective, we present **UltraData-Code** as a family of four connected data states, from repository archival at L0 through standardized natural code at L1, algorithmic selection at L2, and task-oriented synthesis at L3. L0 archives the latest revision on the default branch of each public GitHub repository with its file structure, relationships, and provenance. L1 applies scalable filtering, normalization, and near deduplication to obtain standardized natural code. L2 then selects algorithmically relevant files from L1 using language-adaptive signals from file roles and heuristics, together with code quality constraints, yielding approximately 400B tokens of **UltraData-Code-L2**, spanning 11 programming languages. L3 applies task-oriented synthesis to algorithmic files from L2, turning each implementation into a structured programming exercise, generating approximately 150B tokens of **UltraData-Code-L3** in the same 11 languages. Under controlled 10B-token continual pre-training of a 1B model, training on L2 instead of L1 raises pass@1 on EvalPlus by **7.80 points** and on MultiPL-E by **5.13 points**, while exceeding Stack-Edu by 4.37 and 3.05 points, respectively. Replacing half of the L2 training tokens with L3 yields a further gain of **8.42 points** on EvalPlus and **8.07 points** on MultiPL-E over L2-only training, while exceeding the strongest synthetic data baseline by 5.57 and 7.80 points, respectively. When the training budget increases to 100B tokens, gains from L2 selection and L3 synthesis further widen on both benchmarks.
|
| 110 |
-
|
| 111 |
-
- **A connected code data construction pipeline.** UltraData-Code links repository archival and standardized natural code with selection and structured synthesis, yielding approximately 400B tokens at L2 and 150B tokens at L3 across 11 programming languages.
|
| 112 |
-
- **Fine-grained curation of algorithmically relevant code.** We develop a language-adaptive selection framework that combines file role supervision with language-specific heuristic cues to learn algorithmic relevance beyond explicit ALGO files. The framework reuses precomputed semantic embeddings across role, relevance, and quality models, and applies role and quality constraints during selection.
|
| 113 |
-
- **Implementation-grounded, task-oriented synthesis.** We introduce a structured synthesis protocol that converts each algorithmically relevant implementation selected by L2 into a programming exercise, jointly generating a standalone task, analysis, solution, and test candidates from the same source implementation. This transformation preserves the source code's computational intent while adding explicit task and solution supervision for code generation.
|
| 114 |
-
|
| 115 |
-
## 📈 Evaluation Results
|
| 116 |
-
|
| 117 |
-
The 10B-token comparisons use the same 1B foundation model, training settings, decontamination, and evaluation protocol.
|
| 118 |
-
|
| 119 |
-
### Python Results
|
| 120 |
-
|
| 121 |
-
- **Algorithmic selection yields the strongest natural code result.** UltraData-Code-L2-py improves the average EvalPlus pass@1 by **17.91 points** over UltraData-Code-L1-py and by **8.46 points** over Stack-Edu-py.
|
| 122 |
-
- **Structured synthesis improves the matched mixture.** The equal-token UltraData-Code-L2-py + UltraData-Code-L3-py mixture reaches a **46.43** average pass@1, **3.30 points** above training on L2 alone and **4.46 points** above the matched L2 + SwallowCode-v2 mixture.
|
| 123 |
-
|
| 124 |
-
<div align="center">
|
| 125 |
-
<img src="assets/python-training-dynamics.png" alt="Python training dynamics" width="760"/>
|
| 126 |
-
</div>
|
| 127 |
-
|
| 128 |
-
<div align="center">
|
| 129 |
-
<img src="assets/python_results.png" alt="Python main results table" width="900"/>
|
| 130 |
-
</div>
|
| 131 |
-
|
| 132 |
-
### Multilingual Results
|
| 133 |
-
|
| 134 |
-
- **L2 selection improves over L1 baselines.** UltraData-Code-L2 exceeds UltraData-Code-L1 by **7.80 points** on EvalPlus and **5.13 points** on MultiPL-E, and exceeds Stack-Edu by **4.37** and **3.05 points**, respectively.
|
| 135 |
-
- **L3 synthesis provides a further gain.** Replacing half of the L2 training tokens with L3 yields **8.42** and **8.07 points** over training on L2 alone on EvalPlus and MultiPL-E. Under the same 1:1 token mix, UltraData-Code-L2-L3 exceeds the strongest reported synthetic baseline by **5.57** and **7.80 points**, respectively.
|
| 136 |
-
- **The advantage persists during scaling.** At 100B tokens, the L2-L3 mixture reaches 57.06 on EvalPlus and 39.54 on MultiPL-E, exceeding training on L2 alone by 10.11 and 12.39 points.
|
| 137 |
-
|
| 138 |
-
<div align="center">
|
| 139 |
-
<img src="assets/multilingual-training-dynamics.png" alt="Multilingual training dynamics" width="760"/>
|
| 140 |
-
</div>
|
| 141 |
-
|
| 142 |
-
<div align="center">
|
| 143 |
-
<img src="assets/multilingual_results.png" alt="Multilingual main results table" width="900"/>
|
| 144 |
-
</div>
|
| 145 |
-
|
| 146 |
-
## 🧾 Data Formats
|
| 147 |
-
|
| 148 |
-
### UltraData-Code-L2
|
| 149 |
-
|
| 150 |
-
Each row represents one selected source file. The fields are:
|
| 151 |
-
|
| 152 |
-
- `uuid`: unique file identifier.
|
| 153 |
-
- `repo_name`: source repository name.
|
| 154 |
-
- `relative_path`: file path relative to the repository.
|
| 155 |
-
- `content`: source code text.
|
| 156 |
-
- `category`: predicted file role, such as `ALGO`, `WEB`, `TOOL`, `DATA`, `TEST`, `CONFIG`.
|
| 157 |
-
- `algo_rel_score`: algorithmic relevance score in `[0, 1]`.
|
| 158 |
-
- `quality_score`: code quality score in `[0, 10]`.
|
| 159 |
-
|
| 160 |
-
### UltraData-Code-L3
|
| 161 |
-
|
| 162 |
-
Each row is a programming exercise grounded in a real implementation:
|
| 163 |
-
|
| 164 |
-
- `uuid`: unique file identifier.
|
| 165 |
-
- `content`: serialization containing task and solution.
|
| 166 |
-
- `content_format`: serialization format for `content`.
|
| 167 |
-
- `raw_content`: original generated record before serialization.
|
| 168 |
-
- `task`: generated standalone problem statement.
|
| 169 |
-
- `analysis`: algorithm, edge cases, and complexity discussion.
|
| 170 |
-
- `solution`: generated self-contained reference implementation.
|
| 171 |
-
- `test`: generated test candidates.
|
| 172 |
-
- `full_content`: serialization containing all generated fields.
|
| 173 |
-
- `full_content_format`: serialization format for `full_content`.
|
| 174 |
-
|
| 175 |
-
## ❤️ Acknowledgements
|
| 176 |
-
|
| 177 |
-
- The ***UltraData-Code-L2*** file-level semantic embeddings are computed with [Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B).
|
| 178 |
-
|
| 179 |
-
Thanks for their awesome work! Open source contributions make UltraData-Code possible! 🙌
|
| 180 |
-
|
| 181 |
-
## 💳 License and Data Sources
|
| 182 |
-
|
| 183 |
-
This project is released under the [Apache 2.0](./LICENSE) license. ***UltraData-Code*** is built from code in multiple public repositories (L2) and from model-generated task records derived from those files (L3). Users must also comply with the **LICENSE of each source repository**. Apache 2.0 does not override those terms.
|
| 184 |
-
|
| 185 |
-
Public availability of a repository is not a grant of redistribution, commercial use, or training rights. Rights holders may request removal via the contact channel on the dataset page.
|
| 186 |
-
|
| 187 |
-
The dataset should not contain plaintext secrets or unauthorized personal data. Please report sensitive content or takedown requests through the same channel.
|
| 188 |
-
|
| 189 |
-
**No unauthorized unchanged redistribution:** Without prior written permission from the original authors (or this organization), any institution, organization, or third-party platform is strictly prohibited from directly reposting, mirroring, re-hosting, or commercially repackaging and republishing any artifacts of this project in any form.
|
| 190 |
-
|
| 191 |
-
## 📖 Citation
|
| 192 |
-
|
| 193 |
-
If you find **UltraData-Code** useful in your research, please consider citing:
|
| 194 |
-
|
| 195 |
-
```bibtex
|
| 196 |
-
@misc{ultradata_code,
|
| 197 |
-
title = {{UltraData-Code}: From Raw Repositories to Algorithmically Dense and Task-Oriented Code Data},
|
| 198 |
-
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},
|
| 199 |
-
year = {2026},
|
| 200 |
-
publisher = {Hugging Face},
|
| 201 |
-
howpublished = {\url{https://huggingface.co/datasets/openbmb/UltraData-Code}}
|
| 202 |
-
}
|
| 203 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
+
- pt
|
|
|
|
| 4 |
license: apache-2.0
|
| 5 |
size_categories:
|
| 6 |
+
- n>1T
|
| 7 |
task_categories:
|
| 8 |
- text-generation
|
| 9 |
pretty_name: UltraData-Code
|
|
|
|
| 17 |
- config_name: UltraData-Code-L2
|
| 18 |
data_files:
|
| 19 |
- split: cpp
|
| 20 |
+
path: data/UltraData-Code-L2/cpp/*.parquet
|
| 21 |
- split: cs
|
| 22 |
+
path: data/UltraData-Code-L2/cs/*.parquet
|
| 23 |
- split: go
|
| 24 |
+
path: data/UltraData-Code-L2/go/*.parquet
|
| 25 |
- split: java
|
| 26 |
+
path: data/UltraData-Code-L2/java/*.parquet
|
| 27 |
- split: js
|
| 28 |
+
path: data/UltraData-Code-L2/js/*.parquet
|
| 29 |
- split: php
|
| 30 |
+
path: data/UltraData-Code-L2/php/*.parquet
|
| 31 |
- split: py
|
| 32 |
+
path: data/UltraData-Code-L2/py/*.parquet
|
| 33 |
- split: r
|
| 34 |
+
path: data/UltraData-Code-L2/r/*.parquet
|
| 35 |
- split: rb
|
| 36 |
+
path: data/UltraData-Code-L2/rb/*.parquet
|
| 37 |
- split: rust
|
| 38 |
+
path: data/UltraData-Code-L2/rust/*.parquet
|
| 39 |
- split: sh
|
| 40 |
+
path: data/UltraData-Code-L2/sh/*.parquet
|
| 41 |
- config_name: UltraData-Code-L3
|
| 42 |
data_files:
|
| 43 |
- split: cpp
|
| 44 |
+
path: data/UltraData-Code-L3/cpp/*.parquet
|
| 45 |
- split: cs
|
| 46 |
+
path: data/UltraData-Code-L3/cs/*.parquet
|
| 47 |
- split: go
|
| 48 |
+
path: data/UltraData-Code-L3/go/*.parquet
|
| 49 |
- split: java
|
| 50 |
+
path: data/UltraData-Code-L3/java/*.parquet
|
| 51 |
- split: js
|
| 52 |
+
path: data/UltraData-Code-L3/js/*.parquet
|
| 53 |
- split: php
|
| 54 |
+
path: data/UltraData-Code-L3/php/*.parquet
|
| 55 |
- split: py
|
| 56 |
+
path: data/UltraData-Code-L3/py/*.parquet
|
| 57 |
- split: r
|
| 58 |
+
path: data/UltraData-Code-L3/r/*.parquet
|
| 59 |
- split: rb
|
| 60 |
+
path: data/UltraData-Code-L3/rb/*.parquet
|
| 61 |
- split: rust
|
| 62 |
+
path: data/UltraData-Code-L3/rs/*.parquet
|
| 63 |
- split: sh
|
| 64 |
+
path: data/UltraData-Code-L3/sh/*.parquet
|
| 65 |
default_config_name: UltraData-Code-L2
|
| 66 |
---
|
| 67 |
+
## 🦖 Personalidade de ação — Anthony, o pequeno explorador dos dinossauros
|
| 68 |
|
| 69 |
+
**Anthony é um menino de 4 anos extremamente curioso, alegre e apaixonado por dinossauros.** Quando vê um dinossauro, seus olhos brilham, ele fica empolgado e imediatamente quer chegar perto, observar, tocar e descobrir tudo sobre ele.
|
| 70 |
|
| 71 |
+
### 🎭 Como Anthony age
|
|
|
|
|
|
|
| 72 |
|
| 73 |
+
* **Curioso:** faz perguntas o tempo todo: “Que dinossauro é esse?”, “Ele é grande?”, “O que ele come?”
|
| 74 |
+
* **Aventureiro:** não fica parado. Corre, explora, sobe, aponta e quer descobrir o que existe atrás de cada árvore.
|
| 75 |
+
* **Corajoso:** diante de um T-Rex, não demonstra medo; fica maravilhado e empolgado.
|
| 76 |
+
* **Brincalhão:** transforma qualquer situação em uma brincadeira.
|
| 77 |
+
* **Afetuoso:** trata os dinossauros como grandes amigos, fazendo carinho e conversando com eles.
|
| 78 |
+
* **Comunicativo:** fala diretamente com quem está assistindo, como se estivesse mostrando sua aventura para um amigo.
|
| 79 |
+
* **Imaginativo:** acredita que pode conversar, brincar e viver aventuras com os dinossauros.
|
| 80 |
+
* **Entusiasmado:** seus movimentos são espontâneos: aponta, abre os braços, sorri, dá risada e reage com surpresa.
|
| 81 |
+
* **Explorador:** está sempre olhando para os lados, procurando novos dinossauros e descobertas.
|
| 82 |
+
* **Encantado:** quando encontra algo impressionante, demonstra fascínio genuíno, típico de uma criança de 4 anos.
|
| 83 |
|
| 84 |
+
### 🦖 Comportamento com o T-Rex
|
| 85 |
|
| 86 |
+
Anthony **não trata o T-Rex como um monstro**, mas como seu grande amigo e companheiro de aventuras.
|
| 87 |
|
| 88 |
+
Ele pode:
|
| 89 |
|
| 90 |
+
> fazer carinho na cabeça do T-Rex, abraçá-lo, conversar com ele, rir quando o dinossauro ruge, apontar para coisas na selva e comemorar quando o T-Rex começa a correr.
|
|
|
|
|
|
|
| 91 |
|
| 92 |
+
O T-Rex, por sua vez, deve demonstrar **proteção, amizade e curiosidade**, acompanhando Anthony durante suas aventuras.
|
| 93 |
|
| 94 |
+
### 🎬 Diretriz de atuação para os vídeos
|
| 95 |
|
| 96 |
+
> **Anthony deve agir como uma criança de 4 anos genuinamente apaixonada por dinossauros: extremamente curioso, alegre, energético, espontâneo e imaginativo. Seus movimentos devem ser naturais e infantis, com expressões faciais muito marcantes. Ele sorri frequentemente, arregala os olhos diante de descobertas, aponta para os dinossauros, faz pequenos gestos de surpresa e demonstra entusiasmo com todo o corpo. Nunca deve parecer um adulto em miniatura ou atuar de maneira artificial. Sua fala deve ser espontânea, doce e divertida, transmitindo a sensação de que ele realmente acredita estar vivendo a maior aventura de sua vida.**
|
| 97 |
|
| 98 |
+
**Essência do personagem:**
|
| 99 |
+
🦖 **“Anthony não apenas gosta de dinossauros. Para ele, o mundo inteiro fica mais incrível quando existe um dinossauro por perto.”**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|