vLLM新加坡技术分享:流水线并行优化与Agent编写内核
vLLM Singapore Meetup: Faster Prefill, Agent-Written Kernels and the Road to Vera Rubin
vLLM工程实践干货,涵盖PP并行优化、SM12x适配及RL训练防漂移等硬核细节,值得推理开发者参考。
TL;DR
TL;DR(太长不看)
At the Singapore vLLM meetup, engineers from Inferact, NVIDIA, and Alibaba Cloud showcased how the community is advancing open source AI inference through pipeline parallelism optimizations, agent-written kernels, real-time multimodal world models, and day-zero support for next-generation hardware like NVIDIA’s Vera Rubin platform.
在新加坡 vLLM 聚会上,来自 Inferact、NVIDIA 和阿里云的工程师展示了社区如何通过流水线并行优化、智能体编写内核、实时多模态世界模型以及对 NVIDIA Vera Rubin 平台等下一代硬件的零日支持,推动开源 AI 推理的发展。
Introduction
简介
On November 13, 2026, the vLLM community gathered at SGInnovate in Singapore for a half-day technical meetup hosted by Inferact and NVIDIA. Engineers from Inferact, NVIDIA and Alibaba Cloud, together with vLLM-Omni contributors, shared what they are building right now, from high-throughput prefill and RL training to running vLLM on workstation-class Blackwell GPUs and NVIDIA’s Vera Rubin platform.
2026年11月13日,vLLM 社区在新加坡 SGInnovate 举办了一场由 Inferact 和 NVIDIA 联合主办的半天技术交流会。来自 Inferact、NVIDIA 和阿里云的工程师,以及 vLLM-Omni 的贡献者分享了他们目前正在构建的内容,涵盖高吞吐量的预填充(prefill)和强化学习训练,以及在工作站级 Blackwell GPU 和 NVIDIA Vera Rubin 平台上运行 vLLM 的技术。
vLLM, born at UC Berkeley and now hosted under the PyTorch Foundation, serves hundreds of model architectures across a wide range of accelerators. Two themes ran through the day: squeezing throughput out of communication-bound layouts, and using AI agents to write and tune kernels.
vLLM 诞生于加州大学伯克利分校,现由 PyTorch 基金会托管,支持广泛加速器上的数百种模型架构。本次活动贯穿两大主题:从通信受限布局中榨取吞吐量,以及利用 AI 智能体编写和调整内核。
Highlights from the Meetup
会议亮点
1. Optimizing Pipeline Parallelism for High-Throughput Prefill in vLLM
1. 优化 vLLM 中高吞吐量预填充的流水线并行
Thien Tran, Member of Technical Staff from Inferact made the case for pipeline parallelism (PP) as a throughput layout for prefill. In agentic traffic, one turn carries roughly 100K input tokens (about 95% cached), so a 3 s time-to-first-token (TTFT) target for 5K new tokens leaves a per-token budget about 33× tighter than decode’s. On MiniMax-M3.1-Flash on 2× GB300, PP2 delivered up to 1.37× the max throughput of TEP2 + SP, because PP removes most of the collectives that compete with compute. Thien walked through the fixes that make PP work in practice: balancing stages by measured time rather than layer count, capping step size to shrink pipeline fill and drain, and moving activation transfers onto the copy engines, which cut p50 TTFT by 13–20% near saturation and is now on by default on NVLink. With fixed step sizes, TEP2 + SP still wins at tight TTFT targets (0.75 s) while PP2 wins at looser ones. A new PP-aware scheduler sizes each micro-batch from the queue, matches the best hand-tuned step size with no tuning, and puts PP2 ahead from about 0.5 s upward.
Inferact 的技术专家 Thien Tran 论证了将流水线并行(PP)作为预填充的吞吐量布局方案。在智能体流量中,单次交互大约包含 10 万个输入 token(约 95% 已缓存),因此对于 5000 个新 token,若目标首 token 延迟(TTFT)为 3 秒,则每个 token 的时间预算比解码阶段严格约 33 倍。在配备 2× GB300 的 MiniMax-M3.1-Flash 模型上,PP2 实现了比 TEP2 + SP 高出最高 1.37 倍的吞吐量,因为 PP 消除了大部分与计算竞争的全局集合操作。Thien 详细介绍了使 PP 在实际中可行的修复措施:通过实测时间而非层数来平衡各阶段;限制步长以缩短流水线填充和排空时间;并将激活值传输移至拷贝引擎,这在接近饱和时可将 p50 TTFT 降低 13–20%,且目前已在 NVLink 上默认启用。在固定步长下,TEP2 + SP 在严格的 TTFT 目标(0.75 秒)下仍占优势,而 PP2 在较宽松的目标下胜出。一种新的感知 PP 的调度器从队列中为每个微批次分配大小,无需调参即可匹配最佳的手动调整步长,并在 TTFT 约 0.5 秒及以上时将 PP2 置于领先地位。
2. vLLM on SM12x: From Usable to Efficient
2. SM12x 上的 vLLM:从可用到高效
Jie Fang, DevTech Compute Engineer from NVIDIA showed how SM12x cards (RTX PRO and DGX Spark) went in six months from having no DeepSeek-V4 path in vLLM to near-peak efficiency. FlashInfer feature categories with dedicated SM12x kernels grew from 0 of 17 in January to 14 in October, and monthly SM12x pull requests rose from 6 to 121, helped by AI coding agents. Kernels only help if the framework selects them: a one-line dispatch fix gave +17.7% throughput, and preferring W4A4 for NVFP4 linears gave +23.8%. These cards have PCIe Gen5 but no NVLink, so the choice of parallelism sets the communication cost. TP2 × PP2 instead of TP4 gave 1.37× prefill throughput, and communication-aware weight offloading let DeepSeek-V4-Pro start on 8× RTX PRO 6000. The headline results: a 32K-token prefill in 939 ms on 8× RTX PRO 5000, MoE decode reading weights at 98–99% of measured DRAM peak, and video generation cut from 213.4 s to 4.92 s for a 5.17 s clip, a real-time factor of 0.95.
来自 NVIDIA 的 DevTech 计算工程师 Jie Fang 展示了 SM12x 卡(RTX PRO 和 DGX Spark)如何在六个月内,从 vLLM 中完全没有 DeepSeek-V4 路径,发展到接近峰值效率。具有专用 SM12x 内核的 FlashInfer 功能类别从一月的 17 项中的 0 项增长到十月的 14 项,在 AI 编码助手的帮助下,每月的 SM12x 拉取请求从 6 个增加到 121 个。内核只有在框架选择它们时才有帮助:一行调度修复带来了 +17.7% 的吞吐量提升,而优先为 NVFP4 线性层使用 W4A4 则带来了 +23.8% 的提升。这些卡具备 PCIe Gen5 但没有 NVLink,因此并行度的选择决定了通信成本。TP2 × PP2 而非 TP4 使预填充吞吐量提高了 1.37 倍,而感知通信的权重卸载使得 DeepSeek-V4-Pro 能够在 8× RTX PRO 6000 上启动。主要成果包括:在 8× RTX PRO 5000 上,32K token 的预填充仅需 939 毫秒;MoE 解码以测量到的 DRAM 峰值的 98–99% 读取权重;视频生成时间从 213.4 秒缩短至 4.92 秒(针对 5.17 秒片段),实时因子为 0.95。
3. Making World Models Interactive: Real-Time Inference with vLLM-Omni
3. 让世界模型实现交互:使用 vLLM-Omni 进行实时推理
Taichang Zhou, a vLLM-Omni committer, showed how vLLM-Omni, which extends vLLM from text-only models to omni-modality models and supports 100+ architectures, now serves LingBot-World 2.0, an interactive video world model, in real time for one session on 4× H200. The key piece is a new AR-Diffusion engine that reuses vLLM’s paged KV cache manager to generate video chunk by chunk. The rule of thumb is KV lifetime: if K/V lives for one request, the model runs on the DiffusionEngine; if it lives for a whole interactive session, it runs on the new engine. Ulysses sequence parallelism cut one block on H200 from 2,397 ms to 725 ms. Per 12-frame chunk, the latest main is 1.9× faster than September with no quality loss, and 2.75× faster (22.5 fps) with every opt-in option, well above the 12 fps real-time bar. The team also previewed Noisy PP, which lets later chunks start on earlier chunks’ in-progress KV and lifted steady-state throughput 2.85× on CausVid-Wan 1.3B, and announced OpenDirector, an open-source video agent built on vLLM-Omni.
vLLM-Omni 提交者 Taichang Zhou 展示了 vLLM-Omni 如何将 vLLM 从仅文本模型扩展到全模态模型并支持 100 多种架构,现在它正在单次会话中为 LingBot-World 2.0(一个交互式视频世界模型)提供实时服务,硬件配置为 4× H200。关键部分是一个新的 AR-Diffusion 引擎,它复用了 vLLM 的分页 KV 缓存管理器来逐块生成视频。经验法则是 KV 生命周期:如果 K/V 仅存在于一单个请求中,模型运行在 DiffusionEngine 上;如果它存在于整个交互会话中,则运行在新引擎上。Ulysses 序列并行将 H200 上一个块的耗时从 2,397 毫秒降低到 725 毫秒。对于每 12 帧的块,最新的 main 分支比九月版本快 1.9 倍且无质量损失,而在启用所有可选优化选项的情况下快 2.75 倍(22.5 fps),远高于 12 fps 的实时门槛。团队还预览了 Noisy PP,它允许后续块基于前面块中正在进行的 KV 启动,并将 CausVid-Wan 1.3B 上的稳态吞吐量提升了 2.85 倍,并宣布了 OpenDirector,这是一个基于 vLLM-Omni 构建的开源视频代理。
4. Finish RL Training Faster: Zero-Mismatch Kernels and Simple Async RL
4. 更快完成 RL 训练:零失配内核与简单异步 RL
Ao Shen, Member of Technical Staff from Inferact, presenting joint work with NVIDIA DevTech and NVIDIA Research, argued that an RL trainer must learn from exactly what the rollout produced. Floating-point addition is not associative, so vLLM rollout kernels and trainer kernels split the same sum differently and drift apart. On DeepSeek V4, standard kernels showed rising KL mismatch and the run collapsed within about 100 RL steps, while exact kernels held KL at 0. The team brought the cost of exact kernels down to about 10% of rollout speed with an agent loop that first makes each layer match bit for bit, then swaps in faster kernels and re-checks that the diff stays zero. The skill is open source and worked on Nemotron, DeepSeek V4.1 and Kimi K3.1, where zero diff was ready on the day the model came out. With exact kernels, async RL no longer needs clipping, gates or dropped samples: REINFORCE Zero simply reweights every token, reaching 48.80% accuracy against 48.91% for sync RL while cutting time per update from 49.4 s to 20.6 s, a 2.40× speedup.
Inferact 的技术团队成员 Ao Shen 展示了与 NVIDIA DevTech 和 NVIDIA Research 的联合工作,他指出强化学习(RL)训练器必须从 rollout 产生的结果中直接学习。浮点加法不满足结合律,因此 vLLM 的 rollout 内核与训练器内核对同一求和进行不同的分割,导致结果逐渐偏离。在 DeepSeek V4 上,标准内核显示出不断上升的 KL 散度不匹配,运行在约 100 步 RL 后崩溃,而精确内核将 KL 散度保持在 0。团队通过一个代理循环将精确内核的成本降低至 rollout 速度的约 10%:首先让每一层逐位匹配,然后切换为更快的内核并重新检查差异是否保持为零。该技能已开源,并在 Nemotron、DeepSeek V4.1 和 Kimi K3.1 上验证有效,其中零差异在模型发布当天即就绪。使用精确内核后,异步 RL 不再需要裁剪、门控或丢弃样本:REINFORCE Zero 仅通过对每个 token 重新加权,在达到 48.91%(同步 RL)精度的同时实现了 48.80% 的准确率,并将每次更新的耗时从 49.4 秒缩短至 20.6 秒,实现了 2.40 倍的速度提升。
5. vLLM on NVIDIA Vera Rubin: Architecture, Locality Domains and Kernels
5. vLLM 在 NVIDIA Vera Rubin 上的应用:架构、局部性域与内核
Hao Lu, Software Engineer from NVIDIA, speaking for a joint effort of the vLLM team, Inferact, Red Hat and NVIDIA, explained that vLLM ran on Vera Rubin from day 0 because Blackwell kernels run unchanged, but peak performance needs Rubin-specific kernels such as double-K MMA. The central idea is that Rubin behaves like a NUMA GPU: each of its two dies is a locality domain with its own SMs, L2 and HBM4 stacks, and by default about half of a kernel’s memory traffic crosses the L2 fabric. The rule is to co-locate memory and compute, and to query the locality-domain count rather than assume it. In vLLM, localizing MoE experts in decode brings the most benefit, and memory-bound decode kernels gained 8–29%, with TMA load rising from 13.4 to 18.7 TB/s against a 19.2 TB/s HBM peak. On InferenceX, MiniMax M3.1-Flash on Vera Rubin NVL72 reached about 4.3~6.5× the tokens per dollar of GB300 at matched interactivity.
NVIDIA 的软件工程师 Hao Lu 代表 vLLM 团队、Inferact、Red Hat 和 NVIDIA 的联合努力发言,解释了 vLLM 从第一天起就在 Vera Rubin 上运行,因为 Blackwell 内核无需更改即可运行,但峰值性能需要针对 Rubin 定制的内核,例如双 K MMA。核心理念是 Rubin 表现得像一个 NUMA GPU:其两个芯片(die)中的每一个都是一个局部性域,拥有独立的 SM、L2 和 HBM4 堆栈,默认情况下内核内存流量的一半会跨越 L2 互连。原则是将内存和计算放置在同一位置,并查询局部性域的数量而非假设其固定值。在 vLLM 中,将 MoE 专家在解码阶段本地化带来的收益最大,内存受限的解码内核性能提升了 8–29%,TMA 加载带宽从 13.4 TB/s 提升至 18.7 TB/s,接近 19.2 TB/s 的 HBM 峰值。在 InferenceX 上,Vera Rubin NVL72 上的 MiniMax M3.1-Flash 在保持相同交互性的情况下,每美元获得的 token 数约为 GB300 的 4.3~6.5 倍。
6. Enterprise Scale Agent Infra
6. 企业级 Agent 基础设施
Sean Zhan, Senior Director from Alibaba Cloud International, shared the session Enterprise Scale Agent Infra. As enterprise software shifts from “humans calling tools” to “agents executing autonomously,” risk and cost are moving down from the model layer to the execution layer. Agents need to run concurrently, mutate system state, and hold real credentials — every execution is a security-boundary event. MicroVMs deliver hardware-grade isolation, least-privilege policies constrain network egress and credentials, full audit trails make every action replayable, and snapshotting and hibernation make million-scale concurrency economically viable. Sean shared many insightful ideas during this session.
阿里云国际高级总监 Sean Zhan 分享了题为《企业级 Agent 基础设施》的演讲。随着企业软件从“人类调用工具”转向“Agent 自主执行”,风险与成本正从模型层下沉至执行层。Agent 需要并发运行、变更系统状态并持有真实凭证——每次执行都是一次安全边界事件。MicroVM 提供硬件级别的隔离,最小权限策略限制网络出口和凭证访问,完整的审计轨迹使每个操作都可回放,而快照与休眠功能则使得百万级并发在经济上变得可行。Sean 在本次分享中提出了许多富有洞察力的观点。
Closing Thoughts
总结陈词
From faster prefill and efficient support for new hardware to AI agents that write and tune kernels, this meetup showed a vLLM community that keeps pushing the boundaries of inference, together with its partners across the ecosystem. Our thanks go to Inferact and NVIDIA for hosting, to all the speakers, and to everyone who joined us at SGInnovate. As the core engine grows stronger and the hardware ecosystem keeps expanding, vLLM is becoming a solid foundation for putting large models into real-world use. We look forward to our next gathering and to the continued growth of the vLLM community!
从更快的预填充和对新硬件的高效支持,到能够编写和优化内核的 AI Agent,本次聚会展示了一个不断推动推理技术边界的 vLLM 社区,以及其遍布生态系统的合作伙伴。我们要感谢 Inferact 和 NVIDIA 的主办,感谢所有演讲嘉宾,也感谢所有莅临 SGInnovate 的朋友。随着核心引擎日益强大、硬件生态系统持续扩展,vLLM 正成为将大模型落地实际应用的重要基石。我们期待下一次相聚,并祝愿 vLLM 社区继续蓬勃发展!
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力