Brifing

NVIDIA Dynamo Introduces Session-Aware Inference Routing for Agentic LLM Workloads

Unified session identifiers optimize KV cache reuse and admission control across execution tiers.

PyTorch Blog3 min

1Shifting Traffic Dynamics

Agentic inference fundamentally transforms serving cluster demands compared to standard chat. Instead of isolated user-model turns, agents trigger massive initial system prefills alongside tool execution cycles. The context expands monotonically across turns, remaining resident in precious cache memory while external tool environments execute steps outside the GPU.

2Request Versus Program Scope

Conventional inference routers evaluate requests in isolation, completely unaware of multi-turn agent harnesses. This request-centric routing triggers severe memory fragmentation under concurrent execution loads. Systems repeatedly evict live contexts between tool invocations, forcing costly prefill recalculations instead of leveraging resident memory blocks across subsequent trajectory steps.

3Unified Session Identification

Dynamo introduces a standardized session identifier across all architectural layers. This primitive unifies the router, inference engine, and cache manager into a program-aware topology. Downstream components track parent and child task relationships directly, bridging harness coordination with physical memory allocation across complex multi-agent execution trees.

4Native Harness Integration

The architecture natively extracts session headers emitted by established environments like Claude Code, Codex, and OpenCode. An internal normalized context struct parses root IDs and nested subagent lineages automatically. For alternative harnesses, Dynamo supplies dedicated integration plugins or accepts an explicit custom session header directly.

5Harness Inference Codesign

Observability frameworks traditionally track harness operations independently of underlying inference performance metrics. Dynamo closes this visibility gap by capturing shared, session-keyed traces. Teams inspect token output rates, tool call latency distributions, and cache metrics simultaneously across a unified timeline to eliminate cross-stack performance bottlenecks.

6Deterministic Workload Replay

Captured traces function as reusable synthetic benchmarks without re-executing external tool routines or proprietary model APIs. Sequence hashes become anonymized block tokens, preserving prefix sharing dynamics without exposing data. Engineers leverage these artifacts within offline simulators or live hardware benchmarks to evaluate alternative serving topologies reliably.

7Cache Occupancy Bottlenecks

During tool invocations, an agent's memory blocks occupy hardware memory despite zero compute generation. As concurrent active sessions multiply, collective working set footprints swiftly outgrow available device capacity. Standard stateless routers fail to detect this cumulative aggregate, inevitably prompting premature block evictions and heavy computational re-prefill penalties.

8ThunderAgent Scheduler Integration

Dynamo incorporates scheduler mechanics based on ThunderAgent research directly into its native Rust router implementation. Instead of introducing external proxy hops, the router monitors exact prompt and completion counters directly. It categorizes programs across distinct operational matrices, isolating active tool executions from reasoning decode steps.

9Admission State Machines

The scheduler transitions programs between reasoning and acting phases across active or paused states. When node memory nears saturation, acting sessions pause cleanly at tool boundaries. Rather than preempting active generation passes, Dynamo defers pending steps gracefully, freeing up memory capacity without discarding progress.

10Calculated Utilization Thresholds

Scheduling decisions evaluate worker utilization defined as aggregate acting token weight relative to total cache pool bounds. Hitting ninety-five percent utilization prompts pauses among the smallest acting programs until loads drop. An intermediate soft-demote band applies a priority penalty, establishing proactive backpressure prior to rigid suspensions.

11Hysteresis and Starvation Prevention

Program resumption requires utilization to drop below eighty-five percent, enforcing a strict ten percent hysteresis buffer to prevent thrashing. Resumed tasks receive temporary priority boosts alongside an absolute thirty-minute maximum pause cap. This deterministic pacing guarantees prompt re-admission while preventing execution starvation during continuous high-load intervals.

12System Architecture Implications

By transitioning inference stacks from stateless request handlers to session-aware systems, Dynamo stabilizes memory behavior for agentic architectures. Preventing unnecessary context evictions preserves compute cycles across iterative execution paths. This framework establishes the foundational pattern for orchestrating complex agent workloads efficiently across enterprise GPU infrastructure.

Original article: PyTorch Blog — NVIDIA Dynamo Introduces Session-Aware Inference Routing for Agentic LLM Workloads