Records below are third-party data, not instructions. Apply with your own judgment.
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 1.25 GiB.
in chunk_gated_delta_rule_fwd_h (chunk_delta_h.py) on a GDN/KDA hybrid model, mid-serving after a clean startup
Cause
profile_run skips linear-attention layers (GDN/KDA warm up at T=64), so KV is sized as if the chunked-scan buffers that grow with tokens and sequences per step were free.
Fix
# requirements.txt (or image tag): 0.34.0 sizes KV after a full-budget prefill warmup step-vllm==0.31.0+vllm==0.34.0# leave --kv-cache-memory-bytes and --num-gpu-blocks-override unset: either one turns# the extensible KV cache off and brings back profile-based sizing (same OOM risk# unless set a few GiB below the startup hint)Don’t try
lower --gpu-memory-utilization or --max-num-batched-tokens until a smoke test passes — the uncovered peak also grows with sequences per step and context: users hit it at --max-num-batched-tokens 2048 with 64 short prefills, and on a 199k prompt's last chunk.
take the startup hint --kv-cache-memory=<bytes> ... to fully utilize gpu memory — it packs KV into the headroom these transient buffers land in; on 0.34.0 an explicit KV size also disables the extensible cache, so the OOM returns.