Single GPU Serving One Prompt at a Time
When a user sends a 2,000-token prompt to an LLM API, inference runs in two distinct phases: **Prefill** processes all input tokens in parallel to produce the first token, and **Decode** generates one token at a time autoregressively.
Without batching, a single H100 GPU spends most of the decode phase waiting on HBM memory bandwidth to read model weights—leaving Tensor Cores under 10% utilized.
idea:Prefill is compute-bound (matrix-matrix math); decode is memory-bandwidth-bound (streaming gigabytes of weights for one token).