LLM hardware requirements: how to size GPU memory for a self-hosted model

The first question in every self-hosted LLM project is "what hardware do we need?". The answer comes from a few numbers: the size of the model, the precision it runs at, how long the conversations are and how many people use it at once. Get these right and the hardware choice becomes straightforward.
At Timeus Lab we size and install hardware for self-hosted LLMs. This guide shows the method.
What uses GPU memory when running an LLM?
GPU memory is used by three things: the model weights, the KV cache that holds the context of active conversations, and working memory of the serving software. Weights are fixed for a given model and precision. The KV cache grows with context length and with the number of conversations served at the same time.
How much memory do the weights need?
The weights need roughly the number of parameters multiplied by the bytes per parameter.
| Precision | Bytes per parameter | 8B model | 32B model | 70B model |
|---|---|---|---|---|
| 16-bit | 2 | about 16 GB | about 64 GB | about 140 GB |
| 8-bit | 1 | about 8 GB | about 32 GB | about 70 GB |
| 4-bit | 0.5 | about 4 GB | about 16 GB | about 35 GB |
Quantisation to 8 or 4 bits reduces memory and often keeps quality close to the original, but the effect should be tested on your own tasks.
How much does the KV cache add?
The KV cache stores information about every token in the context of every active conversation. Its size depends on the model's architecture, the context length and the number of parallel requests. For long documents and many users, it can take as much memory as the weights or more. Serving engines that manage this memory efficiently, such as vLLM, make a large difference.
What about mixture-of-experts models?
Mixture-of-experts (MoE) models, such as the large DeepSeek, Kimi and Qwen models, have a very large total number of parameters but use only a part of them for each token. All parameters must still be stored, so memory is sized by total parameters, while speed is closer to that of a smaller model. These models usually need one or more servers with eight data centre GPUs.
How do the number of users and speed affect sizing?
More simultaneous users need more KV cache memory and more compute. Response speed depends on memory bandwidth and GPU compute. A practical approach is to test the chosen model on candidate hardware with realistic prompts and user counts, then add headroom for growth.
A simple sizing method
- Choose two or three candidate models for your tasks.
- Pick a precision that keeps quality acceptable in your tests.
- Calculate weight memory from the table above.
- Estimate peak simultaneous users and typical context length.
- Add KV cache and overhead, then test on real hardware.
- Plan power and cooling, as described in building an AI server room.
Questions
Can one GPU serve a whole company?
For a small model and moderate use, sometimes yes. For larger models or many users, several GPUs are needed.
Is a gaming GPU enough?
For tests and small models, consumer GPUs can work. For production, data centre or workstation GPUs offer more memory, reliability and support.
Should we buy for the model we use today?
Buy for today with room for growth. Models change quickly, and memory is the resource that runs out first.