VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase.As an eBay Partner, we may be compensated.Learn more

GPUs tracked57Price history49 daysPrice points (24h)38,733 pointsBiggest 24h dropGeForce RTX 3060 12GB-10.9%Biggest 24h riseCMP 170HX 40GB+19.8%Updated
$ USD

How to Deploy Kimi K2.7 Code Locally

Kimi K2.7 Code is a coding-specialized model that Moonshot AI released in June 2026, trained further on top of K2.6. Its architecture and size are nearly identical to K2.6. Moonshot says it uses about 30% fewer thinking tokens than K2.6; when local generation runs at only a few dozen tokens/s, that also means roughly 30% less waiting. The trade-off is that it only has thinking mode; for instant answers, you have to go back to K2.6.

Kimi K2.7 Code details

  • Min VRAM at 4-bit586 GB · 8K
  • 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 for local deployment?

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. It's K2.6 with more training, the same 1T parameters, and 2-bit is about 340 GB, far beyond any GPU or 128GB machine; the 512GB Mac Studio M3 Ultra is the only single machine that holds it. Don't count on 1-bit to buy headroom, since it's only about 35 GB smaller. This is a coding model that always thinks before it writes, so every task opens with a long stretch of reasoning, and your hardware's generation speed decides how long you wait. If you want it faster, that means multiple GPUs or a big-memory server, and at that point 4-bit and 8-bit need the same hardware, so go with lossless 8-bit.

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

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.

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

For coding, the practical setup is four 96GB RTX PRO 6000 cards at 2-bit, at about 74 tokens/s. It thinks about 30% less than K2.6, so the same task means roughly 30% less waiting. Eight 48GB RTX A6000s also hold 2-bit, at about half the speed, and 4-bit needs eight RTX PRO 6000s, at about 52 tokens/s. vLLM has officially validated it only on eight H200s. If you're only writing code and don't need image input, you can launch it without the vision part and give that VRAM to context.

eBay
DeviceCardsTotal priceTotal VRAMSpeed t/sTotal power
Mac Studio M3 Ultra 512GB512 GB per unit2 units$45,6001,024 GB27.6960 W
A100 80GB PCIe80 GB per card8 cards$151,992640 GB55.42,400 W
RTX PRO 600096 GB per card8 cards$180,000768 GB52.34,800 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?

Expert-offloading setups and speeds are also the same as for K2.6: a 12-channel DDR5 server with one RTX PRO 6000 does about 46 tokens/s at 2-bit and about 27 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

4 × Tesla V100 32GB + Dual Xeon E5 DDR4

Budget
Generation speed7.3t/s
Memory bandwidth137GB/s
GPU
4 × Tesla V100 32GB13 / 61 expert layers in 128 GB VRAM
$3,580
RAM
512 GB DDR4-213316 × 32 GB sticks
$2,640
CPU
2 × Intel Xeon E5-2680 v428 cores / 56 threads · 8-channel in total
$38
Board
Supermicro X10DRi16 DIMM slots
$182
PSU
Seasonic PRIME PX-22002,200 W
$660
Reference build price$7,100

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
$8,199
RAM
768 GB DDR5-480024 × 32 GB sticks
$29,328
CPU
2 × AMD EPYC 935464 cores / 128 threads · 24-channel in total
$3,386
Board
Gigabyte MZ73-LM024 DIMM slots
$1,300
PSU
Seasonic PRIME PX-16001,600 W
$516
Reference build price$42,729

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
$90,000
RAM
384 GB DDR5-480024 × 16 GB sticks
$14,304
CPU
2 × AMD EPYC 935464 cores / 128 threads · 24-channel in total
$3,386
Board
Gigabyte MZ73-LM024 DIMM slots
$1,300
PSU
2 × Seasonic PRIME PX-22004,400 W
$1,320
Reference build price$110,310

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

About Kimi