VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase. As an Amazon Associate I earn from qualifying purchases.We may earn from eBay and Amazon links.Learn more

GPUs tracked64Price history95 daysPrice points (24h)30,620 pointsBiggest 24h dropGeForce RTX 5090 D-6.1%Biggest 24h riseRadeon RX 7900 XTX+5.7%Updated
$ USD

Run Kimi K2.7 Code Locally: VRAM & GPU Requirements

Kimi K2.7 Code is Moonshot AI's June 2026 coding model trained on K2.6, with nearly the same architecture and size. It uses about 30% fewer thinking tokens. When local hardware runs at only a few dozen tokens/s, that cuts wait times by roughly 30%. It only supports thinking mode, so go back to K2.6 if you need instant answers.

Kimi K2.7 Code details

  • Min VRAM at 4-bit (8K context)586 GB
  • Parameters1,000B
  • Active params32B
  • Max context256K
Architecture
MoE
Experts offloaded
10 GB VRAM + 578 GB RAM
Launch date
Jun 12, 2026
Vendor
Moonshot AI
Hugging Face repo
moonshotai/Kimi-K2.7-Code
NVFP4 repo (Blackwell)
nvidia/Kimi-K2.7-Code-NVFP4
Layers
61
Hidden size
7,168
KV heads
64
Head dim
192

How much VRAM does Kimi K2.7 Code need?

The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.

QuantizationWeightsGB8K contextGB32K contextGB128K contextGB256K context (max)GB
1-bit303.9GGUF305.5307.3314.2323.4
2-bit339.5GGUF341.1342.9349.8359
3-bit463.9GGUF465.5467.3474.2483.4
4-bit583.7GGUF585.3587.1594603.2
5-bit—————
8-bit594.5GGUF596.1597.9604.8614
BF16/FP162,100est.2,101.62,103.42,110.32,119.5

Full calculation rules are on the Methodology page.

Can a single GPU run Kimi K2.7 Code?

No. Kimi K2.7 Code is K2.6 with more training and the same 1T parameters, so 2-bit takes about 340 GB, far beyond any GPU or 128GB machine. The 512GB Mac Studio M3 Ultra is the only standalone machine that holds it, and dropping to 1-bit saves only about 35 GB. Because it always outputs a long reasoning chain before writing code, generation speed directly sets your wait time. Faster setups require multiple GPUs or a big-memory server, where 4-bit and lossless 8-bit need the same hardware, so pick 8-bit.

The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.

eBay
DevicePriceSpeed t/sMax context
Mac Studio M3 Ultra 512GBWhole system · 512 GB$18,79714 listings44.5256K

Only common GPUs and systems are listed, from cheapest to most expensive.

How many GPUs do you need to run Kimi K2.7 Code?

For Kimi K2.7 Code on multiple GPUs, the practical coding setup is four 96GB RTX PRO 6000 cards at 2-bit, running at about 74 tokens/s with roughly 30% less thinking wait than K2.6. Eight 48GB RTX A6000s hold 2-bit at about half the speed, while 4-bit needs eight RTX PRO 6000s at about 52 tokens/s. Official vLLM validation covers only eight H200s. For text-only coding, launch without the vision part to free VRAM for context.

eBay
DeviceCardsTotal priceTotal VRAMSpeed t/sTotal power
Mac Studio M3 Ultra 512GB512 GB per unit2 units$37,5941,024 GB27.6960 W
RTX PRO 600096 GB per card8 cards$152,000768 GB52.34,800 W
A100 80GB PCIe80 GB per card8 cards$159,192640 GB55.42,400 W

Mac Studios link up over Thunderbolt 5 and run with MLX or exo; vLLM doesn't support them. Full calculation rules are on the Methodology page.

What PC or server build do you need to run Kimi K2.7 Code locally?

With RAM offload, Kimi K2.7 Code matches K2.6's hardware and speeds: a 12-channel DDR5 server with one RTX PRO 6000 runs at about 46 tokens/s at 2-bit, or about 27 tokens/s at 4-bit with every slot filled for 768GB of RAM. At these speeds, 30% fewer thinking tokens is a real gain: at 4-bit, 10,000 thinking tokens take about 6 minutes, so cutting 30% saves roughly 2 minutes.

eBay

Tesla V100 32GB + Dual Xeon E5 8-GPU server

Budget
Generation speed6.2t/s
Memory bandwidth137GB/s
GPU
Tesla V100 32GB2 / 61 expert layers in 32 GB VRAM
$1,299
RAM
768 GB DDR4-213324 × 32 GB sticks
$3,264
CPU
2 × Intel Xeon E5-2680 v428 cores / 56 threads · 8-channel in total
$40
Barebone
Supermicro SYS-4028GR-TR8 GPU slots · 24 DIMM slots
$1,300
PSU
Built-in 4 × 1,600 W
Included
Reference build price$5,903

GeForce RTX 5090 + Dual EPYC DDR5

Flagship
Generation speed31.8t/s
Memory bandwidth922GB/s
GPU
GeForce RTX 50902 / 61 expert layers in 32 GB VRAM
$7,370
RAM
768 GB DDR5-480024 × 32 GB sticks
$24,000
CPU
2 × AMD EPYC 935464 cores / 128 threads · 24-channel in total
$3,410
Board
Gigabyte MZ73-LM024 DIMM slots
$1,300
PSU
Seasonic PRIME PX-16001,600 W
$502
Reference build price$36,582

4 × RTX PRO 6000 + Dual EPYC DDR5

Giant models
Generation speed44.1t/s
Memory bandwidth922GB/s
GPU
4 × RTX PRO 600042 / 61 expert layers in 384 GB VRAM
$76,000
RAM
384 GB DDR5-480024 × 16 GB sticks
$13,200
CPU
2 × AMD EPYC 935464 cores / 128 threads · 24-channel in total
$3,410
Board
Gigabyte MZ73-LM024 DIMM slots
$1,300
PSU
2 × Seasonic PRIME PX-22004,400 W
$1,452
Reference build price$95,362

Detailed 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 K2.7 Code locally

  1. Thinking mode only

    It doesn't support instant mode, and preserve_thinking is forced on and can't be turned off: in multi-turn conversations, the client has to send back the thinking content returned in each turn (in vLLM, this field may be called reasoning rather than reasoning_content). Moonshot recommends temperature 1.0 and top_p 0.95.

  2. Quantization

    Unsloth offers more quants than for K2.6, with several levels between 1-bit and 4-bit; 3-bit is about 464 GB. The recommended pick is 2-bit (UD-Q2_K_XL); the 8-bit UD-Q8_K_XL keeps the 4-bit experts as-is and is the lossless version. For context, Unsloth recommends a default of 98,304, with a maximum of 262,144.

  3. vLLM flags

    The vLLM recipe requires 0.19.1 or later. For tool calling and thinking parsing, add --tool-call-parser kimi_k2 and --reasoning-parser kimi_k2 respectively. For the vision part, --mm-encoder-tp-mode data runs a separate copy on each card, avoiding communication between GPUs.

  4. Hooking it up to coding agents

    Moonshot says it works best with its own Kimi Code CLI. When connecting it to other agent frameworks, first make sure the framework passes thinking content back unchanged; otherwise you lose the benefit of “preserved thinking.”

Launch commands

llama.cpp

  • NVIDIA
  • AMD
  • Mac
  • CPU
All on GPU
Terminal
llama-server -hf unsloth/Kimi-K2.7-Code-GGUF:UD-Q4_K_XL -c 8192
MoE offloading

Short on VRAM? Add --cpu-moe to keep the routed experts in system RAM (about 578 GB needed).

Terminal
llama-server -hf unsloth/Kimi-K2.7-Code-GGUF:UD-Q4_K_XL -c 8192 \
  -ngl 99 --cpu-moe

vLLM

  • Linux
  • NVIDIA

Follow the deployment guide to prepare the required runtime and hardware.

Terminal
vllm serve moonshotai/Kimi-K2.7-Code \
  --trust-remote-code \
  --tensor-parallel-size 8 \
  --tool-call-parser kimi_k2 \
  --enable-auto-tool-choice \
  --reasoning-parser kimi_k2 \
  --speculative-config '{"model":"lightseekorg/kimi-k2.7-coder-eagle3.1-mla","method":"eagle3","num_speculative_tokens":3}' \
  --mm-encoder-tp-mode data

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.

Terminal
mlx_lm.server --model mlx-community/Kimi-K2.7-Code-4bit

Ollama

  • Windows
  • macOS
  • Linux

Ollama only has a cloud version, kimi-k2.7-code:cloud, which runs on Ollama's servers rather than on your machine.

File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology

Other models in the Kimi family

ModelTotal paramsActive params4-bit size
Kimi Linear 48B A3BMoE49.1B3B30.1 GB
Kimi K2MoE1,000B32B621.3 GB
Kimi K2.5MoE1,000B32B621.2 GB
Kimi K2.6MoE1,000B32B583.7 GB
Kimi K3MoE2,800B104B1,508.7 GB
Kimi K3.1 ProMoE2,800B104B1,508.7 GBest.

About Kimi