AIAny
AI Infra2026
Icon for item

kimi-k3-in-c

Runs Kimi K3 inference on CPU by streaming model weights from storage instead of keeping them all in RAM. The project reports 8.24 GB peak memory, with substantially slower token generation at low-memory settings.

Introduction

A model’s parameter count does not have to equal its RAM requirement. This project demonstrates why: Kimi K3 routes each token through only a small subset of its experts, and the engine streams the dense trunk layer by layer. Its reported 8.24 GB peak memory is a real engineering result, but not a promise of laptop-speed inference: the reference measurements used a high-core-count workstation and fast NVMe storage.

What Sets It Apart
  • It exploits sparsity without shrinking the model. Only 16 of 896 routed experts are selected per MoE layer, so unused experts can stay on disk. The checkpoint remains about 1.56 TB; the approach changes where weights reside, not which weights the model uses.
  • It streams the always-used trunk too. A packed file lets the engine keep a configurable prefix of layers in memory and cycle the rest through a buffer. This turns memory into a speed-versus-capacity dial rather than a fixed minimum.
  • It prioritizes reproducible output. Custom C kernels avoid BLAS and preserve a fixed arithmetic order; the project reports matching output across memory budgets and tests against PyTorch references. That makes the memory trade-off easier to evaluate without conflating it with a model change.
  • Storage is the limiting resource. At the smallest budget, each token can require more than 100 GB of model reads and take tens of seconds. Fast local storage and ample disk space matter more than the small executable might suggest.
Who It’s For

Great fit if you want to study MoE inference, CPU-only execution, weight streaming, or exactness-preserving memory trade-offs. Look elsewhere if you need interactive throughput, a packaged chat application, or a lightweight download: the released checkpoint is enormous, low-memory generation is slow, and the project is an inference engine rather than a hosted service. The 8 GB figure was measured under a memory limit on a 124-core workstation, not established by testing an ordinary 8 GB laptop.

Information

  • Websitegithub.com
  • AuthorsFareed Khan
  • Published date2026/08/01

Categories

More Items

Streams long videos using chunk-wise causal attention and a multi-GPU pipeline. Its five-step model improves motion while maintaining visual quality; on eight H200 GPUs, end-to-end throughput reaches 134.8 FPS.

GitHub
AI Infra2025

Simplifies Git worktree management for parallel AI coding agents, with hooks, shared build caches, and merge workflows to reduce the overhead of working across branches.

GitHub
AI Deploy2026

Runs large open-weight MoE models locally by coordinating CPU and GPU resources, caching experts, and reallocating VRAM at runtime. It targets consumer hardware, from laptops to workstation GPUs.