Home > Research > StallBound

StallBound: The Memory-Bandwidth Limit of Chunked Prefill

A. Adib, S. Ahmed

NeurIPS 2026 On-Device Intelligence Workshop.

Summary

In chunked prefill, a long prompt is split into chunks with decode steps between them, and each chunk step reads all the model weights. The gap between tokens therefore has a minimum equal to that read time, at any chunk size. We measured this minimum on two devices. It grew in a straight line with weight size, with a slope set by memory bandwidth, and solving that line for a latency target gives the maximum model size for that device.

1Problem

whole prompt at onceprefilllong gapchunkedshorter gap
Figure 1: A server on one device alternates between prefill, which processes a new prompt, and decode, which generates tokens for requests already running. In chunked prefill, the prompt is split into small pieces, which shortens each gap between tokens. Each piece still requires a read of all the weights, so memory speed may set a minimum gap.

2Method

latency targetlarge modelmedium modelsmall modelchunk sizelongest gap
Figure 2: We ran models from about 1 GB to about 28 GB on a DGX Spark and an RTX PRO 6000, two devices with different memory bandwidth. We varied chunk size and recorded the longest gap between tokens. Past a certain model size, the target was missed at every tested chunk size.

3Findings

slower memoryfaster memorylatency targetlargest modellargest modelminimum gapweight data read per step
Figure 3: The minimum gap grew linearly with the amount of weight data read at each step, and memory bandwidth set the slope. Solving that line for a latency target yields the largest model for that device. Beyond that size, the options are a smaller model, a shorter prompt or faster memory.