$ ls ./menu

© 2025 ESSA MAMDANI

LIVE
GPT-5.6 Sol Ultrafast: What Cerebras-Powered 750 TPS Means for AI AgentsOpenAI Assistants API Shutdown: 2026 Migration GuideScriptC Compiles TypeScript for iOS and AndroidBest Codex and Claude Code Plugins in 2026OpenClaw 2026.8.1-beta.2: Security, Runtime Switching, and Backup GuideAgentic Resource Discovery (ARD): A Practical Guide for AI Agents, MCP, and SkillsGPT-5.6 Sol Ultrafast: What Cerebras-Powered 750 TPS Means for AI AgentsOpenAI Assistants API Shutdown: 2026 Migration GuideScriptC Compiles TypeScript for iOS and AndroidBest Codex and Claude Code Plugins in 2026OpenClaw 2026.8.1-beta.2: Security, Runtime Switching, and Backup GuideAgentic Resource Discovery (ARD): A Practical Guide for AI Agents, MCP, and SkillsGPT-5.6 Sol Ultrafast: What Cerebras-Powered 750 TPS Means for AI AgentsOpenAI Assistants API Shutdown: 2026 Migration GuideScriptC Compiles TypeScript for iOS and AndroidBest Codex and Claude Code Plugins in 2026OpenClaw 2026.8.1-beta.2: Security, Runtime Switching, and Backup GuideAgentic Resource Discovery (ARD): A Practical Guide for AI Agents, MCP, and SkillsGPT-5.6 Sol Ultrafast: What Cerebras-Powered 750 TPS Means for AI AgentsOpenAI Assistants API Shutdown: 2026 Migration GuideScriptC Compiles TypeScript for iOS and AndroidBest Codex and Claude Code Plugins in 2026OpenClaw 2026.8.1-beta.2: Security, Runtime Switching, and Backup GuideAgentic Resource Discovery (ARD): A Practical Guide for AI Agents, MCP, and Skills
cd ../blog
7 min read
Artificial Intelligence

Kimi K3 in C: How a 2.78-Trillion-Parameter Model Runs on One CPU and 8GB RAM

> kimi-k3-in-c runs Kimi K3 — a 2.78T-parameter MoE model — on a single CPU with 8GB RAM using portable C99, zero GPUs, and on-demand expert weight streaming.

ShareXLinkedIn

🎧 Listen — ~7 min

Ready · Kimi K3 in C: How a 2.78-Trillio

0:00 / 7:00
Kimi K3 in C: How a 2.78-Trillion-Parameter Model Runs on One CPU and 8GB RAM
Verified by Essa Mamdani

A new open-source project called kimi-k3-in-c is making the rounds among AI engineers and edge-deployment enthusiasts. It claims to run Moonshot AI's Kimi K3 — a 2.78-trillion-parameter Mixture-of-Experts (MoE) model — on a single CPU with only 8GB of RAM. No GPU, no BLAS library, no PyTorch or TensorFlow. Just portable C99.

The README screenshot that sparked the discussion is blunt: 2.78T parameters, 1.56 TB checkpoint on disk, 8.24 GB measured peak memory, 176 KB engine size, zero GPUs. It sounds impossible until you understand the trick.

This article breaks down how the project works, why it matters, what it can and cannot do, and what it means for the future of large-model inference on commodity hardware.

What is kimi-k3-in-c?

kimi-k3-in-c is an inference engine written in pure C99 by developer FareedKhan-dev. It is hosted on GitHub under the Apache 2.0 license. The project is designed to demonstrate that a trillion-parameter MoE model does not necessarily require a server farm of GPUs.

Key facts from the repository:

PropertyValue
ModelKimi K3 (2.78T total parameters)
Implementation languagePortable C99
DependenciesNone — no BLAS, no framework, no GPU
Disk checkpoint1.56 TB
Peak measured RAM8.24 GB
Engine size176 KB
GPUs0
LicenseApache-2.0
Version0.1.0

The headline is not speed. The headline is feasibility. The project answers the question: Can you run a frontier-scale model on a normal computer? The answer is yes — slowly.

How is this even possible?

Kimi K3 is a Mixture-of-Experts (MoE) model. In an MoE architecture, only a small fraction of the total parameters is active for any given token. The model is divided into many "expert" sub-networks, and a router decides which experts to use for each input.

The trick behind kimi-k3-in-c is on-demand weight streaming:

  1. Most weights stay on disk. The 1.45 TB of routed expert weights live on a fast NVMe SSD.
  2. Only active experts are loaded. When a token is processed, the router selects the experts needed for that token, and only those weights are streamed into RAM.
  3. A dense trunk stays resident. A smaller shared trunk (around 108 GB) and essential runtime components (about 5.3 GB) remain in memory.
  4. Memory usage is bounded. The implementation carefully limits the working set so that peak RSS stays near 8 GB.

This is the opposite of traditional inference, where the entire model or large shards are loaded into GPU VRAM. Here, the SSD becomes the model's backing store, and RAM acts as a cache for the currently active experts.

Performance: slow but correct

The repository's own benchmarks show that the project is correct, not fast.

Example run on the "laptop" preset:

bash
1$ ./bin/k3 ~/k3model --trunk ~/k3trunk --preset laptop \
2    --tok ~/k3model --prompt "The capital of France is" --gen 8 --incremental
3--- generated text ---
4Paris.
58 tokens in 261.5 s, 32.69 s/token average
6PEAK RSS for the whole run: 8.24 GB

That is roughly 33 seconds per token on an 8 GB memory budget. Increasing the memory budget to 128 GB improves throughput to around 20 seconds per token. For comparison, a GPU-hosted version of Kimi K3 would generate tokens in milliseconds.

A second example with the "server" preset and a coding prompt:

bash
1$ ./bin/k3 ~/k3model --trunk ~/k3trunk --preset server \
2    --tok ~/k3model --prompt "def fibonacci(n):" --gen 28 --incremental
328 tokens in 299.3 s, 10.69 s/token average
4PEAK RSS for the whole run: 127.92 GB

With more memory, the engine can keep more experts resident, and latency per token drops. But it is still not practical for real-time applications.

What are the limitations?

The project is explicit about its limitations. It is a research and educational demonstration, not a production inference server.

Current limitations include:

  • Greedy decoding only. No temperature, top-p, or top-k sampling.
  • No chat template. The model acts as a base model, producing continuations rather than assistant-style replies.
  • No vision encoder. Kimi K3 is natively multimodal, but this implementation only handles text.
  • No GPU acceleration. Everything runs on the CPU.
  • Very slow token generation. Seconds per token, not tokens per second.
  • Requires a large SSD. You still need 1.56 TB of free disk space for the checkpoint.

These limitations are trade-offs. By stripping away sampling, chat formatting, vision, and GPU kernels, the author kept the engine tiny and portable. The whole engine is only 176 KB.

Why does this matter?

At first glance, 33 seconds per token seems useless. But kimi-k3-in-c matters for several reasons:

1. It redefines minimum hardware for frontier models

Until recently, running a 2.78T model required multiple high-end GPUs and hundreds of gigabytes of VRAM. This project shows that, with the right architecture and clever memory management, the minimum viable hardware can be a laptop with an NVMe SSD.

2. It validates MoE as a path to democratization

MoE models are often criticized for being memory-hungry. This project turns that argument around: because only a fraction of experts is active, MoE models can be far more disk- and memory-efficient than dense models of the same total parameter count.

3. It opens new research directions

The technique of streaming weights from SSD is not new, but applying it to a 2.78T open-weight frontier model in 176 KB of C code is. Researchers can now experiment with offloading strategies, quantization, speculative decoding, and custom memory schedulers on real frontier weights.

4. It challenges the cloud-first assumption

If a 2.78T model can run locally, even slowly, then privacy-sensitive use cases — legal document review, medical analysis, classified research — have a new option. You do not have to send data to an API if you are willing to wait.

About Kimi K3 itself

Kimi K3 is Moonshot AI's flagship open-weights model. It was released in July 2026 with fully open weights.

Key specs:

  • Total parameters: 2.78 trillion
  • Active parameters per token: ~104 billion
  • Architecture: Mixture-of-Experts (MoE)
  • Context window: 1 million tokens
  • Native capabilities: Text, vision, and long-horizon reasoning
  • Special features: Kimi Delta Attention (KDA) and Attention Residuals (AttnRes)
  • License: Open weights

Kimi K3 was already notable for being a frontier model that anyone could download. The kimi-k3-in-c project extends that openness by making it runnable on hardware that costs a few thousand dollars instead of a few hundred thousand.

How to try it yourself

The repository provides build instructions for Linux x86-64. You will need:

  • A Linux machine
  • A C99 compiler (such as GCC or Clang)
  • At least 1.56 TB of free disk space for the checkpoint
  • At least 8 GB of RAM for the laptop preset
  • Patience

Basic usage:

bash
1$ ./bin/k3 ~/k3model --trunk ~/k3trunk --preset laptop \
2    --tok ~/k3model --prompt "Your prompt here" --gen 8 --incremental

The --preset laptop flag is what keeps memory near 8 GB. The --preset server flag allows more memory usage and faster generation.

Frequently asked questions

Can I use this for real work? Not really. It is a proof of concept. Token generation is far too slow for interactive use.

Does it require an NVIDIA GPU? No. It explicitly uses zero GPUs.

Why is it so small? The engine is only 176 KB because it avoids frameworks like PyTorch, ONNX, or TensorFlow. It implements the minimal kernels needed for Kimi K3 inference in C.

Where do I get the model weights? The project uses the open Kimi K3 weights from Moonshot AI. You still need to download the 1.56 TB checkpoint separately.

Is the output quality the same as the full model? The math is the same, so the model itself is unchanged. However, the project uses greedy decoding and no chat template, so the user experience differs from a hosted chat API.

Can this run on macOS or Windows? The repository currently targets Linux x86-64. Portable C99 means cross-platform compilation is possible, but platform-specific build work may be needed.

Will it get faster? The project has a roadmap, and future versions may add quantization, speculative decoding, or better SSD prefetching. But the fundamental constraint is disk bandwidth, not just CPU speed.

The bottom line

kimi-k3-in-c is not a production inference engine. It is a statement: a 2.78-trillion-parameter frontier model can run on a single CPU with 8 GB of RAM. By streaming MoE expert weights from disk on demand, the project shrinks the active memory footprint by orders of magnitude.

For researchers, it is a new sandbox for studying large-model inference. For engineers, it is a reminder that GPU clusters are not the only way to reason about frontier AI. For everyone else, it is a fascinating look at how far portable C code can stretch a trillion-parameter model.

If you have a fast SSD, a free weekend, and a lot of patience, you can run one of the largest open AI models ever released on hardware that fits under your arm.


Sources: kimi-k3-in-c GitHub repository, Moonshot AI Kimi K3, Kimi platform documentation. Performance figures are from the project's README and documentation.

Keep reading

#Kimi K3#Moonshot AI#MoE#Edge AI#Open Source AI#C Programming#CPU Inference#2026
ShareXLinkedIn

⚡ Daily AI Model Drop — Get Kimi K3 benchmarks before Twitter

Join 2,400+ AI engineers. 1 email/day, no spam, unsubscribe anytime

Comments