Disclosure As an Amazon Associate I earn from qualifying purchases. Some links on this page are affiliate links. If you sign up or buy through them, LocalAI Moa may earn a commission at no extra cost to you.
Kimi K2.7 Code
Kimi K2.7 Code (UD-Q4_K_XL) needs 596GB of VRAM/unified memory at 8K context. Runs locally on 1 tracked consumer devices starting with Mac Studio M5 Ultra 512GB.
1T code-specialized model whose 340GB 2-bit build requires a 512GB memory workstation.
- Developer
- Moonshot AI
- Parameters
- 1T 32B active
- Context Window
- 262K
- Released
- Jun 11, 2026
- License
- Modified MIT
Self-Hosting Kimi K2.7 Code on Multi-GPU Hardware
Kimi K2.7 Code requires 584GB for weights alone—too large for a single consumer desktop or laptop.
Including KV cache and runtime buffers, plan for at least 671GB of aggregate GPU memory on a multi-GPU workstation or server running vLLM or SGLang with tensor parallelism.
1. Recommended Hardware & Storage
- NVIDIA B200 192GB × 4 (768GB total): Tight minimum fit with limited spare buffer. Est. 1,421 tok/s.
- RTX PRO 6000 Blackwell 96GB × 8 (768GB total): Tight minimum fit with limited spare buffer. Est. 369 tok/s.
- NVIDIA H100 80GB 8-GPU Server × 2 (16 GPUs) (1.3TB total): Comfortable resident fit with context headroom. Est. 1,808 tok/s.
- Storage & Host RAM: Provision at least 4TB NVMe SSD and 2TB+ host RAM (approx. 10 min download on 10Gbps, 91 min on 1Gbps).
2. Standard Serving Checklist
- Verify License: Review commercial terms for Modified MIT.
- Download Shards: Pull all safetensors/quantized shards and tokenizer configs from Hugging Face.
- Launch Tensor Parallel Engine: Start
vLLMorSGLangwith--tensor-parallel-sizematching your GPU count. - Ramp Context Gradually: Validate loading at 8K context first, then scale concurrency and max context length.
Affiliate link: LocalAI Moa earns a commission when you sign up and use RunPod at no extra cost to you.
VRAM by Quantization
Adjust context length in TPS Calculator| Quant | File Size | 8K Context | 32K Context | Minimum Device |
|---|---|---|---|---|
| UD-Q2_K_XL | 340GB | 352GB | 388GB | Mac Studio M5 Ultra 512GB |
| UD-Q4_K_XL | 584GB | 596GB | 632GB | None · Server/Cloud recommended |
Compatible Hardware
Matched using the highest-quality quantization that fits each device.
| Device | Quant | Status | Tokens/s | Memory | Check |
|---|---|---|---|---|---|
| UD-Q4_K_XL | No Fit | – | 64GB· 256GB/s | Amazon ↗ | |
| UD-Q4_K_XL | No Fit | – | 128GB· 256GB/s | Amazon ↗ | |
| UD-Q4_K_XL | No Fit | – | 128GB· 256GB/s | Amazon ↗ | |
| UD-Q4_K_XL | No Fit | – | 128GB· 256GB/s | Amazon ↗ | |
| UD-Q4_K_XL | No Fit | – | 128GB· 256GB/s | Amazon ↗ | |
| UD-Q4_K_XL | No Fit | – | 128GB· 256GB/s | Amazon ↗ | |
| UD-Q4_K_XL | No Fit | – | 128GB· 273GB/s | Amazon ↗ | |
| UD-Q4_K_XL | No Fit | – | 128GB· 273GB/s | Amazon ↗ | |
| UD-Q4_K_XL | No Fit | – | 128GB· 273GB/s | Amazon ↗ | |
| UD-Q4_K_XL | No Fit | – | 64GB· 256GB/s | Amazon ↗ |
Even if a model exceeds your local VRAM, you can run it immediately on RunPod with hourly RTX 5090, H100, or B200 instances.
Referral perk · Spend your first $10 after signing up to unlock a $5–$500 random credit bonus.
I want to run Kimi K2.7 Code on a cloud GPU using RunPod. I have already created a RunPod account, and this is my first time setting up a pod. Please look up the current setup steps and guide me step by step—from choosing the right GPU and template to downloading the weights and running inference smoothly.
Compare 1:1 with Similar Models
Z.ai model tuned for multi-turn software engineering, terminal automation, and tool-using agents.
Compare with Kimi K2.7 Code →Fast code-focused MoE model activating 2.5B of 39.8B parameters—very responsive on 24GB GPUs.
Compare with Kimi K2.7 Code →35B coding-specialist MoE activating 3B parameters per token; 4-bit weights fit inside 24GB VRAM.
Compare with Kimi K2.7 Code →Specs verified . Original model card