Kimi K2.7 Code — VRAM, Speed & Local Setup

Written by Jakub Rusinowski · Last updated August 15, 2026

Model libraryKimi K2.5 / K2.6 / K2.7 → Kimi K2.7 Code

Moonshot's coding-specialised build, layered directly on top of K2.6: 1 trillion total parameters with 32B active per token across 384 experts (8 selected plus 1 shared), 61 layers, MLA attention, and a 400M-parameter MoonViT encoder for image and video input. Reported ~30% fewer reasoning tokens than K2.6 at higher coding scores. Weights ship in native INT4 via quantization-aware training. 256K context. At ~340 GB even in INT4 this is a datacenter deployment, not a desktop one — most people reach it through the API.

Kimi K2.7 Code needs about 605 GB of VRAM at INT4 (native) — quantized weights plus framework overhead, before any KV cache. On Apple Silicon that figure comes out of unified memory.

Specifications

Parameters1 Trillion (32B active)
Context window262,144
ArchitectureMoE (384 experts, MLA) + MoonViT vision
ProviderMoonshot AI
LicenceModified MIT (attribution above ~100M MAU / ~$20M monthly revenue)
Specified atINT4 (native)
System RAM768 GB
Record updated2026-08-15

Licence

Modified MITcommercial use permitted. Commercial use permitted. No usage restrictions beyond attribution.

VRAM and Speed by Quantization

Modelled on a reference NVIDIA RTX 4090 (24 GB), with no KV cache (this record has no published architecture). Speed figures are ESTIMATES from the memory-bandwidth roofline described on the methodology page, not benchmarks we ran — rows marked measured come from published or reader-submitted runs. VRAM here includes the KV cache, so it reads higher than the headline figure above, which does not.

QuantWeightsVRAM neededEst. speedFit on 24 GB
Q2_K328.8 GB329.6 GBWon't fit
Q3_K_M426.3 GB427.1 GBWon't fit
Q4_K_M603.8 GB604.5 GBWon't fit
Q5_K_M708.8 GB709.5 GBWon't fit
Q6_K820.0 GB820.8 GBWon't fit
Q8_01062.5 GB1063.3 GBWon't fit
F162000.0 GB2000.8 GBWon't fit

Want the memory numbers alone, at every quantization level and your own context length? Use the Kimi K2.7 Code VRAM calculator.

Deploy in the Cloud NowRunPod

or compare on Vast.ai

As an Amazon Associate we earn from qualifying purchases. Cloud GPU links are referral links — we may earn a commission at no extra cost to you.

How to Run Kimi K2.7 Code

Install Ollama, then run:

ollama run kimi-k2

Weights on Hugging Face: moonshotai/Kimi-K2.7-Code.

Best for: agentic coding, software engineering, repo level, multimodal, cloud api.

Other Kimi K2.5 / K2.6 / K2.7 Sizes

Kimi K2.7 Code — Frequently Asked Questions

How much VRAM does Kimi K2.7 Code need?
About 605 GB at INT4 (native) — quantized weights plus framework overhead, before any KV cache. The cache grows with context length and is added on top; the table above folds it in. Apple Silicon counts unified memory toward the same figure.
Does Kimi K2.7 Code run on an RTX 4090 (24 GB)?
No. Kimi K2.7 Code needs about 605 GB at INT4 (native), more than a single RTX 4090's 24 GB. It needs a larger card, several GPUs, or Apple Silicon with enough unified memory — or it runs with part of the weights offloaded to system RAM, which is much slower.
How do I run Kimi K2.7 Code locally?
Install Ollama and run `ollama run kimi-k2`. That pulls the weights and starts a local OpenAI-compatible endpoint; after the download nothing leaves the machine.
What other sizes does Kimi K2.5 / K2.6 / K2.7 come in?
Kimi K2.5 (605 GB), Kimi K2.6 (605 GB), Kimi K2.5 1T (32B Active) (605 GB), Kimi K2.7 Code (605 GB). Every size shares the family's training and licence; the larger ones score higher and need proportionally more memory.

← All Kimi K2.5 / K2.6 / K2.7 models | VRAM calculator | Check your own hardware