Skip to content
View original post on X: vLLMOfficial
Published

vLLM bounded SWA replay cuts prefill compute 30–40% after prefix hits

AIvLLM's bounded sliding-window attention (SWA) replay reruns only each request's last 128 tokens after a prefix hit, instead of replaying 40 × 128 tokens. With CUDA graphs, prefill compute drops 30–40% for layers 21–39.
vLLMOfficial
@vllm_project
View on X

A reply · the post it answers

2/ SWA bounded replay: rebuilding sliding-window KV exactly after a prefix hit means replaying 40 × 128 tokens. Bounded replay reruns only the last 128.

In prefill, layers 21–39 run only on each request's last 128 tokens. With CUDA graphs, prefill compute drops 30–40%.

Source details

vLLM · x.comPublished · added here

Original title: 2/ SWA bounded replay: rebuilding sliding-window KV exactly after a prefix hit means replaying 40 × 128 tokens. Bounded replay reruns onl...