Guide
Private LLM hardware requirements and VRAM sizing
Published · 7 min read
Short answer
A self-hosted LLM needs enough GPU memory (VRAM) for its weights plus its context. The weights take about 2 GB per billion parameters at 16-bit, 1 GB at 8-bit and 0.5 GB at 4-bit, so a 32B model needs about 66 GB, 33 GB or 16 GB. Context comes on top: Qwen3-32B uses 256 KiB per token at 16-bit, 8 GiB for one full 32,768-token conversation. In practice a 32 GB GPU runs 30B-class models at 4-bit, a 48 GB GPU such as the NVIDIA L40S runs them at 8-bit, and an 80 GB GPU such as the NVIDIA H100 runs gpt-oss-120b, or Llama 3.3 70B at 4-bit.
Get the GPU sized for you. See how and what it costs
The rule of thumb: parameters times bytes
A model's weights are a list of numbers, one per parameter. At 16-bit each number takes 2 bytes, at 8-bit 1 byte and at 4-bit half a byte. So memory for the weights is roughly the parameter count in billions times 2, 1 or 0.5, in gigabytes.
| Parameters | 16-bit | 8-bit | 4-bit |
|---|---|---|---|
| 8 billion | 16 GB | 8 GB | 4 GB |
| 32 billion | 64 GB | 32 GB | 16 GB |
| 70 billion | 140 GB | 70 GB | 35 GB |
Real 4-bit files are a little larger than this, because common 4-bit formats store a scaling factor with every block of weights; the widely used GGUF Q4_K format works out at 4.5 bits per weight. Lower precision also costs some answer quality, so 8-bit is a common compromise when it fits.
Weights for popular open-weight models
| Model | Parameters | 16-bit | 8-bit | 4-bit | Basis |
|---|---|---|---|---|---|
| gpt-oss-20b | 21B (3.6B active) | Not published | Not published | Within 16 GB (as released, MXFP4) | Runs within 16 GB as released, according to the model card |
| Gemma 4 12B | 12B | 26.7 GB | 13.4 GB | 6.7 GB | Google's memory table |
| Gemma 4 26B A4B | 26B (4B active) | 57.7 GB | 28.8 GB | 14.4 GB | Google's memory table |
| Qwen3-30B-A3B | 30.5B (3.3B active) | 61 GB | 30.5 GB | 15.3 GB | Calculated from the parameter count |
| Gemma 4 31B | 31B | 69.9 GB | 34.9 GB | 17.5 GB | Google's memory table |
| Qwen3-32B | 32.8B | 65.6 GB | 32.8 GB | 16.4 GB | Calculated from the parameter count |
| Llama 3.3 70B | 70B | 140 GB | 70 GB | 35 GB | Calculated from the parameter count |
| gpt-oss-120b | 117B (5.1B active) | Not published | Not published | Fits one 80 GB GPU (as released, MXFP4) | Fits a single 80 GB GPU as released, according to the model card |
Two things in this table surprise people. First, a mixture-of-experts model such as Gemma 4 26B A4B or Qwen3-30B-A3B uses only a few billion parameters per token, but all of its parameters must sit in memory; Google says so plainly for Gemma 4. It is faster than a dense model of the same size, not smaller. Second, gpt-oss is released in a 4-bit format (MXFP4), so OpenAI publishes its memory need rather than a 16-bit figure: within 16 GB for gpt-oss-20b, a single 80 GB GPU for gpt-oss-120b.
Memory for context: the part people forget
While the model reads your prompt and writes its answer, it keeps a working memory for every token, called the KV cache. Its size per token is 2 x layers x key-value heads x head size x bytes per number.
Worked example, from Qwen3-32B's published configuration: 64 layers, 8 key-value heads and a head size of 128. At 16-bit that is 2 x 64 x 8 x 128 x 2 bytes = 262,144 bytes, or 256 KiB per token. A full conversation at its native 32,768-token context needs 8 GiB on top of the weights, and four people each with a long document open at once need 32 GiB.
That is why a model that just fits is a poor choice: there is no room left for long documents or for more than one person at a time. Serving software can reduce the cache, for example by storing it at 8-bit, but plan for it from the start.
Which models fit in 32, 48 and 80 GB
| Model | Licence | Small (32 GB GPU) | Medium (NVIDIA L40S 48 GB) | Large (NVIDIA H100 80 GB) |
|---|---|---|---|---|
| gpt-oss-20b | Apache 2.0 | As released | As released | As released |
| Gemma 4 12B | Apache 2.0 | 8-bit | 16-bit | 16-bit |
| Gemma 4 26B A4B | Apache 2.0 | 4-bit | 8-bit | 16-bit |
| Qwen3-30B-A3B | Apache 2.0 | 4-bit | 8-bit | 16-bit |
| Gemma 4 31B | Apache 2.0 | 4-bit | 8-bit | 8-bit |
| Qwen3-32B | Apache 2.0 | 4-bit | 8-bit | 8-bit |
| Llama 3.3 70B | Llama 3.3 Community Licence (custom terms) | No | No | 4-bit |
| gpt-oss-120b | Apache 2.0 | No | No | As released |
A model is shown as fitting when its weights take no more than 80% of the GPU memory, leaving the rest for context and the software that runs it; 4-bit weights are counted one eighth larger because 4-bit formats also store scaling factors. The figure shown is the highest precision that fits. Gemma 4 figures are Google's own; Qwen3 and Llama figures are calculated from the published parameter count; gpt-oss figures are OpenAI's.
For a team doing everyday office work, summarising, drafting and asking questions over documents, a 30B-class model at 8-bit on a 48 GB GPU is a sensible middle. The largest open-weight models, such as gpt-oss-120b, need 80 GB.
The GPUs we offer, and their memory
| GPU | Memory | How you rent it | Price |
|---|---|---|---|
| 32 GB GPU | 32 GB | Private AI Small, monthly | £625/month (list £745/month), plus £295 (list £395) setup |
| NVIDIA L40S | 48 GB GDDR6 with ECC, 864 GB/s | Private AI Medium, monthly | £895/month (list £1,095/month), plus £295 (list £395) setup |
| NVIDIA H100 | 80 GB | Private AI Large, a whole server, monthly | £2,195/month (list £2,495/month), plus £295 (list £395) setup |
| Hourly GPU: the types in stock | Shown for each type in the panel | Per second, from a prepaid balance | Per-second rate shown in the panel; minimum top up £25 |
Memory bandwidth matters too: a model reads all its active weights for every token it writes, so faster memory means faster answers. For sizing, though, memory capacity comes first: if the model does not fit, speed does not matter.
CPU, RAM and disk
- Disk. Room for the model files at the precision you run, plus a spare copy while you switch models. A 32B model at 8-bit is about 33 GB of files.
- CPU and RAM. With the whole model on the GPU, the processor mostly handles requests and the web interface rather than the model itself.
- One GPU or several. Splitting a model across GPUs works, but runs best with fast links between them and takes more setup. Choosing a model that fits one GPU is simpler to run.
Sources
- OpenAI: gpt-oss model card on Hugging Face (opens in a new tab)
- Google: Gemma 4 inference memory requirements (opens in a new tab)
- Qwen: Qwen3-30B-A3B model card (opens in a new tab)
- Qwen: Qwen3-32B model card (opens in a new tab)
- Meta: Llama 3.3 70B Instruct model card (opens in a new tab)
- Qwen: Qwen3-32B configuration (layers, key-value heads, head size) (opens in a new tab)
- Hugging Face: GGUF quantisation types (Q4_K, 4.5 bits per weight) (opens in a new tab)
- NVIDIA: L40S specifications (opens in a new tab)
- NVIDIA: H100 specifications (opens in a new tab)
Facts were checked against these sources on 5 December 2026. Vendor terms change; check the source before relying on a detail.