The Stack v3
Hugging Face has published a fresh crawl of 224 million public GitHub repositories, giving open coding models roughly nine times the training text they have had since 2024.
The pile of open code that anyone can train an AI model on has been the same one since 2024, holding about 550 billion tokens of source text (tokens being the word-sized units a model reads). Hugging Face has now published a replacement: a fresh crawl of 224 million public GitHub repositories, with about 4.9 trillion tokens of it filtered into a ready-to-train subset and released under an attribution-only license.
Its maintainers are pitching it for cyber defense: open models that can read a whole codebase looking for what is wrong with it.
Not all of that ninefold jump is new code. The previous version deduplicated itself by hashing small chunks of each file, and the chunking was done wrong, so it discarded far more supposedly-duplicate code than it should have. Correcting that brings C++ back at fifteen times its old volume, TypeScript at seven and a half, Rust at seven. Open coding models have spent two years learning from an archive that was accidentally too small.
The other change is duller and probably matters more day to day. The old release grouped files by repository but shipped only identifiers pointing at copies stored on someone else's servers, so getting the actual code meant a second scavenger hunt. The new one carries the decoded text inline: each row is a repository with its files sitting in it, and a training script can read it straight off the shelf.
It is a single snapshot of default branches, so there is no commit history, and the maintainers say plainly that malicious code is in there along with everything else. Even so, most serious open coding models of the next couple of years will be trained on some version of this, which makes the botched hashing in the last one worth remembering: a fair share of what looks like a data wall turns out to be bookkeeping.
The dataset card's per-language table is the fast orientation, and you can stream a single language's shard in a couple of lines of Python before deciding whether 15.9 terabytes is worth the disk.
Open the repo at huggingface.co →The lenses
The facts
How this connects
Tap a node to open it