Skip to content

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.

Memory for the weights alone, by precision
Parameters16-bit8-bit4-bit
8 billion16 GB8 GB4 GB
32 billion64 GB32 GB16 GB
70 billion140 GB70 GB35 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

Memory for the weights of open-weight models, by precision
ModelParameters16-bit8-bit4-bitBasis
gpt-oss-20b21B (3.6B active)Not publishedNot publishedWithin 16 GB (as released, MXFP4)Runs within 16 GB as released, according to the model card
Gemma 4 12B12B26.7 GB13.4 GB6.7 GBGoogle's memory table
Gemma 4 26B A4B26B (4B active)57.7 GB28.8 GB14.4 GBGoogle's memory table
Qwen3-30B-A3B30.5B (3.3B active)61 GB30.5 GB15.3 GBCalculated from the parameter count
Gemma 4 31B31B69.9 GB34.9 GB17.5 GBGoogle's memory table
Qwen3-32B32.8B65.6 GB32.8 GB16.4 GBCalculated from the parameter count
Llama 3.3 70B70B140 GB70 GB35 GBCalculated from the parameter count
gpt-oss-120b117B (5.1B active)Not publishedNot publishedFits 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

Highest precision of each model that fits each GPU memory size
ModelLicenceSmall (32 GB GPU)Medium (NVIDIA L40S 48 GB)Large (NVIDIA H100 80 GB)
gpt-oss-20bApache 2.0As releasedAs releasedAs released
Gemma 4 12BApache 2.08-bit16-bit16-bit
Gemma 4 26B A4BApache 2.04-bit8-bit16-bit
Qwen3-30B-A3BApache 2.04-bit8-bit16-bit
Gemma 4 31BApache 2.04-bit8-bit8-bit
Qwen3-32BApache 2.04-bit8-bit8-bit
Llama 3.3 70BLlama 3.3 Community Licence (custom terms)NoNo4-bit
gpt-oss-120bApache 2.0NoNoAs 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 of our Private AI plans and hourly GPUs, in pounds
GPUMemoryHow you rent itPrice
32 GB GPU32 GBPrivate AI Small, monthly£625/month (list £745/month), plus £295 (list £395) setup
NVIDIA L40S48 GB GDDR6 with ECC, 864 GB/sPrivate AI Medium, monthly£895/month (list £1,095/month), plus £295 (list £395) setup
NVIDIA H10080 GBPrivate AI Large, a whole server, monthly£2,195/month (list £2,495/month), plus £295 (list £395) setup
Hourly GPU: the types in stockShown for each type in the panelPer second, from a prepaid balancePer-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

Facts were checked against these sources on 5 December 2026. Vendor terms change; check the source before relying on a detail.

FAQ

Frequently asked questions

How much VRAM do I need to run an LLM?

For the weights, about 2 GB per billion parameters at 16-bit, 1 GB at 8-bit and 0.5 GB at 4-bit, plus memory for context. A 32B model at 8-bit needs about 33 GB before context, so a 48 GB GPU is the practical size.

What GPU do I need for Llama 3.3 70B?

At 4-bit the weights take about 35 GB by simple arithmetic and more in real files, so an 80 GB GPU such as the NVIDIA H100 leaves room for context. At 8-bit the weights alone are about 70 GB; at 16-bit, about 140 GB, which needs several GPUs.

Can gpt-oss-120b run on one GPU?

Yes. OpenAI's model card says gpt-oss-120b fits a single 80 GB GPU such as the NVIDIA H100, as released, and gpt-oss-20b runs within 16 GB.

Does a mixture-of-experts model need less memory?

No. It uses fewer parameters per token, so it is faster, but all its parameters must be loaded. Gemma 4 26B A4B needs 28.8 GB at 8-bit according to Google, close to a dense model of the same size.

How much memory does context use?

It depends on the model. For Qwen3-32B at 16-bit it is 256 KiB per token: 8 GiB for one full 32,768-token conversation. Several people working at once multiply that.

Can I run a private LLM without a GPU?

Small models run on a processor, more slowly. For a team using a 30B-class model during the working day, a GPU with enough memory is the usual choice.

Get the GPU sized for you

We size, set up and run it: Private AI server, from £625/month (list £745/month). Test a model by the hour first: Hourly GPU, price on the page Not sure which fits? Ask an engineer; we reply in UK business hours.