Back to home

Compare

Comparing: vLLM Goes Dual-Track: LLM Inference Admits Performance and Portability Don't Mix & vLLM 上线双轨架构 — 大模型推理承认极致性能与跨硬件无法兼得

AEN
vLLMPyTorchPyTorch Foundation·

vLLM Goes Dual-Track: LLM Inference Admits Performance and Portability Don't Mix

On September 22, the PyTorch Foundation released vLLM hardware-agnostic layer technical notes: officials compared three recent models on the H100, finding the Token throughput gap between the general and native versions at no more than 3.4%. We note that behind the numbers lies a clear directional shift in inference frameworks—peak performance and cross-hardware portability are no longer properties the same codebase can serve. The old faith of "one codebase running across every chip" formally yields to a dual-track reality.

What this is

vLLM is currently one of the most mainstream open-source LLM inference frameworks—the middleware layer that turns trained models into usable services. The new approach splits model definitions into two paths: popular models take the Flat Model path (a hardware-specific fast lane that writes optimal fused kernels—i.e., merging multiple compute steps for acceleration—directly for chips like NVIDIA and AMD); long-tail models take the new hardware-agnostic layer, which uses the torch.compile full-graph compilation tool to automatically transpile to the target hardware. The two paths are not mutually exclusive—the general layer allows CustomOp or PluggableLayer for local overrides. Officials are explicit: performance portability ≠ peak performance; the general path pursues a stable baseline of "swap cards and it runs, with acceptable loss."

Industry view

Supporters view the dual-track design as honest, returning route choice to enterprises and avoiding lock-in by a single abstraction. For self-hosted AI middle platforms worried about hardware supply volatility, this serves as a buffer. Opposition is equally sharp: every additional GPU means another specialized implementation, maintenance costs rise fast, and long-tail hardware support may slow further. Some developers also caution that the 3.4% gap is based only on the H100 and limited models; cross-hardware tail latency (slowest request latency) and VRAM consumption risks are underestimated.

Impact on regular people

For enterprise IT: selection logic must change. When business concentrates on a few mainstream models with fixed hardware, the specialized path remains the first choice; with hardware supply volatility or a need to support niche cards, build a model-hardware compatibility matrix in advance and verify throughput and stability on the general path.

For individual careers: direct impact is limited. But technical managers responsible for procurement of compute and evaluating AI middle platforms need to add "card-switch migration cost" to their evaluation checklist, and it's also easier to explain why the same model benchmarks differently on different chips.

For consumer markets: end users will feel no short-term impact. If cloud vendors leverage the general layer to schedule backup chips during compute shortages, AI service stability and pricing may become steadier.

Source: juejin.cn
BZH
vLLMPyTorchPyTorch 基金会·

vLLM 上线双轨架构 — 大模型推理承认极致性能与跨硬件无法兼得

9 月 22 日,PyTorch 基金会发布 vLLM 硬件无关层技术说明:官方在 H100 上对比三种近期模型,通用版与原生版 Token 吞吐差距不超过 3.4%。我们注意到,数字背后是推理框架方向的明确转向——极致性能与跨硬件可移植不再是同一份代码能兼顾的属性,「一套代码跑遍所有芯片」的旧信仰正式让位于双轨现实。

这是什么

vLLM 是当前最主流的开源大模型推理框架(把训练好的模型变成可用服务的中间层)之一。新方案把模型定义拆成两条路:热门模型走 Flat Model(硬件专用快车,直接为 NVIDIA、AMD 等芯片写最优的融合内核,即把多个计算步骤合并执行以提速);长尾模型走新的硬件无关层,用 torch.compile 全图编译工具自动转译到目标硬件。两条路不互斥——通用层允许 CustomOp(自定义算子)或 PluggableLayer(可插拔层)做局部覆盖。官方明确:性能可移植 ≠ 极致性能,通用路径追求「换卡能跑、损失可接受」的稳定基线。

行业怎么看

支持者认为双轨设计诚实,把选路权交还企业,避免被一层抽象锁定。对担心硬件供应波动的自建 AI 中台,这是一颗缓冲药。反对意见同样尖锐:每多一种 GPU 就多一份专用实现,维护成本快速上升,长尾硬件支持可能更慢。也有开发者提醒,3.4% 差距仅基于 H100 和有限模型,跨硬件的尾延迟(最慢请求耗时)与显存占用风险被低估。

对普通人的影响

对企业 IT:选型逻辑要改。业务集中在少数主流模型且硬件固定,专用路径仍是首选;硬件供应波动或需支持小众卡,应提前建立模型—硬件兼容矩阵,验证通用路径下的吞吐与稳定性。

对个人职场:直接影响有限。但负责采购算力、评估 AI 中台的技术管理者,评估清单需新增「换卡迁移成本」一项,也更容易解释同一模型在不同芯片上跑分为何有差异。

对消费市场:终端用户短期无感。若云厂商借助通用层在算力紧缺时调度备用芯片,AI 服务的稳定性与定价可能更平稳。

Source: juejin.cn