Pretraining a Mini Kimi K3 on One H200 for $252: A Complete Worklog
joecole · x · 2026-08-21
Dr. Raj Dandekar has released a free e-book documenting the end-to-end pretraining of a 1.02B-parameter replica of Kimi K3 on a single H200 GPU for $252.35 using 5 billion tokens.
Key Highlights:
- Architecture Scaling: Details the arithmetic of shrinking the massive 2.8T parameter K3 to fit one GPU while preserving the 9-layer KDA + 3-layer MLA attention stack and top-6 MoE routing.
- Data Pipeline: Covers corpus preparation (100B+ tokens), 13-gram decontamination for 8 benchmarks, and shard-based resumption support.
- Debugging & Failures: Fixes 4 undocumented issues in the official Moonshot code, addresses a router that killed 94.5% of experts, and logs 3 silent distributed training bugs.
- Performance Hacks: Documents 16 MFU improvement attempts, where only 3 succeeded; notably, FP8 and larger GPUs resulted in worse performance (0.19x).
- Results: Loss dropped from 12.10 to 2.62, backed by 24 benchmark evaluations throughout the run.
More from Infra
- Google Colab hands users a G4 Blackwell GPU, user reports — MickeySteamboat · 2026-11-30
- 19 GitHub Actions Runner Providers Benchmarked: Speed and Cost, Updated Weekly — DanielLockyer · 2026-11-30
- Learn Inference: An Interactive Guide to Serving Generative Models in Production — attentionmech · 2026-11-30
- open-daytona: rootless gVisor sandbox pool runs 1,536 concurrent agent-RL sandboxes on Slurm — victor_explore · 2026-11-30
- Notes on 'Looking Back at Postgres': Extensibility, No WAL, Open Source — sh_reya · 2026-11-30
- NRDC concedes BAAJA makes data centers pay grid costs, countering 'giveaway' claim — zacharynado · 2026-11-30