Discussion about this post

User's avatar
Nan Deng's avatar

On the point that chunked prefill doesn't reduce the work, I'd be curious how it interacts with prefix caching. If B's prompt shares a long system prompt with earlier requests, the cached chunks get skipped, so the effective chunk count can vary a lot per request. Does vLLM size the chunks before or after the cache lookup?

Abhishek Pan's avatar

Worth tuning --max-num-batched-tokens against p99 inter-token latency, not average time to first token. One 32K prompt landing mid-stream is exactly the stall an average hides.

No posts

Ready for more?