How much VRAM do I need to run a local LLM?

Start from the model weights: billions of parameters × bits per weight ÷ 8 gives gigabytes. A 27B model at 4-bit is roughly 14–17 GB depending on the quantization format, an 8B model at 4-bit roughly 4–5 GB. Then add room for the context cache, which grows with context length and can need several more gigabytes at long contexts. On a 24 GB card such as the RTX 3090, a model around 30B can run at 4-bit in some setups. The real need depends on the model architecture, context length, cache format, concurrent requests and runtime, and you need headroom for runtime working memory as well as weights and cache.

Why the weights are only part of it

The KV cache stores the context the model is reading. It grows with the number of tokens, so the same model that fits at 8K context can run out of memory at 128K. Cache quantization and shorter contexts reduce it.

Limits

These are planning estimates. Runtimes, quantization formats and drivers change the real figure, so measure on the actual machine before buying hardware.

How Oxtane handles it

Our notes measure real cards, including Huihui Qwen3.8-27B W4A16 on an RTX 3090 24 GB processing about 128K tokens of input, with HyperQwen/vLLM, an int8 KV cache, one request at a time and image input turned off. The local LLM audit sizes GPU, VRAM, RAM and storage around your workload before you buy.

See it on MarketScope

Sources

Answer last checked:

Other questions

All questions →