LocalLLM Forum — Run it locally. Own your models.

vLLM keeps OOM-ing on 2×3090 with a 70B

D posted by DmitriAlmeida #inference#vllm 2 posts 233 views
D

I've been fighting this all evening. Trying to serve Qwen2.5 72B AWQ with vLLM on 2× RTX 3090 (48GB total) and the engine dies at startup with CUDA out of memory before it even builds the KV cache:

ValueError: The model's max seq len (32768) is larger
than the maximum number of tokens that can be stored
in KV cache (9,216 tokens)

My launch flags: --tensor-parallel-size 2 --gpu-memory-utilization 0.95 --max-model-len 32768. The AWQ weights take ~38GB, which leaves almost nothing for KV cache at 32k context — but I figured vLLM would just chunk it. What am I doing wrong?

2× 3090, P40 hoarder. The cluster grows.
T

Nothing is broken — the AWQ weights simply eat so much VRAM that 32k context physically doesn't fit. vLLM won't silently truncate; it refuses to start. Two sane options:

# option A: cap the context
--max-model-len 8192

# option B: offload KV to CPU RAM (slower, keeps long context)
--swap-space 16 --max-model-len 16384

Also drop --gpu-memory-utilization to 0.90 — at 0.95 there's no headroom for the activation memory spike during the first batch, which is the OOM you're actually hitting. With 8192 context and 0.90 util your 72B AWQ should start right up on 2×3090.

"If it fits in VRAM, it ships." — Tomás Beaumont, Porto
Want to join the discussion? Register or log in to reply. Register Log in
Reply
Ctrl+Enter to submit
post 1 of 2