AIAny
Icon for item

UltraData-Code

Provides layered code pretraining corpora (L2 ~400B tokens, L3 ~150B tokens) across 11 languages by filtering ~192M public GitHub repositories into standardized files, algorithmically relevant selections, and implementation-grounded programming exercises. Includes per-file metadata (role, algo relevance, quality) and serialized task records; released under Apache-2.0.

Introduction

Most large code corpora mix boilerplate, tests, generated files, and genuinely algorithmic implementations — this noise dilutes signal during pretraining. By organizing repository archives into a tiered pipeline and emitting both selected natural code (L2) and task-oriented synthetic exercises (L3), the dataset isolates algorithmic intent and supplies explicit generation supervision that improves code-model capabilities per token.

What Sets It Apart
  • Tiered, provenance-preserving pipeline: starts from a full L0 archive of ~192M public GitHub repositories and applies language-specific cleaning, near-duplicate deduplication, role prediction, and quality filtering to produce L1/L2 artifacts with traceability. This keeps selection decisions auditable and reproducible.
  • Algorithmic selection (L2): selects ~400B tokens of files deemed algorithmically relevant using file-role supervision, heuristic language cues, and embedding-based filters. Each file includes metadata such as predicted role, algo_rel_score, and quality_score for informed sampling or filtering.
  • Implementation-grounded synthesis (L3): converts selected implementations into standalone programming exercises (task, analysis, solution, tests), yielding ~150B tokens that provide explicit paired supervision for code generation and evaluation.
  • Empirical gains in controlled experiments: L2 vs L1 and L2+L3 mixtures consistently improve pass@1 on EvalPlus and MultiPL-E benchmarks in 10B-token controlled trainings, showing selection and synthesis deliver measurable per-token benefits.
Who it's for and tradeoffs

Great fit if you need high-quality pretraining or continual-pretraining code corpora with clear provenance, per-file metadata for selection, or synthetic task records for supervised fine-tuning and evaluation. It’s valuable for research comparing selection/synthesis strategies, building code-focused LLMs, or generating benchmarks aligned with implementation intent.

Look elsewhere if you need permissive, unconditional redistribution of original repository content (source repo licenses still apply), or if your use case requires curated domain-specific private code — the dataset derives from public GitHub sources and enforces license and takedown constraints. The dataset is large and designed for pretraining workflows rather than lightweight on-device inference datasets.

Information

  • Websitehuggingface.co
  • OrganizationsOpenBMB
  • AuthorsChengying Tu, Hengyu Zhao, Shuaikang Xue, Zhongming Qu, Jihao Zhou, Xinle Lin, Junshao Guo, Zixuan Fu, Qiang Ma, Jie Zhou
  • Published date2026/09/05

Categories

More Items

Hugging Face

Provides ~86K verifiable-reward RL training samples across Math, Knowledge (STEM), Long-Context, and Code for post-training LLMs; each sample includes a ground-truth and verifier-friendly JSONL format for stable reward signals. Note: code tasks require an external sandbox to execute tests.

Hugging Face

Provides ~483K agent instruction‑tuning trajectories for supervised fine‑tuning, including tool calls, environment feedback, errors/retries and verification across search, code, office and general agent workflows; static snapshots for SFT and mix‑ratio studies.

Hugging Face

Behavior-focused text corpus for LM pretraining, organized into seven Parquet-backed subsets (reasoning, planning, data-science, games, general, format-rewrites, other). Supports streaming, custom sampling, and large-scale dataset pipelines for research and model training.