kimi-k3-in-c is a portable C99 inference engine that runs Kimi K3 on a single CPU with as little as 8 GB of RAM. It has no BLAS, framework, or GPU dependencies, and the entire engine is 176 KB.
Project overview
It demonstrates that a 176 KB zero-dependency C99 engine can run Kimi K3 inference on a single CPU with as little as 8 GB of RAM, removing the BLAS, framework, and GPU dependencies that typical LLM inference engines require.
Project type
Model Runtime
Use cases
Chat Assistants
Deployment
Refer to project documentation
License
Apache-2.0
Best for
Developers and AI engineers who need to run Kimi K3 inference on ordinary CPU-only machines with limited RAM.
Users willing to trade setup effort and disk space for hardware-minimal local inference.
Key capabilities
Presets (ultra/laptop/desktop/workstation/server/max) let users trade RAM for speed by disk-streaming the packed trunk, with identical output at every size.
Limitations and risks
You need 8 GB of RAM minimum and about 1.7 TB of free storage for the 1.56 TB checkpoint plus the 109 GB packed trunk.
The repository contains no model weights; the Kimi K3 checkpoint must be downloaded separately with a HuggingFace token.
The ultra preset is a proof-of-life path for 8 GB-class machines, not an interactive-speed preset.
Setup difficulty is medium: you must build from source and download a 1.56 TB checkpoint before generation.
Getting started
Clone the repository (git clone https://github.com/FareedKhan-dev/kimi-k3-in-c.git), build with make -j, run make test, download the model with ./scripts/download-model.sh ~/k3model, pack the trunk with ./scripts/pack-trunk.sh ~/k3model ~/k3trunk, then generate with ./bin/k3 ~/k3model --trunk ~/k3trunk --preset laptop --tok ~/k3model --prompt "Hello! My name is" --gen 16 --incremental. A HuggingFace token is needed to download the 1.56 TB checkpoint.
Evidence and sources
README: Kimi K3 inference in portable C99.<br>No BLAS. No framework. No GPU.
README: | **RAM** | 8 GB and up | every preset works; more memory is faster, never different |
README: the whole model streams off the disk on every step
README: It is a proof-of-life path for 8 GB-class machines, not an interactive-speed preset
README: K3 is chat-capable. `--chat` uses the official XTML segments and tokenizer control tokens