Sizing the KV-cache block pool vs. batch size with paged attention? #31
Answered
by
HumbleBee14
HumbleBee14
asked this question in
Q&A
-
|
When serving an LLM with paged attention (vLLM-style), how should I think about sizing the KV-cache block pool vs. batch size? I keep hitting
Numbers or war stories welcome. |
Beta Was this translation helpful? Give feedback.
Answered by
HumbleBee14
Jul 17, 2026
Replies: 1 comment 1 reply
-
|
Rule of thumb that has worked for me on A100/H100:
If you are still OOMing under bursts, it is almost always the peak concurrent sequence count, not steady state. Log |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
HumbleBee14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rule of thumb that has worked for me on A100/H100:
gpu_memory_utilizationfirst (e.g. 0.90 → 0.85) before cappingmax_num_seqs. Capping sequences throttles throughput harder than giving the block pool a little headroom.If you are still OOMing under bursts, it is almost always the peak concurrent sequence count, not steady state. Log
num_preemptions— if …