Debug Foundry

Watch the GPU idle between requests — then fill every gap.

Turn it, pause it, drag through the steps. Then flip the scheduler and watch the idle time collapse.

Not a video. A small simulation of a serving GPU — request lanes below, token time sweeping left to right.

Drag to turn · scroll or pinch to zoom

Finished state of the continuous batching simulation

Requests waiting
3

1/8First step sentence

    0.0s
    Replay the ending with
    Traffic steady traffic

    What it's for

    Good to know

    Token time runs left to right; each filled cell is one generated token. Real systems schedule a mixed batch of prefills and decodes every iteration, and the exact utilization depends on traffic and memory — the mechanism, not the percentages, is the point.

    How it works, step by step

      Why the steps go in this order

      Before you rely on it

      Four lanes stand in for hundreds of concurrent sequences, token lengths are simplified, and the idle percentages are illustrative — real numbers depend on traffic, memory limits and prefill mix. The lockstep wait of static batching and the refill-on-finish of continuous batching are exactly as shown.

      References