读见

NVIDIA 五种协同设计方式,最大化 AI 工厂中每个字节的价值

原题Five Ways NVIDIA Co-Design Maximizes the Value of Every Byte in the AI Factory

约 11 分钟约 2,511 字原文英文已翻译

推荐理由NVIDIA 以低精度、专家并行和分层 KV 缓存解释相同 HBM 容量如何支撑更多智能体并发,帮助基础设施团队从容量采购转向有效吞吐比较,数字保留厂商基准条件。

读前速览

5 个要点

本文介绍 NVIDIA 如何通过协同设计 GPU 架构、互连和软件,最大化 AI 工厂中每个 HBM 字节的价值,并借助 NVFP4 精度、Wide-EP 专家并行、Dynamo 服务、Vera CPU 和 CMX 存储这五种关键手段,实现每瓦吞吐量最高提升 30x。

  1. NVFP4 精度通过双层缩放,在保持准确度的同时降低内存占用。

    NVFP4 使用 4 位 E2M1 元素,每 16 个值组成的微块配有 FP8 缩放因子,每个张量则使用 FP32 缩放因子。相较 FP16,它将模型占用降低 3.5x;相较 FP8,则降低 1.8x,从而释放 HBM,用于 KV cache 和提高并发量。

  2. Wide Expert Parallelism 将 MoE 专家分散到多块 GPU 上,提高内存利用率。

    它将专家分布在 8+ 块 GPU 上,而不是集中放置,使每块 GPU 承载更少的专家权重,为 KV cache 留出更多 HBM;同时,通过 GroupGEMM 内核复用权重,提高算术强度。

  3. NVIDIA Dynamo 将 KV cache 视为整个集群的共享资源,通过智能路由和分层存储进行管理。

    Dynamo 的感知 KV cache 路由会考虑缓存前缀的重叠情况和工作节点负载;KV Cache Runner 则支持 GPU、CPU、SSD 和网络存储之间的分层存储,让上下文在被 GPU 淘汰后仍能保留,并可在不同节点间复用。

  4. NVIDIA Vera CPU 以快速处理能力和大容量内存,在工具调用期间保留上下文。

    Vera CPU 配备 88 个 Olympus 核心,单线程性能快 1.8x,并通过 1.8 TB/s 的 NVLink-C2C 连接最高 1.5 TB 的 LPDDR5X 内存。它能在工具调用期间暂存 KV cache,避免 HBM 在上下文闲置期间被占用,也避免代价高昂的重新计算。

  5. NVIDIA CMX 创建共享存储层,实现 pod 范围内的 KV cache 复用。

    CMX 的 G3.5 层采用经优化、通过以太网连接的闪存,使已计算过的前缀能够在 pod 内兼容的模型实例之间复用,从而减少重复计算,并扩展 GPU 的有效内存。

完整摘要

本文探讨 NVIDIA 如何通过协同设计方法,最大化 AI 工厂中每个高带宽内存(HBM)字节的价值。在 AI 工厂中,内存是成本最高、竞争最激烈的资源。文章指出,关键不仅在于内存容量,还在于每个字节能完成多少有效工作。文章介绍了五种协同设计手段:NVFP4 精度在保持准确度的同时,相较 FP16 将内存占用降低 3.5x;Wide Expert Parallelism 将 MoE 专家分散到多块 GPU 上,以提高算术强度;NVIDIA Dynamo 将 KV cache 视为整个集群的共享资源,通过感知 KV cache 的路由和解耦式服务加以管理;NVIDIA Vera CPU 凭借快速的 CPU 处理能力和大容量 LPDDR5X 内存,在工具调用期间保留上下文;NVIDIA CMX 则创建共享的 G3.5 存储层,实现 pod 范围内的 KV cache 复用。尽管 HBM 容量相近,这些手段协同作用,使 Vera Rubin NVL72 相较 GB300 NVL72 的每兆瓦吞吐量最高提升 30x。

目录 · 7 节

查看原文

在 AI 工厂中,高带宽内存(HBM)是速度最快、成本最高、竞争也最激烈的内存层级。每一个用于存储冗余权重副本、空闲会话的 KV 缓存或重新计算前缀的字节,都意味着少了一个用于生成 token 的字节。问题不再是 GPU 有多少内存,而是每个字节能带来多少有效工作。In an AI factory, high bandwidth memory (HBM)is the fastest, most expensive, and most contested memory tier. Every byte spent on a redundant weight copy, an idle session’s KV cache, or a recomputed prefix is a byte that is not being used to produce tokens. The question is no longer how much memory a GPU has, but how much useful work each byte delivers.

下图 1 中的代际数据说明了原因。从 GB300 到 NVIDIA Rubin,容量保持在 288 GB,而带宽提升至 19.2 TB/s。The generational data in Figure 1 below shows why. From GB300 to NVIDIA Rubin, capacity held at 288 GB while bandwidth rose to 19.2 TB/s. 

智能体吞吐量的每兆瓦增长速度要快得多。在 SemiAnalysis AgentX 测试中,该测试会回放录制的编程智能体会话,并模拟真实的工具调用间隔和不断增长的上下文;在每位用户每秒 160 个 token 的情况下,NVIDIA Vera Rubin NVL72 的每兆瓦吞吐量最高可达 GB300 NVL72 的 30 倍。agentic throughput per megawatt grew far faster. On SemiAnalysis AgentX, which replays recorded coding-agent sessions with real tool-call gaps and growing context, NVIDIA Vera Rubin NVL72 then delivers up to 30x the throughput per megawatt of GB300 NVL72 at 160 tokens per second per user.

Bar chart comparing GB300 NVL72 and Vera Rubin NVL72. Relative to GB300’s1x baseline, HBM capacity per GPU is 1x, memory bandwidth per GPU is 2x, and throughput per megawatt is 30x.
Figure 1. GPU throughput grew by 30x while HBM capacity remained approximately the same from GB300 NVL72 to Vera Rubin NVL72.

仅凭容量本身,无法解释同样每块 GPU 配备 288 GB 却能带来 30 倍的提升。差异在于每个字节能完成多少有用的工作。Capacity alone cannot explain a 30x gain delivered from the same 288 GB per GPU. The difference is how much useful work each byte delivers.

NVIDIA 将此视为一个协同设计问题,涉及 GPU 架构、纵向扩展互连、服务软件、CPU 和存储。本文探讨协同设计如何通过五种方式最大化每个内存字节的价值,涵盖从编码单个权重的比特,到能够跨智能体交互轮次和节点保留并复用上下文的共享存储。NVIDIA treats this as a co-design problem that spans GPU architecture, the scale-up interconnect, serving software, the CPU, and storage. This post examines five ways that co-design maximizes the value of each byte of memory, from the bits that encode a single weight to the shared storage that preserves and reuses context across agentic turns and nodes.

1. NVFP4 如何用更少的字节存储更多信息?1. How does NVFP4 store more intelligence in fewer bytes?

提高每个字节价值最直接的方法,就是在不丢失编码信息的前提下缩小每个数值。NVFP4 通过 4 位 E2M1 元素和两级缩放实现这一点:每个包含 16 个值的微块共享一个 FP8(E4M3)缩放因子,此外还在其上叠加一个逐张量的 FP32 缩放因子。这样得到的格式既足够紧凑,能显著释放 HBM,又具有足够的粒度,可在朴素的 4 位格式精度不足时保留准确性。The most direct way to raise the value of a byte is to make each value smaller without losing what it encodes. NVFP4 does this with a 4-bit E2M1 element and two levels of scaling: Every 16-value micro-block shares an FP8 (E4M3) scale factor, and a per-tensor FP32 scale sits on top. The result is a format that is small enough to free significant HBM, yet granular enough to preserve accuracy where naive 4-bit formats fall short.

Diagram of NVFP4’s two-level scaling. Each 4-bit E2M1 value contains one sign bit, two exponent bits, and one mantissa bit. Groups of 16 values share an FP8 E4M3 scale factor, with an additional FP32 scale factor applied to the entire tensor.
Figure 2. NVFP4 combines 4-bit values with block-level and tensor-level scaling.

应用于权重时,NVFP4 相较于 FP16 可将模型占用空间缩小约 3.5 倍,相较于 FP8 可缩小约 1.8 倍,从而释放内存,满足智能体推理最迫切的需求:更大的 KV 缓存容量、更大的批次以及更高的并发度。NVFP4 已成为对精度要求严格的开放式智能体基准测试的默认精度,包括 AA-AgentPerf、SemiAnalysis AgentX 和 MLPerf Endpoints。在这些基准测试和领先的混合专家(MoE)架构中,在交互性相同的情况下,它的吞吐量最高可达 FP8 基线的 4 倍(见下方图 3)。Applied to weights, NVFP4 reduces the model footprint by approximately 3.5x relative to FP16 and 1.8x relative to FP8, freeing memory for what agentic inference needs most: more KV-cache capacity, larger batches, and higher concurrency. NVFP4 has become the default precision for open agentic benchmarks with strict accuracy requirements, including AA-AgentPerf, SemiAnalysis AgentX, and MLPerf Endpoints. Across these benchmarks and leading mixture-of-experts (MoE) architectures, it delivers up to 4x the throughput of an FP8 baseline at the same interactivity (Figure 3 below). 

Line chart comparing GB300 NVFP4 and FP8, showing a 4x throughput-per-megawatt gain at approximately 150 tokens per second per user.
Figure 3. NVFP4 delivers 4x the throughput per megawatt of FP8 at the same interactivity for DeepSeek R1 on GB300.

同样的原理也适用于 KV 缓存本身。与 FP8 相比,NVFP4 KV 缓存可将缓存占用减少多达 50%,因此设备上可常驻的上下文量约增加至 2 倍。驱逐减少意味着预填充期间的缓存命中率更高,而缓存更小则意味着解码期间消耗的带宽更少。The same principle extends to the KV cache itself. NVFP4 KV cache cuts the cache footprint by up to 50% compared with FP8, so approximately 2x more context stays resident on device. Fewer evictions mean higher cache-hit rates during prefill, while a smaller cache means less bandwidth consumed during decode.

Grouped bar chart comparing BF16 KV (gray) with NVFP4 KV (green) across 10 benchmarks. NVFP4 scores are slightly lower throughout, with differences ranging from 0.1 to 1.0 points. The largest gap is on TerminalBench, at 75.1 versus 74.1. The title claims reduced memory use, but no memory measurements are shown.
Figure 4. NVFP4 KV cache archives over 99% of BF16 baseline scores across 10 DeepSeek-v4-Pro benchmarks

NVFP4 减少了字节数。接下来的问题是这些字节存放在哪里,以及 AI 工厂必须保留多少份副本。NVFP4 shrinks the bytes. The next question is where those bytes live, and how many copies of them the AI factory has to keep.

2. NVLink 扩展域如何将 72 个 GPU 整合成一个内存池?2. How does the NVLink scale-up domain turn 72 GPUs into one memory pool?

MoE 模型每个 token 只激活一部分参数,但每个专家的权重仍必须存放在某处的 HBM 中。当专家被集中部署到少量 GPU 上时,每块 GPU 都有很大一部分显存被权重占用,而每个解码步骤都要为 MoE GroupGEMM 承担高昂的权重加载开销。这些字节虽然常驻于显存中,却没有得到充分利用。MoE models activate only a subset of parameters per token, but every expert’s weights must still live somewhere in HBM. When experts are packed onto a small number of GPUs, each GPU spends a large share of its memory on weights, and each decode step pays a heavy weight-loading cost for the MoE GroupGEMMs. The bytes are resident, but they are not working hard.

NVIDIA TensorRT-LLM 中的宽幅专家并行(Wide-EP)通过将专家分布到八个或更多 GPU 上,改变了这一比例。以 EP64 运行 DeepSeek-R1 时,每个 GPU 在每层上持有四个专家,即 58 个 MoE 层中共有 232 个专家块,而完整模型共有 14,848 个专家块。每个 GPU 上的专家权重更少意味着:Wide expert parallelism (Wide-EP) in NVIDIA TensorRT-LLM changes that ratio by spreading experts across eight or more GPUs. With DeepSeek-R1 at EP64, each GPU holds four experts per layer, or 232 expert blocks across 58 MoE layers out of 14,848 in the full model. Fewer expert weights per GPU means:

  • 容量:每个 GPU 留有更多 HBM,可用于 KV 缓存、更大的批次和更高的并发量。
    Capacity: More HBM per GPU is left for KV cache, larger batches, and higher concurrency.
  • 算术强度:GroupGEMM 内核会在更多 token 之间复用每个已加载的权重,从而提高每字节浮点运算数。
    Arithmetic intensity: GroupGEMM kernels reuse each loaded weight across more tokens, raising FLOPs per byte.
  • 均衡:专家并行负载均衡器(EPLB)会在前向传播之间重新分配热门和冷门专家,避免某块 GPU 的显存超额占用,而另一块 GPU 却处于空闲状态。
    Balance: The Expert Parallel Load Balancer (EPLB) redistributes hot and cold experts between forward passes, so no GPU’s memory is overcommitted while another sits idle.
Line chart showing GB300 NVL72 achieves 10x H200 NVL8’s throughput per megawatt at 100 tokens per second per user.
Figure 5. GB300 NVL72 delivers 10x the token throughput per megawatt of H200 NVL8 at 100 tokens per second per user.

这之所以可行,是因为在 scale-up 域中,远端字节几乎与本地字节一样有用。每个 MoE 层都会产生 all-to-all 分发和合并流量;如果没有高带宽互连网络,这些集合通信就会抵消性能提升。在 GB200 NVL72 上,130 TB/s 的 NVLink 总带宽足以承载这些流量;当每位用户的生成速度为每秒 100 个 token 时,大规模 EP(EP32)每 GPU 的输出 token 吞吐量最高可达小规模 EP(EP8)的 1.8 倍。This only works because the scale-up domain makes remote bytes nearly as useful as local ones. Every MoE layer triggers all-to-all dispatch and combine traffic, and without a high-bandwidth fabric, those collectives would erase the gains. On GB200 NVL72, 130 TB/s of aggregate NVLink bandwidth absorbs that traffic, and large EP (EP32) delivers up to 1.8x more output tokens per second per GPU than small EP (EP8) at 100 tokens per second per user.

Vera Rubin NVL72 延续了相同的设计理念。每颗 Rubin GPU 配备最高 288 GB 的 HBM4 和 3.0 TB/s 的 NVLink 6 带宽,使整个机架的 HBM4 总容量约为 20.7 TB。Rubin 还支持内联内存张量加速器 (TMA) 描述符更新,因此一个共享描述符即可采用通用布局供所有专家使用,从而减少随专家数量增加而增长的元数据开销。Vera Rubin NVL72 extends the same design point. Each Rubin GPU brings up to 288 GB of HBM4 and 3.0 TB/s of NVLink 6 bandwidth, for roughly 20.7 TB of HBM4 across the rack. Rubin also adds inline memory tensor acceleratory (TMA) descriptor updates, so one shared descriptor can serve every expert with a common layout, reducing the metadata overhead that grows with expert count.

Wide-EP 决定权重数据存放在哪里。下一个调节手段决定 KV 缓存数据在计算出来之后,是否还会被重新计算。Wide-EP decides where weight bytes live. The next lever decides whether KV cache bytes, once computed, are ever computed again.

3. NVIDIA Dynamo 如何让每个缓存字节都发挥作用?3. How does NVIDIA Dynamo make every cached byte count?

键值(KV)缓存会存储此前处理过的令牌的中间注意力计算结果,以便模型重用这些结果,而不必重新计算。这种推理状态是临时的,需要时可以被驱逐并重新计算,但只有在得到重用时,KV 缓存才有价值。智能体工作负载中充满了重用机会:系统提示、工具模式、共享文档,以及多步骤任务不断增长的历史记录。但如果请求落到一块未保存其前缀的 GPU 上,或者该前缀刚刚被驱逐,系统就得再次进行预填充。数据明明存在,只是放错了地方。The key-value (KV) cache stores intermediate attention calculations from previously processed tokens so the model can reuse them instead of recomputing them. This inference state is ephemeral and can be evicted and recomputed when needed, but KV cache is only valuable if it is reused. Agentic workloads are full of reuse opportunities: system prompts, tool schemas, shared documents, and the growing history of a multistep task. But if a request lands on a GPU that does not hold its prefix, or if that prefix was evicted moments earlier, the system pays for prefill again. The bytes existed; they were just in the wrong place.

NVIDIA Dynamo 是弥合这一差距的分布式服务层。它将 KV 缓存视为整个 GPU 集群的资源,而非每个 GPU 各自的副产品,并通过三项协同设计的能力实现这一点:NVIDIA Dynamo is the distributed serving layer that closes this gap. It treats KV cache as a fleet-wide resource rather than a per-GPU side effect, and it does so through three co-designed capabilities:

  • KV 感知路由:Dynamo 路由器会跟踪 KV 块的位置,并在分配请求时同时考虑缓存前缀的重叠程度和工作节点负载。它会权衡已有上下文与将任务发送到繁忙 GPU 的成本,并将原本可能需要重新计算的内容转化为缓存命中。
    KV-aware routing: The Dynamo router tracks where KV blocks reside and considers both cached-prefix overlap and worker load when placing requests. It balances existing context against the cost of sending work to an utilized GPU and turns potential recomputations into cache hits. 
  • 分离式服务:Prefill 和 decode 分别运行在独立的 GPU 集群中,并根据各自的计算和内存特征配置规模。Decode GPU 可将 HBM 专用于 KV 缓存和批处理大小,而不必为突发的 Prefill 预留余量。
    Disaggregated serving: Prefill and decode run on separate GPU pools, each sized for its own compute and memory profile. Decode GPUs can dedicate HBM to KV cache and batch size rather than reserving headroom for bursty prefill.
  • KV Cache Runner(KVCR):它会跟踪每个块在已配置的 GPU、固定页 CPU 内存和存储层级中的位置,包括本地 SSD 和已挂载的网络文件系统。当后续请求需要时,可以恢复保存在 HBM 之外的前缀,使有用的上下文在被 GPU 驱逐后仍能保留,并继续节省预填充开销。KVCR 使用 NVIDIA Inference Xfer Library(NIXL)处理存储传输路径,使缓存块能够在 GPU 处理其他任务时进行迁移。KVCR 还支持分布式复用:路由器提供的提示可帮助选定的工作节点从对等节点检索缓存上下文,同时由推理引擎继续控制 GPU 内存和本地主机卸载。额外的 KVCR-Guard 功能可在引擎发生故障时保留已提交、由 KVCR 管理的主机内存缓存,前提是守护服务和主机仍可用。
    KV Cache Runner (KVCR): This tracks where every block lives across configured GPU, pinned CPU, and storage tiers, including local SSDs and mounted network filesystems. A prefix preserved outside HBM can be restored when a later request needs it, allowing useful context to survive GPU eviction and continue saving prefill work. KVCR uses the NVIDIA Inference Xfer Library (NIXL) for its storage-transfer paths, allowing cached blocks to move while the GPU processes other work. KVCR also enables distributed reuse, with router-provided hints helping a selected worker retrieve cached context from a peer, while the inference engine retains control of GPU memory and local host offloading. The additional KVCR-Guard feature preserves committed KVCR-managed host-memory cache across an engine failure as long as the guard service and host remain available. 
Diagram showing a Dynamo router, prefill and decode GPUs linked by NIXL, and KV cache storage spanning GPU memory, CPU memory, SSDs, and network storage.
Figure 6. Dynamo combines KV-aware routing, disaggregated serving, and tiered KV cache reuse.

Dynamo 的 KV 缓存卸载依赖快速检索:如果从 HBM 之外加载前缀比重复执行预填充更快,将其保存在 HBM 之外就能节省时间。NIXL 将这条卸载路径连接到外部存储系统。在分别进行的验证测试中,存储厂商 VAST Data 和 WEKA 展示了各自的性能:通过 GPUDirect Storage 向一块 H100 GPU 提供 35 GB/s 的吞吐量;通过自定义 NIXL 插件,在八块 H100 GPU 上实现高达 270 GB/s 的聚合读取吞吐量。这些测试表明,外部存储能够为受测 GPU 系统提供 KV 缓存,而不会成为传输瓶颈,从而支持超出 HBM 容量的缓存。VAST 的另一项独立测试展示了响应时间方面的优势:在 DGX H100 系统上使用 vLLM 和 LMCache 时,对于采用 130K token 提示词的 Qwen3-32B,加载已存储的 KV 缓存而非重新计算,可缩短首 token 生成时间。Dynamo’s KV-cache offloading depends on fast retrieval: Preserving a prefix outside HBM saves time when loading it is faster than repeating prefill. NIXL connects this offloading path to external storage systems. In separate validation tests, storage vendors VAST Data and WEKA demonstrated 35 GB/s to one H100 GPU using GPUDirect Storage and up to 270 GB/s of aggregate read throughput across eight H100 GPUs through a custom NIXL plugin, respectively. These tests showed that external storage could supply KV cache to the tested GPU systems without becoming the transfer bottleneck, supporting cache capacity beyond HBM. A separate VAST test demonstrated the response-time benefit: Using vLLM and LMCache on a DGX H100 system, loading stored KV cache instead of recomputing it reduced time to first token for Qwen3-32B with a 130K-token prompt. 

Dynamo 负责协调缓存数据的存放位置及其返回时机。接下来的两个调节项会扩展该上下文可用的容量,先从 CPU 内存开始。Dynamo coordinates where cached bytes go and when they come back. The next two levers expand the capacity available for that context, starting with CPU memory.

4. NVIDIA Vera CPU 如何避免空闲上下文占用 HBM?4. How does the NVIDIA Vera CPU keep idle context from wasting HBM?

智能体推理并非一次不中断地完成。单个会话会在 GPU 模型计算步骤与 CPU 侧工作之间交替进行:工具调用、代码执行、检索、数据库查询和沙箱评估。在这些间隙中,任何保留在 HBM 中的会话 KV 缓存都会占用容量,却无法用于当前活跃的 token 生成;与此同时,其他请求也在争用同一批内存。Agentic inference does not run in one uninterrupted pass. A single session alternates between GPU model steps and CPU-side work: tool calls, code execution, retrieval, database queries, and sandboxed evaluation. During each of those gaps, any session KV cache retained in HBM occupies capacity without serving active token generation, while other requests compete for the same bytes.

Timelines contrast slower tool calls requiring KV cache rebuilding with faster Vera calls that keep the cache in HBM.
Figure 7. Faster tool calls on Vera keep the KV cache in HBM, avoiding rebuilding and starting the next model step sooner.

在满负载运行的 AI 工厂中,GPU 不会等待。工具调用运行期间,它会处理新的请求;间隔越长,原会话的 KV 缓存就越可能被驱逐,以腾出空间。工具返回后,GPU 可能不得不通过完整的预填充来重建上下文,而不是从缓存状态继续执行。因此,CPU 速度慢会让 HBM 承受双重代价:先是闲置驻留占用,随后又要重新计算。In a fully subscribed AI factory, the GPU does not wait. It takes on new requests while the tool call runs, and the longer the gap, the more likely the original session’s KV cache is evicted to make room. When the tool returns, the GPU may have to rebuild that context through a full prefill rather than resume from a cached state. A slow CPU therefore costs HBM twice: first as idle residency, then as recomputation.

NVIDIA Vera CPU 从这两个方面着手解决这一问题:The NVIDIA Vera CPU attacks both sides of this problem:

  • 更短的间隔:88 个 Olympus 核心带来快 1.8 倍的单线程性能、比 x86 CPU 低 40% 的满载峰值延迟,以及每核高达 14 GB/s 的内存带宽。更快、更可预测的工具调用缩短了 KV 缓存面临驱逐压力的时间窗口。
    Shorter gaps: 88 Olympus cores deliver 1.8x faster single-threaded performance, 40% lower peak loaded latency than x86 CPUs, and up to 14 GB/s of memory bandwidth per core. Faster, more predictable tool calls shrink the window in which KV cache is exposed to eviction pressure.
  • 快速存放上下文的空间:每颗 Vera CPU 可提供最高 1.5 TB 的 LPDDR5X,容量是单个 Rubin GPU 的 HBM4 容量的 5 倍以上。NVIDIA NVLink-C2C 以 1.8 TB/s 的速度将其与 Rubin 进行一致性互连,带宽约为 x16 PCIe Gen 6 链路(256 GB/s)的 7 倍。
    A fast place to park context: Each Vera CPU provides up to 1.5 TB of LPDDR5X, more than 5x the HBM4 capacity of a single Rubin GPU. NVIDIA NVLink-C2C connects it coherently to Rubin at 1.8 TB/s, roughly 7x the 256 GB/s of an x16 PCIe Gen 6 link.

这些能力共同改变了空闲会话的成本结构。Dynamo 的 KV Block Manager 无需将 KV 缓存一直保留在 HBM 中或将其丢弃,而是可以在工具调用期间将其暂存于 Vera 内存中,并在智能体恢复运行时通过 NVLink-C2C 将其取回。HBM 可以专用于正在生成 token 的会话,而暂停的会话也无需为 prefill 重复付费。Together, these capabilities change the economics of an idle session. Instead of holding its KV cache in HBM or discarding it, Dynamo’s KV Block Manager can stage it in Vera memory for the duration of the tool call and bring it back over NVLink-C2C when the agent resumes. HBM stays dedicated to sessions that are actively generating tokens, and the paused session avoids paying for prefill twice.

Diagram showing an inactive session’s KV cache moving between Rubin GPU HBM and Vera CPU host memory over NVLink-C2C.
Figure 8. Vera Rubin offloads inactive KV caches to host memory, freeing GPU HBM for active sessions.

Vera 内存属于温层,容量适合存放会在一个轮次内再次用到的上下文。对于必须跨轮次、跨代理和跨节点留存的上下文,AI 工厂还需要一个容量更大的层级。Vera memory is the warm tier, sized for context that will return within a turn. For context that must survive across turns, agents, and nodes, the AI factory needs a tier that is larger still.

5. NVIDIA CMX 如何在整个 pod 中扩展上下文内存?5. How does NVIDIA CMX extend context memory across the pod?

将每个可复用的 KV 缓存字节都保留在 GPU 或主机内存中,会限制可用于活动推理的容量;但丢弃这些缓存又可能导致重新计算。多轮会话、长时程任务以及共享工作内存的多智能体工作流都会生成之后还会再次用到的 KV 缓存,而再次使用时往往已是几分钟后,且经常位于另一台节点上。更长的上下文窗口和更多并发会话,使 KV 缓存容量需求超出 GPU HBM(下图图 9 中的 G1)和主机内存(G2)的承载能力。传统存储层级并非为这类数据而设计。本地 SSD(G3)受限于单个节点,而共享企业存储(G4)面向持久数据,带有临时 KV 缓存并不需要的复制和元数据开销。Keeping every reusable KV-cache byte in GPU or host memory limits capacity for active inference, but discarding it can force recomputation.. Multi-turn sessions, long-horizon tasks, and multi-agent workflows that share working memory all generate KV cache that will be needed again, often minutes later and often on a different node. Longer context windows and more concurrent sessions increase KV-cache capacity requirements beyond GPU HBM (G1 in Figure 9 below) and host memory (G2). The traditional hierarchy was not designed for this data. Local SSDs (G3) are bound to one node, while shared enterprise storage (G4) is built for durable data and carries replication and metadata overhead that ephemeral KV cache does not need.

NVIDIA CMX 上下文内存存储通过新增的 G3.5 层级弥合这一差距:采用以太网连接的闪存,在 Pod 级别共享,并专门针对 KV 缓存进行优化。它基于 NVIDIA STX 参考设计构建,并围绕四个层面进行协同设计:NVIDIA CMX context memory storage closes this gap with a new G3.5 tier: Ethernet-attached flash, shared at the pod level, and optimized specifically for KV cache. It is built on the NVIDIA STX reference design and co-designed across four layers:

  • 存储处理:NVIDIA BlueField-4 STX 存储处理器负责管理 NVMe SSD、运行存储服务,并卸载 KV 缓存数据传输、数据完整性校验和加密任务。其集成的 NVIDIA Vera CPU 可加速 CPU 侧的存储处理,将智能体执行所用的同一 CPU 架构扩展到存储数据路径中。
    Storage processing: The NVIDIA BlueField-4 STX Storage Processor manages the NVMe SSDs, runs storage services, and offloads KV-cache data movement, data integrity and encryption. Its integrated NVIDIA Vera CPU accelerates CPU-side storage processing, extending the same CPU architecture used for agent execution into the storage data path.
  • 网络:NVIDIA Spectrum-X Ethernet 可在计算节点与 CMX 存储节点之间提供低延迟、高带宽的 RDMA 访问。
    Networking: NVIDIA Spectrum-X Ethernet provides low-latency, high-bandwidth RDMA access between compute nodes and CMX storage nodes.
  • KV 感知型服务:NVIDIA DOCA Memos 在 BlueField-4 上提供 KV 感知型服务和 I/O 控制,并将上下文视为用于放置和共享的一等资源。
    KV-aware services: NVIDIA DOCA Memos provides KV-aware services and I/O control on BlueField-4, treating context as a first-class resource for placement and sharing.
  • 服务集成:Dynamo 和 NIXL 让 CMX 在整个 pod 中呈现为一个无缝的上下文层,预先暂存上下文,并将请求路由到 KV 缓存已所在的位置。
    Serving integration: Dynamo and NIXL make CMX appear as one seamless context tier across the pod, prestaging context and routing requests to where KV cache already resides.
Memory hierarchy highlighting CMX’s G3.5 KV-cache tier between local storage and network storage.
Figure 9. NVIDIA CMX adds a shared G3.5 tier for pod-wide KV-cache capacity and reuse

Pod 级设计能够提升每个字节的价值。在一个节点上只需计算一次的前缀,就可以在 Pod 中兼容的模型实例间重复使用,因此共享文档、工具或工作记忆的智能体可以避免重复进行预填充。跨 Pod 汇集上下文存储,可减少节点间 KV 缓存的重复存储和闲置容量,从而扩展推理可用的 GPU 有效内存。通过预先将可复用的上下文加载到 GPU 或主机内存中,CMX 可减少推理停顿;其针对 KV 缓存优化的存储层则能降低提供这些上下文时的功耗开销。这些能力结合起来,使 CMX 在长上下文推理中,相较于传统存储,能够实现最高 5 倍的每秒令牌数提升和最高 5 倍的能效提升。The pod-level design is what raises the value of each byte. A prefix computed once on one node can be reused across compatible model instances in the pod, so agents that share documents, tools, or working memory can avoid duplicate prefill. Pooling context storage across the pod reduces KV-cache duplication and stranded capacity across nodes, extending effective GPU memory for inference. By prestaging reusable context into GPU or host memory, CMX reduces inference stalls, while its KV-cache-optimized storage tier lowers the power overhead of serving that context. Together, these capabilities help CMX deliver up to 5x higher tokens per second and up to 5x better power efficiency compared with traditional storage for long-context inference.

五个杠杆如何协同发挥作用?How do the five levers work together?

每种杠杆都能消除一种不同类型的浪费。NVFP4 去掉数值不需要的位,Wide-EP 消除冗余的权重副本,Dynamo 消除重复计算,Vera 消除工具调用期间的闲置驻留,而 CMX 则支持跨节点共享和复用 KV 缓存。由于这些杠杆是作为一个整体内存系统设计的,而非彼此独立的组件,因此收益可以叠加:一个 4 位 KV 块在 HBM、Vera 内存和 CMX 中都能节省空间。Each lever removes a different kind of waste. NVFP4 removes bits a value does not need, Wide-EP removes redundant weight copies, Dynamo removes recomputation, Vera removes idle residency during tool calls, and CMX enables KV-cache sharing and reuse across nodes. Because these levers are designed as one memory system, not as independent parts, the gains stack: A 4-bit KV block saves space in HBM, in Vera memory, and in CMX alike.

其成果是一座 AI 工厂:衡量内存的标准不只是容量,更是每个字节能产生多少有用的 token。Vera Rubin NVL72 展示了这一点:在每块 GPU 配备相同 288 GB 内存的情况下,其每兆瓦吞吐量最高可达 GB300 NVL72 的 30 倍。随着智能体工作负载不断增长,每个字节都至关重要。The result is an AI factory that measures memory not by capacity alone, but by the useful tokens each byte produces. Vera Rubin NVL72 shows what that looks like: up to 30x the throughput per megawatt of GB300 NVL72, from the same 288 GB per GPU. As agentic workloads grow, every byte counts.

Video 1. In this episode of Inside the Architecture, we explore five ways NVIDIA optimizes memory use across the AI factory. Learn how model weights, KV cache, and memory tiers work together, and why efficiency depends on the full system.

了解更多Learn more

这项工作得益于 Wei-ming Chen、Shiyang Chen、Chao Ni、Mengdi Wang 和 Jeff Pool 的专业知识与工程贡献。This work was made possible through the expertise and engineering contributions of Wei-ming Chen, Shiyang Chen, Chao Ni, Mengdi Wang, and Jeff Pool.

值得记下

  1. 在 AI 工厂中,高带宽内存(HBM)是速度最快、成本最高、竞争也最激烈的内存层。每个用于冗余权重副本、空闲会话的 KV cache 或重新计算前缀的字节,都意味着少了一个用于生成 token 的字节。
  2. 问题不再是 GPU 拥有多少内存,而是每个字节能完成多少有效工作。
  3. 仅凭容量,无法解释在每块 GPU 都是 288 GB 的情况下为何能实现 30x 的提升。差别在于每个字节能完成多少有效工作。
  4. 每种手段都消除了一类不同的浪费:NVFP4 去掉数值不需要的位,Wide-EP 去掉冗余的权重副本,Dynamo 消除重复计算,Vera 避免工具调用期间内存被闲置占用,CMX 则支持在不同节点间共享和复用 KV cache。

← 回到本期 · 第 19 条