Skip to content
vLLM error triage

vLLM Chunked Prefill & max_num_batched_tokens Startup OOM

torch.OutOfMemoryError: CUDA out of memory during profile_run with max_num_batched_tokens

vLLM profiles worst-case activation memory using --max-num-batched-tokens before allocating KV cache. A large batched token budget leaves insufficient HBM on tight GPUs.

Source checked against vLLM v0.32.0. Log wording and available flags may vary by release.

First action

Set --max-num-batched-tokens explicitly to 2048 or 4096 while keeping --enable-chunked-prefill active, or reduce --max-num-seqs.

Verify the change. Confirm profile_run completes with positive KV cache blocks and run a mixed long-prompt + decode load test.

Diagnose your vLLM log offline

Synthetic demonstration samples

Synthetic demonstration samples. Not customer telemetry.

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

Your logs are processed entirely in your browser and are never uploaded by this tool.

Add host kernel / dmesg or nvidia-smi context (optional)

100% local browser engine (same deterministic core as the Open VSX & VS Code extension). 0 bytes of log data uploaded.

Handling a production incident? Replay it with your team.