vLLM 官方博客(RSS) · 2026/10/29

Table of Contents We're excited to announce day-0 support for Mis

Table of Contents We're excited to announce day-0 support for Mistral Large 4 in vLLM. Mistral Large 4 is Mistral's new frontier mixture-of-experts native multimodal model. It combines a DeepSeek-style sparse attention stack (MLA plus a DSA top-k ind

Table of Contents We're excited to announce day-0 support for Mistral Large 4 in vLLM. Mistral Large 4 is Mistral's new frontier mixture-of-experts native multimodal model. It combines a DeepSeek-style sparse attention stack (MLA plus a DSA top-k indexer) with several new architecture features: cross-layer KV sharing, NoPE layers, SSMax and LeRoPE. It ships with a built-in DSpark speculative decoding drafter and a Pixtral vision encoder. Supporting it took more than a model file. ML4 runs on vLLM's model runner V2 (MRV2) with breakable CUDA graphs. Its building blocks live in a new vllm/models/mistral/ package, and the work produced generic improvements to decode context parallelism (DCP), prefill context parallelism (PCP), DSpark, NIXL-based disaggregated serving and HiSparse host-memory KV offload. Highlights Architecture: 72-layer MoE with 128 routed experts (top-4) plus 1 shared expert and a hidden size of 6144. Attention is MLA (KV LoRA rank 512, RoPE dim 64) with a DSA sparse indexer that selects the top 2048 keys per query. 1 trillion parameters in total, 49 billion active per token (52 billion including embeddings and output layers). Checkpoints: FP8 (block-scaled weights) and NVFP4 (NVFP4 experts, FP8 attention/shared experts). Both use an FP8 latent KV cache ( fp8_ds_mla ) by default. Multimodal: a Pixtral vision encoder for image inputs, including multiple images per prompt. Speculative decoding: a built-in DSpark drafter (3 sliding-window MLA layers, depth 3) accepts ~2.9 tokens per step and gives about 2x output throughput on TP8. Long context: DCP gives ~7.9x more KV capacity on TP8. PCP+DCP prefill cuts time to first token (TTFT) by up to 1.6x. DSpark works under both. Disaggregated serving: NIXL prefill/decode (P/D) disaggregation with DP/EP, TP and PCP×DCP prefill nodes, with DSpark on both sides. HiSparse: host-memory sparse KV offload, now with support for cross-layer KV sharing. AMD: day-0 on AMD Instinct MI350 Series GPUs with ROCm, including DSpark, image inputs and expert parallelism with MXFP4 experts. Usage Mistral Large 4 support ships in the vllm/vllm-openai:mistral-large-4 Docker image, which also includes mistral-common 1.13. The commands below run vllm serve inside it: docker pull vllm/vllm-openai:mistral-large-4 FP8 on 8 GPUs: vllm serve mistralai/Mistral-Large-4-1T-A52B \ --tensor-parallel-size 8 \ --speculative-config '{"method": "dspark", "num_speculative_tokens": 3}' \ --tool-call-parser mistral --enable-auto-tool-choice \ --reasoning-parser mistral NVFP4 on 4 GPUs (Blackwell; use --tensor-parallel-size 8 on 8 GPUs): vllm serve mistralai/Mistral-Large-4-1T-A52B-NVFP4 \ --tensor-parallel-size 4 \ --speculative-config '{"method": "dspark", "num_speculative_tokens": 3}' \ --tool-call-parser mistral --enable-auto-tool-choice \ --reasoning-parser mistral NVFP4 does not trade quality for speed. On multimodal, long-context, agentic coding, business automation and cyber evals it stays within 2.1 points of FP8 on every task, and the mean difference is −0.3 points. Token consumption is matched too: mean completion tokens stay within about 4% of FP8. It is also faster and lighter: at TP8, NVFP4 decodes 1.08–1.19x faster per token than FP8 without spec decoding (1.18–1.22x with DSpark) and holds ~1.5x the KV cache. *Comparison of FP8 versus NVFP4 scores and token consumption on core evaluations. Error bars show 95% confidence intervals estimated by bootstrapping. Across all domains, including multimodal reasoning (GDP.pdf, MathVision), long-context (Graphwalks 512k), coding agents (DeepSWE, SWE-bench Pro, Terminal-Bench 4), business automation (AutomationBench) and cyber (CyberGym), the NVFP4 checkpoint matches FP8 behaviour. Long context (DCP). Add --decode-context-parallel-size 8 to shard the latent KV cache across the 8 ranks. It requires the default FP8 KV cache. Multimodal. Pass --limit-mm-per-prompt '{"image": N}' to allow up to N images per prompt. For multi-node, disaggregated P/D and other tested configurations, see the Mistral Large 4 recipe . Implementation details Model architecture component Mistral Large 4 layers / hidden size / heads 72 / 6144 / 64 attention MLA, no query LoRA, KV LoRA rank 512, RoPE dim 64 sparse attention DSA indexer, top-k 2048, 32 index heads; 44 layers own an indexer, 28 reuse the top-k of the nearest earlier indexer layer positional encoding YaRN + LeRoPE (learned per-frequency scaling); every 4th layer is NoPE query scaling SSMax (length-dependent query scale) on every attention layer and indexer KV sharing 9 layers (39, 43, …, 71) read layer 35's latent cache (1 every 4) MoE layer 0 dense; layers 1–71: 128 experts, top-4, 1 shared expert output logit soft cap 30 vision Pixtral encoder (30 layers, hidden 2048, patch 14) *The 72 decoder layers: every 4th layer is NoPE, 28 layers reuse the top-k of the closest preceding indexer layer, the NoPE layers 39–71 read layer 35's latent KV, and only layer 0 is dense.* What it took to support each piece in vLLM: Sparse MLA + DSA indexer. ML4 reuses vLLM's sparse-MLA stack (FlashMLA sparse with the fp8_ds_mla latent cache, plus the sparse indexer with an FP8 indexer cache). ML4-specific differences are layered on top: shared-indexer layers that reuse the top-k of the nearest earlier indexer layer, an indexer with its own SSMax, and NoPE indexers on NoPE layers. Per token, the KV cache stores 47,136 bytes: 41,328 for the MLA latent and 5,808 for the indexer. Cross-layer KV sharing. Nine NoPE layers read the latent KV written by layer 35 instead of writing their own. We added kv_sharing_target_layer_name to MLAAttention and AttentionLayerBase . Consumer layers skip the cache write, and the V2 runner resolves them to the target layer's KV cache spec. Consumers take no KV memory: 63 of the 72 layers own a cache. This is model-agnostic and is being upstreamed in vllm#64095 . NoPE, SSMax and LeRoPE. NoPE layers are expressed as MLA with zero RoPE dims, so they use the same kernels and cache layout. LeRoPE is folded into the YaRN frequencies. SSMax is fused into the MLA RoPE kernel (see fusions below). A Mistral model package. Rather than adding flags to deepseek_v2.py , the port builds on reusable Mistral components under vllm/models/mistral/ : attention, indexer, SSMax, MLP, MoE, fused ops and a per-layer spec ( common/layer_spec.py ). The ML4 model itself is vllm/models/mistral_large4/nvidia/model.py , and the DSpark drafter sits next to it ( dspark.py ). Per-layer features (RoPE/NoPE, indexer owner/sharer, KV owner/consumer) come from a layer spec built from params.json , not from model-specific branches in shared code. Model runner V2. ML4 runs only on MRV2. The V2 attention utilities discover KV-sharing layers and look up their target specs. DSpark plugs into the V2 DFlash/DSpark speculator. Breakable CUDA graphs and fusions. ML4 runs without torch.compile . It uses breakable CUDA graphs, enabled automatically for the architecture (also when the text model sits inside the multimodal wrapper). They gave about a 6x speedup over eager mode. Hand-written fusions replace what the compiler would otherwise do, while enabling further optimizations: First round: SSMax, MLA RoPE + SSMax, the indexer Q path and the indexer K path. These cut decode TPOT by 8–10%. Decode round: FP32 router GEMM, a one-launch Triton LayerNorm for the indexer query, all-reduce + residual + RMSNorm in one FlashInfer kernel, and indexer K written straight into the FP8 cache. On TP8 FP8, c1 TPOT dropped from 10.22 to 9.00 ms (-12%) and c8 from 16.01 to 15.08 ms. Long context: decode and prefill context parallelism DCP. MLA keeps one latent KV head, so under TP the cache is replicated on every rank. DCP shards it by token instead. On TP8, DCP8 raises KV capacity from 2.38M to 18.88M tokens (FP8) and from 3.60M to 28.76M tokens (NVFP4). Long-context capacity on 8x GB300: TP8 vs TP8 DCP8 Concurrent 128k / 256k / 1M-token requests whose KV cache fits on 8× GB300 with ML4 NVFP4, TP8 vs TP8 DCP8: floor(KV pool / input length) - 3.60M and 28.76M tokens, gpu-memory-utilization 0.85. Out of the box, DCP with sparse MLA paid a large fixed cost per decode step. A profile at 60k context showed about 7 ms per step of DCP-only work: NCCL all-gathers of the LSE and of the indexer top-k candidates (44 indexer layers); reduce-scatters; a stable top-k merge; query gathers; small mask kernels and launch gaps. We replaced these with: a2a combine for FlashMLA sparse (merged as vllm#61285 ): a symmetric-memory all-to-all LSE combine instead of all-gather + reduce-scatter. ML4 uses it by default. Direct top-k exchange: each rank pushes its packed (score, id) candidates into its peers' symmetric-memory inboxes, and a selector reads them in place. This replaces an NCCL all-gather and a 6-pass radix select per indexer layer. Top-k compaction: for batche

FDE 判断

这条信息对 FDE 的直接价值在于提醒交付人员持续关注模型、智能体与企业流程之间的变化。面对类似项目,应先确认客户的真实业务目标、数据边界、权限条件和验收指标,再选择工具并用最小场景验证结果,避免只追逐功能更新。