What is kimi-k3-in-c?
kimi-k3-in-c is a portable inference engine by Fareed Khan, repository FareedKhan-dev/kimi-k3-in-c. The README describes Kimi K3 inference in C99 with no BLAS, no framework, and no GPU. The license section says Apache 2.0. The repository contains no model weights and grants no rights to them. Kimi K3 itself is Moonshot's, under Moonshot's license, at moonshotai/Kimi-K3.
This is not Kimi K3.1 Pro. That page is the hosted K3.1 Pro product. This repository targets the Kimi K3 checkpoint: 2.78 trillion parameters, a mixture of experts, 16 of 896 experts selected per layer. It is listed in Open-Source AI Developer Stack as an engine you compile, not as a chat product.
Key Features
The README's own measurements, on one 124-core machine with a fast NVMe drive. More memory changes the clock. The README says the output stays byte-identical.
| Machine, as the README labels it | RAM | Time per token |
|---|---|---|
| Ordinary laptop | 8 GB | 26.5 s |
| High-end laptop | 32 GB | 24.2 s |
| Desktop | 64 GB | 19.8 s |
| Heavy workstation | 128 GB+ | 5.6 s |
The same README prints a captured 8 GB run: 8 tokens in 261.5 seconds, 32.69 seconds per token, peak RSS 8.24 GB, and says that capture was on a slower drive so the clock reads higher than the table. A second capture at 127.92 GB peak RSS is 28 tokens in 299.3 seconds, 10.69 seconds per token. Treat both as the project's measurements.
Storage is the gate. The checkpoint is 1.56 TB. The requirements table says about 1.7 TB free: the checkpoint plus a 109 GB packed trunk. The README says 1.45 TB of routed experts are not kept resident. They are read from disk and multiplied from packed 4-bit form. The ultra preset is described as a proof-of-life path for 8 GB-class machines, not a daily driver.
The flags table says prompts may be up to 32,768 tokens and generation is capped at 4,096 tokens. The reference operating system is Linux x86-64. The README also says macOS arm64 and Windows x86-64 build and pass every gate. The toolchain line is GCC 9 or newer, or Clang 10 or newer.
How to Access
Clone https://github.com/FareedKhan-dev/kimi-k3-in-c and run make -j. The README says that needs a C compiler and OpenMP, and that make portable avoids -march=native when you are building for another machine. The tokenizer and config reader build without a checkpoint. A full run needs the Kimi K3 checkpoint, which the README says is hours of download, plus the pack step that writes the trunk.
Do not read the 8 GB figure as "the model fits in 8 GB." The working set can. The files on disk do not. Kimi K3.1 Pro is the API and the weights release this directory covers for Moonshot's newer checkpoint.