explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR — What People Are Asking
  • v1 → v2 → v3 at a Glance
  • Which Split to Use
  • Why Builders Care
  • Practical Training Recipes (Not From-Scratch Fantasy)
  • License, PII, and Compliance Reality Check
  • Storage, Networking, and Pipeline Tips
  • How Stack v3 Fits the 2026 Open Stack
  • Migration Notes from v2
  • FAQ-Style Edge Cases Builders Hit
  • Honest Limitations
  • Bottom Line
  • Related on explainx.ai
← Back to blog

explainx / blog

The Stack v3: 5 Trillion Open Code Tokens from Hugging Face

Jul 23, 2026: Hugging Face + BigCode ship The Stack v3 — ~5T deduped code tokens, 114 TB crawl, 770 languages, contents inline. v2→v3 for code LLMs.

Jul 24, 2026·8 min read·Yash Thakker
Hugging FaceThe StackOpen SourceCode DatasetsBigCode
go deep
The Stack v3: 5 Trillion Open Code Tokens from Hugging Face

On July 23, 2026, Hugging Face and BigCode released The Stack v3 — billed as the largest open code dataset yet: on the order of ~5 trillion deduplicated, filtered training tokens, distilled from a ~114 TB GitHub crawl spanning 770 languages and 224 million repositories.

The killer UX fix: contents are inline. v2’s “cool dataset, where’s the code?” complaint is gone.

TL;DR — What People Are Asking

QuestionAnswer
Train size?~15.9 TB / ~4.9–5T tokens · 713 langs
Full corpus?~114 TB · 770 langs · 224M repos
Crawl cutoff?GitHub re-crawl through Aug 2025
vs v2 train?v2 ~550B tokens / 2 TB → ~10× tokens
Contents?Inline (no SWH ID treasure hunt)
License stance?Permissive focus · restrictive licenses excluded
Primary cards?stack-v3-train · stack-v3-full bucket
Use for?Code LLM / agent / cyber-defense pretraining
Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.

v1 → v2 → v3 at a Glance

Stack v1Stack v2Stack v3
Cutoff202220232025
Full6.4 TB67.5 TB~113.7–114 TB
Train~200B tok2.0 TB / ~550B15.9 TB / ~4.9–5T
Languages (train / full)358618713 / 770

Language growth examples called out in the release: C++ ×15, TypeScript ×7.5, Rust ×7, Python ×4.8 vs prior filtered sets — partly two more years of open source, partly a dedup bug fix discovered in v2.

Which Split to Use

DatasetBest for
HuggingFaceCode/stack-v3-trainPoint load_dataset and train — near-dedup, heuristic filters, PII redaction, contents inline
HuggingFaceCode/stack-v3-fullResearch on raw corpus, custom mixes, cluster IDs, stubs for excluded files (~114 TB bucket)

Citation (Lozhkov et al., 2026) ships on the dataset card — keep it in papers and model cards.

Why Builders Care

  1. Repository context — v3 is built for full-repo pretraining, not only single-file soup. That matches how coding agents actually work.
  2. Reproducibility — open weights without open data is half a story; Stack v3 is the data half for code (Echo-style open stacks need corpora this big).
  3. Cyber + agents — dense multi-language code is also fuel for defense models and static-analysis assistants — see Sakana Fugu cyber orchestration for the harness side.
  4. Cost reality — 5T tokens is a cluster problem. Most teams will continual-pretrain or distill, not train from scratch.

Practical Training Recipes (Not From-Scratch Fantasy)

Very few organizations will pretrain a 100B+ coder on all ~5T tokens end-to-end. More realistic patterns:

PatternWhat you doWhen it fits
Continual pretrainStart from an open base (GLM, Kimi, Qwen, DeepSeek-class) and mix Stack v3 shardsYou need domain/language lift without full retrain cost
Repo-pack SFTSample full repositories, pack file trees into long contextsAgent harnesses that already reason over multi-file edits
Language specialty mixesUpweight Rust/TS/Python slices; downweight noise languagesProduct only ships in a few stacks
Cyber / vuln corporaFilter for security-relevant paths and test codeDefense models — pair with Fugu-style orchestration
Distillation targetsUse Stack v3 to generate synthetic traces, then train a small studentEdge / cost-sensitive serving

Always hold out your evals — SWE-bench-like suites, internal PR fix rates, compile/test loops. Chartography-style public benches for vision taught the same lesson as code: tooling and data mix often beat “wait for the next closed model.”

License, PII, and Compliance Reality Check

The Stack v3 release emphasizes permissive licenses and exclusion of restrictively licensed code, plus PII redaction on the train split. That is necessary but not sufficient for regulated buyers:

  1. Re-scan — Run your own license classifiers; do not outsource judgment to a dataset card paragraph.
  2. PII residual risk — Redaction is heuristic. Treat accidental secrets in comments/history as expected noise and scrub again if you fine-tune for customer support or enterprise code.
  3. Opt-out / takedown — BigCode-era datasets historically honored developer opt-outs; confirm the v3 process on the Hub card before you assume yesterday’s list still applies.
  4. Training canaries — If you publish models, document Stack v3 provenance so auditors can reproduce claims.
  5. Geographic policy — Some enterprises ban training on public GitHub crawls entirely; Stack v3 does not change that policy — it only makes the crawl transparent.

Storage, Networking, and Pipeline Tips

  • Prefer stack-v3-train first. Prove your tokenizer, packing, and loss curves on the filtered set before burning weeks on the full bucket.
  • Plan object storage early. 15.9 TB train is awkward on a single workstation SSD; use parallel readers and sharded caches.
  • Watch Hub rate limits. Enterprise mirrors or regional replicas save wall-clock when twenty GPUs starve waiting on HTTPS.
  • Dedup again for your mix. Near-dedup globally ≠ optimal for your language mix; re-cluster if you oversample popular mono-repos.
  • Log data cards. Record commit hashes / Hub revisions; Hub datasets move.

How Stack v3 Fits the 2026 Open Stack

Open weights alone are no longer the scarce story — Echo, Fireworks routing studies, and Asia-origin models already push quality/cost frontiers. What remains scarce is transparent, large, permissively framed code data with repository structure. Stack v3 is that substrate. Closed labs will keep proprietary crawls; open labs finally have a default answer when someone asks “what did you train the coder on?”

Pair Stack v3 with honest evals and a router, and you get closer to the “right model per task” thesis without renting a frontier default for every autocomplete.

Migration Notes from v2

v2 painv3 fix
Fetch contents via Software Heritage IDsSources embedded
Stale 2023 snapshot of older crawlsFresh Aug 2025 crawl
~550B train tokens~5T filtered tokens
Dedup quirksRelease notes call out a v2 dedup bug discovered and fixed

Still run your own license scanners and PII checks for regulated deployments. “Permissive release” ≠ “your counsel waived review.”

FAQ-Style Edge Cases Builders Hit

Can I train a commercial coding agent only on stack-v3-train? Many teams will, but you still need instruction data, tool-use traces, and product evals. Stack v3 is the pretraining substrate, not the whole recipe.

Should I include the full 114 TB bucket? Only if you are studying dedup science or rebuilding filters. Production trainers almost always start from the filtered train split and optionally blend a few custom private corpora.

How does this interact with Asia open-weight models? Strongly. Models like GLM and Kimi already compete on coding; Stack v3 gives Western and open labs a shared public crawl to close data gaps without pretending proprietary GitHub dumps are reproducible (GLM context).

Is v3 “done”? Hub datasets revise. Pin revisions in your training manifests the way you pin Docker digests.

Honest Limitations

  • Training cost — storage + GPU for 15.9 TB train is non-trivial; budget networking and object storage before GPUs.
  • Web-sourced charts/code provenance — respect dataset card and original rights holders.
  • Not a chat model — this is pretraining fuel; you still need SFT/RL and product evals.
  • Fork filter (5+ stars) — niche private-style forks may be underrepresented.
  • Hub bandwidth — plan mirrors / regional caches for full-bucket pulls.
  • License residual risk — permissive framing still requires your own classifiers for regulated training.

Bottom Line

The Stack v3 is the open-code community’s self-contained answer to “we need 2025-scale GitHub without black-box crawls.” If you train code models or agents in the open, stack-v3-train is the new default starting point — and stack-v3-full is the research substrate.

Download the train split, run a smoke continual-pretrain on a single language slice, and measure your internal coding agent suite before you celebrate the five-trillion headline. The number is real; the win is whether your harness gets better. Teams already routing open weights through Echo or Fireworks-style studies finally have a public corpus that matches the ambition of those stacks.

Related on explainx.ai

  • Echo TraceML — open-weight ensembles
  • Kimi K2.7-Code open coding model
  • Fireworks — Kimi K3 + Fable routing study
  • Sakana Fugu cyber orchestration
  • What is an agent harness?
  • GLM-5.2 China open-weight response
  • OpenRouter Fusion MoA debate
  • Wafer GLM-5.2 on AMD MI355X

Sources: Hugging Face / BigCode Stack v3 release notes · HuggingFaceCode/stack-v3-train · stack-v3-full bucket card · Lozhkov et al. 2026 citation


Token counts, language tallies, and license filters reflect the July 23, 2026 Stack v3 dataset cards. Re-check Hub revisions before starting a multi-week pretrain.

Spotted something out of date? Let us know.
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Aug 13, 2026

Transformers.js Crosses 10M Monthly Downloads: What It Means for Builders

Hugging Face's Transformers.js — the JS port that runs ONNX models directly in the browser via WebGPU or WASM, no server round-trip — now moves more than 10 million combined npm downloads a month. Here's the verified data, how it stacks up against WebLLM and ONNX Runtime Web, and a minimal example to start building today.

Jul 31, 2026

Hugging Face Speech-to-Speech: Build Open-Source Voice Agents

Hugging Face's speech-to-speech is a modular VAD-STT-LLM-TTS voice pipeline that speaks the OpenAI Realtime protocol, so any Realtime client can point at it unchanged — hosted, self-hosted, or fully local. It already powers thousands of Reachy Mini robots in production. explainx.ai breaks down the architecture, backend options, and the new LLM proxy for concurrent agent work.

Jul 23, 2026

Petals Resurfaces: Why BitTorrent-Style LLM Inference Still Struggles

A 2022 Hugging Face/BigScience project called Petals — run large language models at home, BitTorrent-style — hit the Hacker News front page again in 2026, reigniting a debate about whether peer-to-peer LLM inference is finally viable now that models are smaller, quantization is better, and newer projects like Mesh LLM and AI Horde have taken different approaches to the same problem.