Kimi K3: Open-Weight 2.8T Parameter Model with Native MXFP4 Quantization

·5 min readailocal-aiyoutube

v1.1 Update (Jul 30): Expanded with architectural deep-dives (KDA, AttnRes, Stable LatentMoE, MoonViT3d), open-source catch-up analysis, and inference engine recipes (vLLM, SGLang, TokenSpeed). All technical terms verified against primary sources. Research based on content from: https://www.youtube.com/watch?v=g683I1-4MKE


TL;DR: Moonshot AI released Kimi K3, the world’s first open 3T-class model with 2.8T parameters (104B activated). Built on KDA, AttnRes, and Stable LatentMoE with native MXFP4 quantization, K3 represents how open-source models have caught up to closed LLMs through training data scale, architecture innovation, and domestic silicon. Provides inference recipes for vLLM, SGLang, and TokenSpeed.

Moonshot AI has officially unveiled Kimi K3, a monumental leap in the open-weight AI space. As a 2.8 trillion-parameter Mixture of Experts (MoE) model, Kimi K3 is the world’s first open 3T-class model. It is built on Kimi Delta Attention (KDA) and Attention Residuals (AttnRes), featuring native vision capabilities and a 1-million-token context window.

Architecture and Specs

Kimi K3 is designed for frontier intelligence across long-horizon coding, knowledge work, and reasoning.

SpecValue
Total Parameters2.8T
Activated Parameters104B
Number of Layers93
Attention Heads96
MoE Experts896 (16 selected per token)
Context Length1,048,576 (1M tokens)
Vocabulary Size160K
QuantizationNative MXFP4 weights / MXFP8 activations

The model utilizes a Stable LatentMoE framework that scales up MoE sparsity, activating only 16 out of 896 experts. This yields an approximate 2.5× improvement in overall scaling efficiency over its predecessor, Kimi K2.

Architectural Breakthroughs That Mattered

Kimi K3’s architecture departs from convention in almost every place a serving stack has assumptions:

  • Kimi Delta Attention (KDA): Alternates linear and full-attention layers in a 3

    ratio — 69 KDA linear-attention layers interleaved with 24 Gated MLA layers. KDA extends delta-rule recurrence with a channel-wise forget gate, giving up to 75% less KV-cache memory and up to 6.3× faster decoding at million-token context vs pure full-attention baselines. Gated MLA (Multi-Head Latent Attention) handles global content interaction without positional encodings (NoPE), while KDA layers carry position-sensitive, recency-aware sequence mixing.

  • Attention Residuals (AttnRes): Standard transformer residuals accumulate all layer outputs with fixed unit weights, causing uncontrolled hidden-state growth with depth and diluting each layer’s contribution. AttnRes replaces this fixed accumulation with learned softmax attention over preceding layer outputs — each layer gets a single learned query vector, scores every preceding layer’s output through a softmax, and constructs its own input as a weighted combination. This improves training efficiency by ~25% with under 2% extra compute.

  • Stable LatentMoE: Standard MoE models risk activation explosion and expert load imbalance at extreme scales. Stable LatentMoE addresses this with three components: RMSNorm before the up-projection to suppress activation explosion, SiTU-GLU (Sigmoid Tanh Unit GLU) activation for controlled nonlinearities, and Quantile Balancing for even expert load distribution. It compresses large linear layers via down-projection (like multi-head latent attention), routing tokens to 16 of 896 experts in a down-projected latent space.

  • MoonViT3d: A new K3-specific vision tower for native multimodal understanding of text, images, and video.

The combination of KDA, AttnRes, and LatentMoE is what lets a 2.8T model remain servable — the sparse activation keeps per-token compute equivalent to ~104B parameters, while the hybrid attention makes 1M context affordable on available hardware.

How Open Source Caught Up To Closed LLMs

The trajectory of Kimi K3 cannot be understood in isolation. It represents the culmination of a broader shift: by mid-2026, open-weight models consistently reach roughly 90% of closed-model performance at launch, and the remaining gap closes within months. Several converging factors explain this catch-up:

1. Training Data at Scale

Chinese labs now train on 30+ trillion tokens of curated, high-quality data. DeepSeek V4 was trained on over 32 trillion tokens; GLM-5 on 28.5 trillion. The data curation pipeline — deduplication, quality filtering, and domain balancing — has matured to rival what US labs built over years.

2. Architecture Innovations Over Raw Scale

The catch-up was not achieved by throwing more parameters at the problem. Models like Kimi K3, DeepSeek V4-Pro, and GLM-5.2 introduced novel attention mechanisms (KDA, Compressed Sparse Attention, IndexShare) and quantization-aware training that dramatically lower per-token FLOPs while maintaining or exceeding closed-model quality.

3. Domestic Silicon and Supply Chain Resilience

Export controls were supposed to cap China’s frontier progress. Instead, DeepSeek V4 trained on Huawei Ascend 916/950 and Cambricon accelerators rather than NVIDIA GPUs; GLM-5.2 used a 100,000-chip Ascend cluster. The models proved that domestic silicon can reach the frontier when paired with efficient architectures.

4. The Chinese Open-Source Ecosystem

By July 2026, the strongest downloadable models are Chinese:

RankModelDeveloperTotal ParamsActive ParamsLicenseKey Benchmark
1Kimi K3Moonshot AI2.8T104BKimi K3 License88.3 Terminal-Bench
2DeepSeek V4-ProDeepSeek1.6T49BMIT80.6 SWE-Verified
3GLM-5.2Z.ai753B~40BMIT62.1 SWE-Pro
4MiniMax M3MiniMax427B~23BMiniMax-Community80.5 SWE-Verified
5Qwen3.6-35BAlibaba35B3BApache 2.073.4 SWE-Verified

The Intelligence Index (Artificial Analysis v4.1) ranks Kimi K3 at 57.1, fourth overall — just 2.8 points behind Fable 5 (59.9) and GPT-5.6 Sol (58.9).

5. Licensing Fragmentation

“Open weights” now spans from genuine MIT (DeepSeek, GLM) and Apache 2.0 (Qwen) to custom agreements with revenue thresholds (Kimi K3, MiniMax). This licensing fragmentation means “open” no longer means “free to do anything with” — teams must read the license before building commercial products.

The Paradox


Native Quantization

A standout feature of Kimi K3 is its quantization-aware training. The model applies quantization-aware training from the SFT stage onward, using MXFP4 weights with MXFP8 activations. This design ensures broad hardware compatibility while significantly reducing the memory footprint required for inference. At MXFP4, the Kimi K3 weights are over 1.4TB of data.

Hardware Requirements

Kimi K3 is released as two checkpoints: BF16 (full precision, original) and MXFP4 (quantization-aware trained, 4-bit). Both require multi-GPU clusters — the full 2.8T parameters must be held in memory regardless of how many experts are active per token.

RequirementBF16 (original)MXFP4 (QAT)
Weight size~5.6 TB~1.4 TB
Minimum GPUs16× 80GB (theoretical, no KV/activation headroom)8× 208GB (GB300/B300)
Practical minimum16× nodes of 8× 80GB (10.24 TB aggregate)8× nodes of 8× 80GB (5.12 TB aggregate)
Recommended32× B300/GB300 nodes8–16× B300/GB300 nodes
InterconnectNVLink (required for expert routing)NVLink or RDMA

The MXFP4 version is the only realistic option for self-hosting. At 1.4 TB of weights, you still need at least 8 GPUs with 208GB VRAM each just to load the model, and significantly more to leave headroom for KV cache and activations. Moonshot’s own serving uses the Mooncake disaggregated inference infrastructure to separate prefill and decode across different node pools.

vLLM officially requires at least 8× GB300 (or 8× MI355X/MI350X on ROCm).

Deployment and Inference Recipes

Moonshot AI provides OpenAI/Anthropic-compatible APIs for Kimi K3. For self-hosting, they recommend three primary inference engines, each with dedicated recipes:

1. vLLM

vLLM offers day-0 support for Kimi K3, with a canonical deployment guide covering architecture, kernels, recipes, and production flags.

Key features at launch:

  • DSpark speculative decoding: Trained and open-sourced by Inferact, DSpark achieves 370 tok/s per user (a 3.14× improvement over 118 tok/s without speculation) on 16 NVIDIA GB300 GPUs. For coding tasks, DSpark accepts around 4.73 tokens per step.
  • Hybrid KV-cache manager: A single manager handles both paged KV blocks for full-attention layers and compact recurrent-state blocks for KDA layers. Prefix caching over recurrent state is enabled via --enable-prefix-caching.
  • KDA prefix caching: vLLM separates physical KDA state-block size from prefix-match granularity, enabling partial prefix-cache hits without storing recurrent state at every small attention block. Fine-grained prefix matching inside a larger physical KDA state block lets the engine register a valid KDA state at a fine-grained boundary, with copy-on-write to preserve shared cached prefix.
  • Prefill/decode disaggregation: Routes TEP8 prefill → DEP16 decode, with KV/state moved between stages over NIXL.
  • Mooncake integration: Offloads and reuses KV across turns and requests for agentic workloads.
  • ROCm support: Ships at launch, with broader tuning on the roadmap.
  • Optimized MLA module: Manual kernel fusion for PD disaggregation — gate projection runs in parallel with attention, multi-stream support in decode, fused epilogue in prefill.
  • MXFP4 MoE path: SiTU activation wired into MXFP4 TRTLLM-Gen and DeepGEMM paths, with optimized grouped top-k routing. AMD uses FlyDSL’s MLIR kernel stack with A16W4/A8W4 fused operators.

Quick start command (requires at least one 8× B300/GB300 node):

Terminal window
vllm serve moonshotai/Kimi-K3 \
--tensor-parallel-size 8 \
--trust-remote-code \
--load-format fastsafetensors \
--enable-prefix-caching \
--max-num-seqs 512 --max-model-len 32768 \
--enable-auto-tool-choice --tool-call-parser kimi_k3 \
--reasoning-parser kimi_k3

Deployment notes from real incidents:

  • --moe-backend: Use deep_gemm_mega_moe for any DEP environment, flashinfer_trtllm for TP greater than 1.
  • --all2all-backend: Use flashinfer_nvlink_one_sided for NVLink, deepep_v2 for RDMA.
  • Prefix caching is not on by default for K3 — pass --enable-prefix-caching.
  • Tool calling: validate on your own traffic; production agents should retry or fall back when tool_calls comes back empty.

Inferact (the team behind vLLM) also collaborated closely with Baseten to establish basic feature completeness, pass initial evals, and set baseline performance targets for Kimi K3.

2. SGLang & Miles

SGLang provides day-0 support with a comprehensive deployment write-up covering the full stack. Key innovations:

Memory management for hybrid state:

  • Unified memory pool (--enable-unified-memory): One pool for both KDA recurrent state (~54 MB/request) and MLA KV (~27 KB/token), growing from opposite ends with a single free region. Capacity adapts to workload without reconfiguration. When a request finishes, blocks are released and gaps are compacted so the free region stays contiguous.
  • Race-free state movement: Copy-on-write and snapshots are enqueued on the serial forward stream; a ping-pong extra buffer ensures snapshots never collide with the active state. Three explicit state moves — copy-on-write, snapshot, and donate — manage mutable KDA state safely.
  • Sparse prefix caching: KDA checkpoints stored only at chunk boundaries on the radix tree; branch points get special treatment so diverging requests replay from the fork point.
  • Constant state slots: A running request reserves only 4 transient slots; cached state is amortized across the shared tree.

DSpark speculative decoding:

  • ~423 tok/s at batch 1 (vs ~113 tok/s without speculation). A trained DSpark draft model is included.
  • ReplaySSM: Stores raw inputs (~1 KB/step) instead of full KDA state snapshots (64 KB/step), a ~32× memory reduction. A single fold kernel replays only the accepted prefix, bit-identical to the recurrent baseline.
  • Confidence-scheduled verification: Trims verify tokens below the marginal cost threshold at load, reading real hardware staircase cost curves. At bs 256 this adds +68% throughput on chat workloads. The draft carries a trained confidence head that predicts per-position verification likelihood; a per-step planner keeps verify tokens only while their expected value covers the marginal cost.

Kernel optimization ladder:

  • 16 optimization stages (P0→P15) taking batch-1 decode from 44.3 to 112.5 tok/s: launch/copy elimination, fused kernels (NVIDIA co-developed), all-reduce communication fusion, overlap and prologue fusion.
  • Key finding: microsecond savings on the all-reduce critical path convert 1:1 into step time; off-critical-path kernels convert at ~1/10. A profile-guided sweep removes per-layer upcasts, copies, and spare launches; routing becomes a one-pass register-resident radix select.

Parallelism split by phase:

  • Prefill: Chunked pipeline parallelism (PP8×TP1) — 1.45–1.72× prefill capacity vs TP8, with hidden hand-off communication. Pipeline must be deep: PP8 wins on both throughput and cost per 1K tokens.
  • Decode: Decode Context Parallelism (DCP) shards MLA KV by position, not head. DCP8 lifts logical KV capacity 7.9× (1.5M → 12.2M tokens), removing the active-set wall. One flag: --dcp-size N.
  • Combined: PP8 prefill → TP8/DCP8 decode under PD disaggregation reaches 2,808 tok/s per GPU.

Miles (RL training):

  • Colocated LoRA training on native MXFP4 base weights; trainer and rollout share the same GPUs. The base never moves — only BF16 LoRA adapters transfer. AIME-2024: 43.3% → 76.7% over a 12-hour DAPO run, KL flat at ~2e-3 quantization floor.

Hosting partners: Google Cloud, DigitalOcean, Nebius, fal, RunPod, DeepInfra, and GMI Cloud are already serving Kimi K3 on SGLang.

3. TokenSpeed

TokenSpeed is the third recommended engine, with custom recipes available to optimize the inference of such a large MoE architecture.

Agent Framework

For coding tasks, Kimi K3 is optimized to work with the Kimi Code CLI. It sustains long engineering sessions, navigates massive repositories, and orchestrates terminal tools ranging from GPU kernel optimization to chip design.

Production Deployment: Baseten Day-0 API

The scale of Kimi K3 presents unique infrastructure challenges. Baseten achieved day-0 API support for Kimi K3, offering valuable insights into production deployment:

Hardware Requirements

  • NVIDIA GB300 NVL72 systems: Baseten runs Kimi K3 on GB300 NVL72 systems, which feature 18 nodes of 4 GPUs each (72 GPUs total per rack).
  • 8 GPUs per instance: Each Kimi K3 instance requires 8 NVIDIA GB300 GPUs to fit the enormous model weights into VRAM.
  • 9 replicas per rack: With 8 GPUs per instance, each NVL72 rack can host 9 replicas of the model.

Performance Optimizations

  • Tensor Parallelism (TP) and Expert Parallelism (EP): Due to the GB300 NVL72’s fast interconnect between nodes, Baseten can run inference with TP and EP across nodes.
  • Speculative decoding: Using small draft models to predict multiple tokens, improving per-user throughput on decode.
  • Custom tokenizer: Baseten built a custom tokenizer (Basetenkenizer) that is up to 18x faster than tiktoken for long input sequences, addressing the fact that tokenization becomes material to prefill time for models with high KV cache re-use rates.
  • KV-aware routing: Built with the NVIDIA Dynamo toolkit to route traffic to replicas with warm caches for repeat queries.

Licensing

Kimi K3 is released under the Kimi K3 License by Moonshot AI. The license is permissive for research and internal use, but includes commercial restrictions for large-scale deployment:

ConditionRequirement
Model as a ServiceIf you offer model inference or fine-tuning to third parties (via API) and your aggregate revenue exceeds $20M USD in any consecutive 12 months, you must enter a separate agreement with Moonshot AI before commercial use.
Large-scale productsIf your commercial product using Kimi K3 has more than 100M monthly active users or more than $20M monthly revenue, “Kimi K3” must be prominently displayed on the user interface.
Internal useNo restrictions. Internal use of the model (not made available to third parties) is exempt from the above requirements.
Official productsUse of Kimi K3 accessed through Moonshot AI’s official products or certified inference partners is exempt from the above requirements.

“Model as a Service” is defined as giving a third party access to language model inference or fine-tuning in a manner that allows such third party to exercise meaningful control over the inputs, parameters, or training data. This does not include end-user products with model capabilities solely embedded within specific features or harnesses, or mere relaying of requests to models hosted by others.

Quality Validation

Baseten used Kimi Vendor Verifier from Moonshot AI to ensure accurate, high-fidelity serving of model weights. This tool evaluates performance across common failure modes, including tool calling, to ensure the model is served with a high degree of fidelity across both the inference loop and the API surface.

Benchmark Performance

Kimi K3 competes closely with proprietary systems like Claude Fable 5 and GPT-5.6 Sol. All Kimi K3 results are obtained with reasoning effort set to max and temperature 1.0.

BenchmarkKimi K3 (max)Claude Fable 5GPT-5.6 Sol
Reasoning & Knowledge
GPQA Diamond93.592.694.1
AA-LCR74.770.073.7
Coding
DeepSWE67.570.073.0
ProgramBench77.876.877.6
Terminal-Bench 2.188.388.088.8
FrontierSWE81.286.671.3
SWE-Marathon42.035.039.0
Agentic
BrowseComp91.288.090.4
DeepSearchQA (F1)95.094.2—
MCP-Atlas84.284.783.6
AutomationBench30.829.129.7
Vision
WorldVQA ForceAnswer51.056.741.8
OmniDocBench91.189.885.8
PerceptionBench58.557.259.7

References

  1. Kimi K3 Model Card — Moonshot AI, Hugging Face (July 2026) — https://huggingface.co/moonshotai/Kimi-K3
  2. Kimi K3 Tech Blog — Moonshot AI (July 2026) — https://www.kimi.com/blog/kimi-k3
  3. How to build a day-0 API for Kimi K3 — Philip Kiely, Baseten (July 27, 2026) — https://x.com/philipkiely/status/2081760558643401061
  4. The Inference Engine Guide for K3 Deployment — vLLM (July 27, 2026) — https://x.com/vllm_project/status/2081788542079123939
  5. SGLang and Miles Add Day-0 Support for Kimi K3 — SGLang Team, LMSYS (July 27, 2026) — https://www.lmsys.org/blog/2026-07-27-kimi-k3-day0-support
  6. Kimi K3 License — Moonshot AI (July 2026) — https://huggingface.co/moonshotai/Kimi-K3/raw/main/LICENSE
  7. Kimi K3: How Did Open Source Catch Up To Closed LLMs? — YouTube video (2026) — https://www.youtube.com/watch?v=g683I1-4MKE
  8. Top 5 Chinese Open-Source LLMs Dominating 2026 — Second Talent (July 28, 2026) — https://www.secondtalent.com/resources/chinese-open-source-llms-ai-leaders/
  9. A Preview of Production-Scale Kimi K3 Support on vLLM — vLLM Blog (July 22, 2026) — https://vllm.ai/blog/2026-07-22-kimi-k3-preview
  10. Open Source LLMs Caught Up in 2026 — Level Up Coding (July 12, 2026) — https://levelup.gitconnected.com/open-source-llms-caught-up-in-2026-so-why-are-companies-still-paying-for-ai-df75d866c657

This article was written by Pi (Qwen3.6-27B-NVFP4 | PC Eyay) with Turboquant KV cache. Illustration created with images generated by Qwen (Qwen-Image 3.0 | Alibaba Cloud).

This v1.1 article was written by little-coder (sakamakismile/ThinkingCap-Qwen3.6-27B-NVFP4 | PC Eyay).