Same model, same short prompt, 32 GB of memory each. In the simulation they differ only in effective read bandwidth: the width of the road between memory and the compute unit.
In this model every step reads . At {{bwBL}} GB/s that takes about {{TBL}} ms.
Click {{gbL}} GB to highlight the blocks behind this number on both machines.
| Computer A | Computer B | |
|---|---|---|
| Effective bandwidth | {{bwAL}} GB/s | {{bwBL}} GB/s |
| Read per token | {{gbL}} GB | {{gbL}} GB |
| Estimated token time | {{TAL}} ms | {{TBL}} ms |
| Estimated speed | {{tpsAL}} tokens/s | {{tpsBL}} tokens/s |
Simplification: a dense model, one generated sequence, {{gbL}} GB of weights read per token. We ignore other memory traffic and assume that decoding is limited by read bandwidth, not by compute.
This is the same weight block that just flowed from memory to the compute unit. It holds {{blockGBL}} GB and consists of millions of identical groups.
An illustrative example of a block format. Real formats may store other metadata, for example an extra offset, scales on several levels or groups of a different size. The weight and scale values in this group are examples.
The bandwidth estimate describes the stage that generates the next tokens (decode). That is what the measurement is compared with. Prompt processing (prefill) is shown separately.
{{ownFromSampleText}}
{{sampleNote}}
{{sampleAssumptionsText}}
llama-bench -m model.gguf -p 512 -n 128 -o json > result.json
{{tokenTimeText}}
Enter how many tokens per second (or milliseconds per token) you expect on your hardware before you run llama-bench. Only you can see the entry.
Ready-made examples from the editors: the weight size, the bandwidth of two computers, a hypothesis and, where available, a sample measurement with its source. This is not data from anyone's journal.