How to Deploy Kimi Linear 48B A3B Locally
Kimi Linear 48B A3B is an MoE that Moonshot AI released in October 2025, using only 3B parameters per token, and its strength is very long context. 20 of its 27 layers use linear attention, so going from 32K to 1M of context adds only about 8 GB of VRAM at 4-bit. The model card's results compare it with standard-attention models trained the same way, not with today's mainstream models, so the main reason to pick it is long context. It is MIT licensed.
Kimi Linear 48B A3B details
- Min VRAM at 4-bit32 GB · 8K
- Parameters49.1B
- Active params3B
- Max context1M
- Architecture
- MoE
- Experts offloaded
- 4 GB VRAM + 30 GB RAM
- License
- MIT
- Launch date
- Oct 30, 2025
- Vendor
- Moonshot AI
- Hugging Face repo
- moonshotai/Kimi-Linear-48B-A3B-Instruct
- MLX repo (Apple)
- mlx-community/Kimi-Linear-48B-A3B-Instruct-4bit
- Layers
- 27
- Hidden size
- 2,304
- KV heads
- 32
- Head dim
- 72
How much VRAM does Kimi Linear 48B A3B need for local deployment?
| Quantization | WeightsGB | 32K contextGB | 128K contextGB | 256K contextGB | 1M context (max)GB |
|---|---|---|---|---|---|
| 1-bit | 10.9GGUF | 12.2 | 13 | 14.1 | 20.4 |
| 2-bit | 17.9GGUF | 19.2 | 20 | 21.1 | 27.4 |
| 3-bit | 23.9GGUF | 25.2 | 26 | 27.1 | 33.4 |
| 4-bit | 30.1GGUF | 31.4 | 32.2 | 33.3 | 39.6 |
| 5-bit | 35.1GGUF | 36.4 | 37.2 | 38.3 | 44.6 |
| 8-bit | 52.2GGUF | 53.5 | 54.3 | 55.4 | 61.7 |
| BF16/FP16 | 98.3GGUF | 99.6 | 100.4 | 101.5 | 107.8 |
Full calculation rules are on the Methodology page.
Can a single GPU run Kimi Linear 48B A3B?
Yes on a 32GB card at 4-bit; 24GB cards need to drop to 2-bit. The 4-bit weights are about 30 GB, too big for 24GB, but once it fits it's both fast and good at long context: each token uses only 3B parameters, and most layers don't need more memory as the context grows. The RTX 5090 runs 4-bit at about 165 tokens/s, and the 48GB RTX A6000 can open the full 1M context. On 24GB cards, 2-bit loses almost no speed and still leaves a very long context. Skip 3-bit: it looks like a compromise but fills a 24GB card and leaves only about 96K of context, throwing away this model's main strength. 128GB machines run it well too.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $89518 listings | 157.9 | 1M | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 160.5 | 823K |
| $1,799107 listings | 159.5 | 823K | |
| $3,75868 listings | 162.4 | 823K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 95.8 | 1M |
| $4,89916 listings | 151.2 | 1M | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 169.6 | 1M |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 141 | 1M |
| $8,24022 listings | 99.2 | 1M | |
| $8,395123 listings | 181.2 | 1M | |
| $22,50011 listings | 181.2 | 1M |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $89518 listings | 134.9 | 385K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 70.3 | 1M |
| $4,89916 listings | 126.9 | 1M | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 149.6 | 1M |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 115.3 | 1M |
| $8,24022 listings | 73.3 | 1M | |
| $8,395123 listings | 165 | 385K | |
| $22,50011 listings | 165 | 1M |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 47.4 | 1M |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 123.2 | 1M |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 86.6 | 1M |
| $8,24022 listings | 49.8 | 1M | |
| $22,50011 listings | 142 | 1M |
Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.
What PC or server build do you need to run Kimi Linear 48B A3B locally?
If you only have a 16GB card, move some of the experts into system RAM. The table below pairs it with a 16GB Tesla V100: at 4-bit, the experts from about 12 of the 27 layers stay in VRAM, giving about 50 tokens/s on a DDR4 desktop and about 72 on DDR5; an 8-channel DDR4 server with an RTX 3090 does about 113. At 2-bit, the V100 with a DDR5 desktop does about 131 tokens/s.
GeForce RTX 5070 + Desktop DDR5
Home PCGeForce RTX 3090 + Single EPYC DDR4
Best valueGeForce RTX 5070 + Desktop DDR5
Home PCTesla V100 32GB + Dual Xeon E5 DDR4
Budget2 × GeForce RTX 3090 + Single EPYC DDR4
Best valueGeForce RTX 5090 + Single EPYC DDR5
FlagshipDetailed calculation rules are on the Methodology page.
As an eBay Partner, VRAMGlass may be compensated if you buy through the eBay links on this page. The price you pay stays the same.
What to know before running Kimi Linear 48B A3B locally
What linear attention means
With standard attention, every extra token adds another entry to the cache; linear attention (KDA here) stores only a fixed-size state that doesn't grow no matter how long the context gets. Kimi Linear pairs every 3 linear-attention layers with 1 standard-attention layer, and Moonshot says this cuts the context cache by up to 75% and makes generation up to about 6x faster at 1M of context. The same design was later used in Kimi K3 and GLM 5.3 Flash.
Let context drive your quantization choice
Long context is the whole point of this model, so when choosing a quant, work out how much context you need first. On a 24GB card, 2-bit leaves room for over 800K of context, while 3-bit leaves only about 96K. On a 32GB card, use 4-bit; a 48GB card can step up to 5-bit (about 35 GB), which comes to about 45 GB with the full 1M; 8-bit is about 52 GB and needs a 96GB card or a unified-memory machine.
Use a llama.cpp build from mid-February or later
Mainline llama.cpp merged Kimi Linear support on February 6, 2026 (PR #18755). On February 13 it fixed a bug where state got scrambled when llama-server handled multiple requests at once (PR #19531), so use a build from after that; on March 5 another optimization landed (PR #19827), which the author says makes prompt processing about 15% faster. Ollama's official library doesn't have this model.
vLLM version
The vLLM recipe recommends pinning 0.11.2, since 0.12.0 has a known issue that makes Kimi Linear fail at startup. The official example uses four GPUs with the full 1M context; for local single-GPU use, llama.cpp is simpler.
Launch commands
llama.cpp
- NVIDIA
- AMD
- Mac
- CPU
llama-server \ -hf bartowski/moonshotai_Kimi-Linear-48B-A3B-Instruct-GGUF:Q4_K_M \ -c 8192
Short on VRAM? Add --cpu-moe to keep the routed experts in system RAM (about 30 GB needed).
llama-server \ -hf bartowski/moonshotai_Kimi-Linear-48B-A3B-Instruct-GGUF:Q4_K_M \ -c 8192 -ngl 99 --cpu-moe
vLLM
- Linux
- NVIDIA
Follow the deployment guide to prepare the required runtime and hardware.
vllm serve moonshotai/Kimi-Linear-48B-A3B-Instruct \ --trust-remote-code \ --tensor-parallel-size 1
MLX
- Apple Silicon
On a Mac, pip install mlx-lm first; this command downloads the MLX weights from Hugging Face and starts an OpenAI-compatible server.
mlx_lm.server --model mlx-community/Kimi-Linear-48B-A3B-Instruct-4bitOllama
- Windows
- macOS
- Linux
The Ollama library has no official tag for it yet.
File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
Other models in the Kimi family
| Model | Total params | Active params | 4-bit size |
|---|---|---|---|
| 1,000B | 32B | 621.3 GB | |
| 1,000B | 32B | 621.2 GB | |
| 1,000B | 32B | 583.7 GB | |
| 1,000B | 32B | 583.7 GB | |
| 2,800B | 104B | 1,508.7 GB |