In this article
Compare repeated decode with shape-changing requests, observing host overhead and whether replay selects the correct graph.
The b12262 pre-release skips a CUDA graph compatibility check when the graph is being reused. This change targets work on the host around replay. Its value depends on how often an inference server reaches that path and whether changes in request shape still select the appropriate graph.
What replay saves
A captured CUDA graph represents a sequence of device work that can be submitted again with less launch overhead. In a small decode step, host-side checks can become visible next to the useful kernel time. Removing a repeated check can therefore help even when the generated GPU instructions are identical. Measure host time around submission to identify that contribution.
Build a genuinely repeated workload
Use a fixed model and decode batch shape, allow capture and warmup to complete, then replay enough steps to measure steady state. Keep token lengths and concurrency controlled. Compare paired runs on the preceding and candidate revisions. Separately record the first capture so a faster warm replay cannot hide a more expensive startup.
Change the conditions that require another graph
Alternate the batch size, active sequence count and relevant input shape within supported limits. Verify that these transitions do not incorrectly retain a stale capture. Compare outputs against a known-good reference and inspect graph or recapture diagnostics when available. A performance result on one stable shape establishes only that replay case.
Read the service-level result
Measure tail latency and throughput with the server under its normal request mix. A host-bound decode can benefit more than a heavily compute-bound prefill. Report warm replay, graph changes and first use independently. Promote the candidate when both the recurring workload and transition fixtures satisfy the output and latency contract.
Primary sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.