Problem
前沿 LLM serving 的瓶颈已跨越单一 attention kernel:长上下文受 KV 容量与连接器影响,MoE 受跨节点 All-to-All 与布局影响,RL rollout 还要求频繁释放显存、同步权重并追踪版本。零散优化若不能进入统一 runtime,部署者仍需维护大量模型和硬件分支。
Method
以 Model Runner V2 为执行骨架,将 GPU n-gram、弹性 EP、MLA 的 PP+prefill context parallelism、stock torch.compile 等能力统一;KV 路径按模型/硬件选择低精度格式;大规模 serving 同时改进 DeepEPv2、NCCL symmetric-memory reduce-scatter、NIXL/Mooncake/MoRIIO/KVCR connectors;启动阶段预下载/预热 FlashInfer kernel 并用共享内存 tensor arena 降低跨 worker 拷贝。
Architecture
请求进入 Python/Rust frontend 与 least-loaded API worker;scheduler/engine core 由 MRV2 组织 prefill、decode、speculation、PP/PCP/DCP/EP。模型状态分为 weights、KV/SSM state 与 multimodal tensors:前两者可通过 sleep/weight-transfer/KV connectors 跨阶段或跨节点移动,后者经共享内存 arena 分发。底层 kernel/communication 层覆盖 FlashInfer、DeepGEMM、AITER、DeepEPv2、NCCL symmetric memory、NIXL、Mooncake 与多硬件后端。
Key Innovation
关键新增量是把低精度 KV、混合并行、MoE 通信、connector、RL 生命周期和多硬件 kernel 纳入同一稳定版本,并给出面向真实模型/硬件的默认值与兼容边界;这比孤立 microbenchmark 更接近可部署系统。
Experiments
Release notes 汇总各 PR benchmark,硬件与负载不统一:GLM-5.x FP8 KV/HiSparse 主要在 SM100/B200;SM90 使用 fp8_ds_mla;API worker 路由使用 Qwen3-0.6B、32 input/1 output 短请求;NCCL symmetric-memory MoE reduce-scatter 报告 9.6–16% latency 降幅;DeepSeek-V4.1 1M context 的 long-context indexer prefill 最多降低 25% TTFT。没有单一端到端基准覆盖全部特性。