Raising --gpu-memory-utilization to 0.99 to fix graph OOM
When graph workspace sits outside KV blocks or co-resident contexts consume memory, 0.99 leaves zero safety margin.
Operator task guide
After loading weights and profiling KV cache, vLLM captures CUDA graphs for discrete decode batch sizes so small-batch steps avoid Python kernel-launch overhead. Each captured graph retains workspace memory and can push tight GPU allocations into CUDA OOM right before the server reports ready.
Run a single controlled launch with --enforce-eager to isolate whether graph capture caused the OOM or kernel crash. If eager mode starts cleanly, trim capture batch sizes or slightly reduce --gpu-memory-utilization rather than disabling graphs permanently unless memory requires it.
Reviewed . Reference guidance is not a diagnosis of your workload.
Inspect the exact traceback and startup timestamp. Graph-capture OOMs appear after weight loading and KV block calculation, inside capture_model or cudagraph_wrapper calls.
grep -n -iE 'Capturing CUDA graphs|cudagraph|enforce-eager|OutOfMemoryError' vllm.logLaunch the exact same model and sequence settings with --enforce-eager. If startup succeeds, you have proved CUDA graph capture workspace exceeded remaining HBM headroom.
vllm serve YOUR_MODEL --enforce-eager --max-model-len 16384 --gpu-memory-utilization 0.88Instead of keeping eager mode permanently (which lowers small-batch decode throughput), constrain max capture size or tune --compilation-config capture sizes supported by your vLLM version, and inspect headroom.
# Inspect supported compilation and CUDA graph flags for your installed vLLM release
vllm serve --help | grep -iE 'cudagraph|compilation|enforce-eager'Benchmark both eager mode and tuned graph capture at production concurrency to verify peak HBM stays clear of OOM while meeting inter-token latency targets.
| Signal | What it means | Next action |
|---|---|---|
| OOM happens during Capture CUDA graphs; --enforce-eager boots cleanly | Graph capture workspace exceeded remaining HBM headroom. | Trim capture batch sizes or slightly adjust --gpu-memory-utilization. |
| Crash persists with --enforce-eager enabled | Weights, activations, or an attention kernel failed independently of CUDA graphs. | Investigate weight/KV capacity or CUDA_LAUNCH_BLOCKING=1 kernel errors. |
| Startup hangs or takes 10+ minutes inside graph capture | First-run torch.compile / Inductor compilation or slow IPC. | Check torch.compile cache persistence and verify /tmp and shm headroom. |
| Illegal memory access inside captured graph replay | Kernel bug or dynamic shape violation during graph execution. | Reproduce with --enforce-eager and CUDA_LAUNCH_BLOCKING=1. |
When graph workspace sits outside KV blocks or co-resident contexts consume memory, 0.99 leaves zero safety margin.
Disabling CUDA graphs increases CPU launch overhead on small decode batches; benchmark ITL first.
Always inspect the traceback line to separate weight loading, KV profiling, and graph capture.
Paste your startup log into the offline vLLM analyzer.
Debug Inductor, Triton, and stream-capture restrictions.
Separate allocator fragmentation from real HBM exhaustion.
Review all vLLM memory and EngineCore failure modes.
CUDA graph capture pre-allocates static memory pools and captures multiple batch-size execution graphs after weights and KV cache sizing complete, pushing borderline HBM usage over 100%.
Eager mode adds Python/CUDA kernel launch overhead, which primarily slows down small-batch decode inter-token latency. Large prefill-bound batches see less impact.
Limit maximum captured batch sizes via vLLM compilation/CUDA graph configuration flags for your installed release, or use piecewise CUDA graph modes where supported.
If torch.compile is enabled alongside graph capture, Triton and Inductor compile kernels on cold start. Persist the compilation cache across container restarts.
Get the likely cause, supporting evidence, and next safe steps with the same cloud reasoning used by paid plans. A crash the engine recognizes is answered in seconds, then checked by an independent AI review that updates this page when it finishes. A crash it does not recognize waits for the AI's own answer, which can take a few minutes. No account, card, or installation. Logs are masked at Denpex API ingress and are not saved to account history.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
No credit card. No automatic subscription. See whether Denpex helps with an incident you already understand.
Up to 50 diagnoses a day for 30 days. Verify your work email to activate an eligible company evaluation, then replay a resolved incident and compare the evidence and next steps with your team's confirmed cause.
Use the three free diagnoses to review your error and relevant evidence. Keep reference guidance separate from the cause and recovery status of your own workload.
Diagnose your incident