PagedAttention: choosing the block size and sharing prefixes
MediumConcept15 minRERSMLEPro outline
The question
Explain how PagedAttention maps a sequence onto KV blocks. What happens if the block size is too small or too large?
How does prefix caching share blocks between requests, and when does copy on write kick in?
What the interviewer is looking for
- Explains the block table from logical to physical blocks
- Says small blocks raise table and kernel overhead, large blocks waste the tail
- Explains reference counts for shared prefix blocks
- Explains copy on write when a shared block is appended to
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported MiniMax question type: PagedAttention block size, prefix caching with copy on write, chunked prefill and speculative decoding acceptance.
Reported in: mj.mianlingai.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official MiniMax question.