SOMEONE JUST RAN A 2.78 TRILLION PARAMETER MODEL ON A SINGLE CPU WITH JUST 8 GB OF RAM
No GPU. No framework. Just six files of portable C99.
And he made it 100% Open Source.
Kimi K3 normally comes with a brutal memory problem: its 2.78T parameters would occupy around 5.56 TB at full precision.
But K3 is a mixture-of-experts model.
Only 16 of its 896 experts per layer are activated for each token.
kimi-k3-in-c exploits that architecture to the extreme:
→ 93% of the model stays out of memory, read from NVMe disk only when needed
→ Weights are stored and multiplied in compressed 4-bit form
→ The dense trunk streams one layer at a time, making RAM a choice, not a limit
The whole program is just 176 KB of C code with zero external dependencies.
BEWARE it’s slow: roughly 32 seconds per token at 8 GB RAM.
You also need 1.7 TB of free disk space.
But whether you use 8 GB or 224 GB, it produces byte-identical output.
More memory just speeds up the clock.
Incredible proof that bridging the gap between a datacenter and a laptop comes down to where the bytes live.
100% free and open-source.
Repo link in 🧵↓