What fits on my GPU?
The memory a model needs is mostly its weights plus its KV cache. Pick a card size to see every model that fits, at BF16, 8-bit and 4-bit, with an 8K-token context.
The rule: parameters × bits ÷ 8 + 2 × L × K × h × 2 bytes × tokens ≤ 90% of the card.
How this is worked out
- Weights = parameters × bits per weight ÷ 8, every expert of a mixture of experts included (all of them must be in memory). 8-bit and 4-bit include one 16-bit scale per 32 weights (8.5 and 4.5 bits), as GGUF's Q8_0 and Q4_0 store them; popular 4-bit files that keep some layers at higher precision are 5 to 10% larger.
- KV cache = 2 × layers × KV heads × head size × 2 bytes per token (BF16), for the chosen context, one sequence. Models with sliding-window or chunked layers need less when the runtime honours the window; the figure here does not count on it. "Up to" is the longest context that still fits.
- Not included: activations and temporary buffers, the CUDA context (several hundred MB), the vision encoder of multimodal models, DeepSeek's multi-token-prediction module, more than one sequence at a time, and offloading weights to the CPU (which lets bigger models run, slowly).
- gpt-oss ships its experts in MXFP4 (4.25 bits a weight, the rest BF16): 13.8 GB for gpt-oss-20b and 65.2 GB for gpt-oss-120b as released, a little more than the 4-bit column.