NVIDIA Dynamo 推出会话级智能体推理优化
PyTorch 博客介绍了 NVIDIA Dynamo 面向智能体推理的会话级优化:用统一的 session_id(子会话附带 parent_session_id)把按请求处理的推理服务改造成“程序感知”系统。Dynamo 可直接识别 Claude Code、Codex、OpenCode 已发出的会话头,其他 harness 通过 X-Dynamo-Session-ID 接入,Hermes、OpenClaw 等已有翻译插件。文章还描述了会话感知路由与准入控制(移植 ThunderAgent 论文的调度器)、共享 KV cache 索引、Session-Prefix Indexer 与 KvHint 接口,以及用 DYN_REQUEST_TRACE=1 采集轨迹、AISimulate 离线模拟和 AIPerf 实机回放。
智能体负载的瓶颈更多在 KV cache 复用与调度而非单纯算力,会话级原语有望成为推理服务栈的通用做法。
TL;DR
Agentic workloads change the traffic an inference server sees. Unlike single-turn chat, an agent session can involve a large initial prefill, repeated model calls, and subagents running in parallel, with KV cache remaining resident while tools execute between turns.
This technical blog post details how NVIDIA Dynamo uses a unified, session level identifier to transform request-level serving infrastructure into a program-aware system, unlocking session-aware routing, shared KV cache indexing, and programmatic cache movement across vLLM and SGLang.
Introduction
Agentic workloads have changed the shape of the traffic an inference server sees. A coding session opens with a large prefill, often tens of thousands of tokens of system prompt, tool definitions, and user-specific guidance, and every turn after that appends to a context the session resends in full. One task fans out into dozens of such calls, alongside short and long lived subagents running in parallel. Most of a session’s wall-clock time passes between tool calls, with its context sitting resident in the KV cache while nothing generates. Serving these well comes down to how much of that context a system keeps resident and reuses, and how many sessions it holds at once while still meeting latency targets This contrast between agentic workloads and that of a standard chatbot is shown in Figure one.
#NVIDIA Dynamo#NVIDIA#vLLM#SGLang#Claude Code#Codex#OpenCode#OpenClaw#AIPerf#ThunderAgent