#50 · Primary category: Inference & Local Deploy

kimi-k3-in-c

avx2 c99 cpu-inference deep-learning from-scratch inference-engine kimi-k3 linear-attention llm llm-inference machine-learning memory-efficient mixture-of-experts moe mxfp4 quantization simd systems-programming transformer zero-dependencies

A 2.78-trillion-parameter Kimi K3 running inference on a single CPU in 8.24 GB of RAM. Portable C99: no BLAS, no framework, no GPU.

Project last updated:08/26/26

GitHub Stars

6.7K

Forks

1.1K

Contributors

10

License

Apache-2.0

Why we included this project

Running a 2.78-trillion-parameter model is normally a job for a cluster, but this project does it on a single CPU with about 8 GB of RAM. It is a from-scratch inference engine in portable C99, with no BLAS, no deep-learning framework, and no GPU. The trick is that it streams most of the 1.56 TB checkpoint off disk on every step and keeps only a selected trunk resident in memory, so output stays byte-identical no matter how much memory you give it; the budget only changes the clock. The cost is speed and convenience: this is the base model, so you get continuations rather than chat replies, and each token takes seconds instead of milliseconds. For systems programmers curious about memory-efficient MoE inference, packed 4-bit expert routing, or how far a plain CPU can be pushed, that trade-off is the point.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category