Can I Run This Model?
Enter your card's memory and bandwidth and a model's shape, and get a fit verdict, the largest context that fits, and the memory-bandwidth ceiling on tokens per second.
18.71 GB spare. Ceiling of about 124.2 tokens/s for one stream at this context — an upper bound from bandwidth alone, not a prediction.
- Weights
- 3.73 GB
- KV cache at this context
- 1.00 GB
- Runtime overhead
- 0.57 GB
- Total required
- 5.29 GB
- Your VRAM
- 24.00 GB
- Headroom
- 18.71 GB
- Largest context that fits
- 145,025 tokens
- Bytes read per decode step
- 4.73 GB
- Effective bandwidth
- 630 GB/s
- Single-stream ceiling
- 124.2 tok/s
- Time per token at the ceiling
- 8 ms
Why bandwidth, not TFLOPs, decides this
tokens/s ≤ (bandwidth × efficiency) ÷ (weight bytes + KV bytes so far)
Generating one token means running the whole model once. Every weight has to travel from memory into the compute units, and at batch size one each of those weights is used for a single multiply before it is discarded. That makes single-stream decoding a memory-bandwidth problem, not an arithmetic one — the card’s TFLOPs figure barely enters into it. Divide bandwidth by the bytes that must move per step and you have the fastest the hardware can possibly go.
The consequence is worth internalising: quantising a model to half the bits roughly doubles the ceiling, because the same computation moves half the bytes. It is the same reason a model that spills a few gigabytes into system RAM does not get slightly slower but catastrophically slower — the spilled portion now moves at PCIe or host memory speed, which is an order of magnitude down.
The fit half of the verdict is stricter than it looks. Fitting means fitting the weights, the KV cache for the context you actually intend to use, and the runtime’s working set, all at once. Plenty of setups load a model successfully and then fail thousands of tokens into a conversation, because the cache grows with every token and nothing warned anyone. If you want a specific context length, size for it up front rather than discovering the limit in production.