Will it fit?
A few multiplications tell you if a setup fits, and how many users it holds.
Weight memory
Weight memory = parameters × bytes per weight. BF16, the usual format for serving, uses 2 bytes per weight. So a 7B model needs about 14 GB, and a 70B model about 140 GB. Formats with 1 byte per weight, like FP8 or INT8, halve that.
The KV cache budget
GPU memory minus weights minus overhead is the KV cache budget. It decides how many tokens can be in flight: held for requests running right now. On an 80 GB GPU, a 7B model in BF16 (14 GB) with about 6 GB of overhead leaves about 60 GB. At 0.5 MB per token, that's about 120,000 tokens.
Activations and overhead
While running, each layer makes in-between results called activations. The engine also keeps its own buffers, so never plan to fill memory to 100%. Engines like vLLM by default plan to use about 90% of GPU memory and keep the rest free. Fill it too tightly and a long prompt can run the server out of memory (OOM).
Users that fit
Max users at once ≈ KV budget ÷ (cache per token × tokens per request). The tokens a request holds, prompt plus answer so far, are its context. With a 40 GB budget, 0.5 MB per token and 2,000-token requests, each request needs 1 GB, so about 40 users fit. Double the context to 4,000 tokens and only about 20 fit.
Catch the impossible
A 70B model in BF16 needs about 140 GB for weights alone, so it can't run on one 80 GB GPU with any engine. At 1 byte per weight (70 GB) it loads, but leaves almost no room for the cache.
Remember
- Weights: parameters × bytes. 7B in BF16 is about 14 GB.
- What's left after weights and overhead is the KV budget.
- Leave headroom; don't plan for 100%.
- Users ≈ KV budget ÷ cache per request.
- Do the math before you rent the GPU.