Kimi K3: the complete developer guide
Kimi K3 is Moonshot AI's 2.8-trillion-parameter open-weight model. Its architecture combines Kimi Delta Attention, a hybrid linear attention enabling 1M context, with Attention Residuals and a Stable LatentMoE design that activates 16 of 896 experts, trained with Quantile Balancing and Per-Head Muon. On Together AI's OpenAI-compatible API it supports low/high/max reasoning effort, streaming of separate reasoning traces, vision, strict JSON-schema output, tool calling, and dynamic tool loading via system messages for large catalogs. Practical guidance: keep long prefixes byte-stable to hit the automatic cache, omit the fixed sampling parameters, set generous max_tokens, and replay reasoning_content across turns because the model depends on preserved thinking.
Related posts
- Kimi K3 by Moonshot now available on Modal
Modal easyNovice
Moonshot's Kimi K3, a 2.8T-parameter mixture-of-experts multimodal model with a 1M token context window, is available on Modal from release day via an OpenAI-compatible Shared API and dedicated Auto Endpoints. K3 activates 16 of 896 experts per token, uses Kimi Delta Attention and Attention Residuals, and was quantization-aware trained with MXFP4 weights and MXFP8 activations. Moonshot also contributed a new prefix-caching implementation to vLLM because KDA broke conventional prefix caching. Modal trained a custom DFlash speculator for K3 on 32 B300 nodes, raising decode speed from 100 to 460 tokens per second and per-GPU throughput from 800k to 1.5M TPM on agentic workloads.
- Together AI expands fine-tuning service with more models, live metrics, and finer controls
Together AI mediumAdeptTogether Fine-Tuning adds support for new open-weight models (GLM-5.3, Kimi K2.7, Qwen 3.5/3.6/3.8, Gemma 4, DeepSeek-V4-Flash), live per-step metrics via API, CLI and dashboard, and new training controls. These include LoRA on MoE expert layers, early stopping with refunds, and gradient accumulation for arbitrary batch sizes. In an invented-facts test, expert-layer LoRA recalled up to 89% of new knowledge versus 15% for attention-only adapters, and it kept routed experts from falling out of use. Data tooling adds tokenized dataset previews, per-example sample weights, pre-flight JSONL validation and packing controls, alongside price cuts of 30–70%.
- Mubit + Neon AI Gateway: an agent that cuts its own frontier-model tokens by 73%
Neon mediumAdept
Mubit, a proxy placed in front of Neon AI Gateway, records an agent's model calls, groups recurring calls into tasks, and fine-tunes a small open-weight model once a task has at least 25 good replies. The tuned model must pass a held-out exam, then moves through shadow, canary and promotion stages, and is demoted if sampled quality drops. It also stores verified lessons tied to schema versions. On 20 CL-bench questions run against a Postgres analyst agent, gpt-5.5 input tokens fell 73% (21.7k to 5.9k per question) and latency fell 40% with roughly equal accuracy. SQL generation stayed on the frontier model because the small model matched only 8-10% of the time, and lessons doubled correct runs after a schema change. The template runs on Neon Functions with an outbox-style lesson queue and uses Neon branches to test before and after a migration.
- Run fast, private agents on-device with LFM2.5-24B-A2B
Hugging Face mediumAdeptLFM2.5-24B-A2B is an open-weight 24B-parameter MoE reasoning model with 2B active parameters per token, aimed at running tool-using agents on local hardware. It keeps LFM2's 40-layer hybrid of gated short convolutions and GQA with 64 experts and top-4 routing. The context window grows from 32K to 131K tokens, the vocabulary doubles to 128K, pre-training scales to ~33T tokens, and post-training runs SFT, teacher specialization, two on-policy distillation stages and agentic RL inside harnesses like OpenClaw and Hermes Agent. It leads larger MoEs such as Qwen3.6-35B-A3B on most tool-use and instruction-following benchmarks but trails on knowledge and coding tasks like SWE-Bench Verified. It decodes 184 tok/s on an M5 Max and up to 21K tok/s on a B300, and ships with transformers code and an OpenAI-compatible harness configuration.
- DeepSeek-V4: a million-token context that agents can actually use
Hugging Face hardMasterDeepSeek-V4 (Pro: 1.6T total/49B active; Flash: 284B/13B active) is a MoE model family whose 1M-token context is made practical by a hybrid attention design that interleaves Compressed Sparse Attention (4x KV compression plus an FP4 lightning indexer selecting top-k blocks) with Heavily Compressed Attention (128x compression with dense attention), plus FP8 KV storage. At 1M tokens V4-Pro needs 27% of V3.2's per-token FLOPs and 10% of its KV cache, about 2% of a bf16 GQA-8 cache. Agent-focused post-training preserves reasoning across user turns when tools are involved, adds an XML-based |DSML| tool-call schema to reduce escaping and type errors, and relies on DSec, a Rust sandbox platform for RL rollouts. Agent benchmarks land near frontier closed models (SWE Verified 80.6, MCPAtlas 73.6), and MRCR 8-needle retrieval holds 0.59 at 1M tokens.