Best GPU for local LLMs: what fits in each VRAM tier
GuideBy Lucas Matías García TorresUpdated (first published )Data checked 5 min read
Reviewed by Lucas Matías García Torres on . How we work.

Short answer
The best GPU for a local LLM is the one whose VRAM fits your model. In our validated calculation, an 8B model in Q4_K_M needs 8 GB at a short context and 12 GB at 32K tokens, a 14B model fits 12 GB at short context and 16 GB at 32K, 24B to 35B models need 24 GB, and a 32B model with 32K context needs 32 GB. Memory bandwidth sets a speed ceiling. We quote no prices or benchmarks.
Prices and limits change often: check the vendor's page before you pay. How we make money.
The best GPU for local LLMs is the one whose video memory (VRAM) fits the model you want to run, because a model that does not fit runs far slower or not at all. This guide does not rank cards and quotes no prices or benchmarks, which we cannot verify and which change weekly. Instead it answers the question that decides the purchase: which models fit in 8, 12, 16, 24 and 32 GB of VRAM, using our validated memory formulas, NVIDIA's published specifications and Ollama's hardware documentation, all checked on October 6, 2026.
How much VRAM do you need to run a local LLM?
A model needs memory for its weights, for the key-value cache that grows with the conversation, and for a margin for the engine. Our calculator, tested against real GGUF file sizes (within 3%), gives these totals. Each cell is the smallest VRAM tier that fits the model in 4-bit Q4_K_M quantization, at two context lengths. We treat 1 GB as 1,000,000,000 bytes, which is conservative.
Table: smallest VRAM tier that fits (our calculation, Q4_K_M)
| Model | At 8,192 tokens of context | At 32,768 tokens |
|---|---|---|
| Qwen3 4B | 8 GB (4.7 GB used) | 12 GB (8.4 GB) |
| Qwen3 8B | 8 GB (7.3 GB) | 12 GB (10.9 GB) |
| Llama 3.1 8B | 8 GB (7.1 GB) | 12 GB (10.3 GB) |
| Gemma 3 12B | 12 GB (9.4 GB) | 12 GB (11.0 GB) |
| Qwen3 14B | 12 GB (11.5 GB) | 16 GB (15.5 GB) |
| gpt-oss 20B | 16 GB (15.1 GB) | 16 GB (15.7 GB) |
| Mistral Small 3.2 24B | 24 GB (17.1 GB) | 24 GB (21.1 GB) |
| Qwen3-Coder 30B-A3B | 24 GB (20.6 GB) | 24 GB (23.0 GB) |
| Qwen3.6 35B-A3B | 24 GB (23.2 GB) | 24 GB (23.7 GB) |
| Qwen3 32B | 24 GB (23.3 GB) | 32 GB (29.7 GB) |
| Llama 3.3 70B | more than 32 GB (46.9 GB) | more than 32 GB (55.0 GB) |
| gpt-oss 120B | more than 32 GB (66.8 GB) | more than 32 GB (67.7 GB) |
Read it as a rule of thumb for each tier:
- 8 GB: 4B to 8B models at a short context. At 32K tokens even an 8B model needs about 10 GB.
- 12 GB: 8B and 12B models with room for long context, and a 14B model at a short one.
- 16 GB: a 14B model with a long context, and gpt-oss 20B, which stores its weights in native 4-bit form.
- 24 GB: 24B to 35B models, including the coding mixture-of-experts models, at moderate context.
- 32 GB: a 32B model with a 32K context, or a 24B model in 8-bit quantization.
- Above 32 GB: Llama 3.3 70B needs about 47 GB at a short context and gpt-oss 120B about 67 GB, which is where cloud APIs start to compete. See LLM API pricing.
Mixture-of-experts models such as Qwen3-Coder 30B-A3B load all their weights, so they need memory for the full 30 billion parameters even though only about 3 billion are active per token. The active count affects speed, not the memory you need. To test your own case, use the VRAM calculator.
How much VRAM does each NVIDIA card have?
NVIDIA's own comparison page lists these memory configurations (checked October 6, 2026):
| Card | VRAM | Bandwidth |
|---|---|---|
| GeForce RTX 5090 | 32 GB | 1,792 GB/s |
| GeForce RTX 5080 | 16 GB | 960 GB/s |
| GeForce RTX 5070 Ti | 16 GB | 896 GB/s |
| GeForce RTX 5070 | 12 GB | 672 GB/s |
| GeForce RTX 5060 Ti | 16 / 8 GB | 448 GB/s |
| GeForce RTX 5060 | 8 GB | 448 GB/s |
| GeForce RTX 5050 | 8 GB | 320 GB/s |
| GeForce RTX 4090 | 24 GB | not listed |
| GeForce RTX 4080 SUPER | 16 GB | not listed |
| GeForce RTX 4080 | 16 GB | not listed |
| GeForce RTX 4070 Ti SUPER | 16 GB | not listed |
| GeForce RTX 4070 Ti | 12 GB | not listed |
| GeForce RTX 4070 SUPER | 12 GB | not listed |
| GeForce RTX 4070 | 12 GB | not listed |
| GeForce RTX 4060 Ti | 16 / 8 GB | not listed |
| GeForce RTX 4060 | 8 GB | not listed |
The RTX 5090 has 32 GB, the 5080, 5070 Ti, 4080 and 4070 Ti SUPER have 16 GB, the 5070 and 4070 have 12 GB, and the 5060 Ti and 4060 Ti come in 16 GB or 8 GB versions, so check the exact variant before you buy. The 4090 has 24 GB.
Why memory bandwidth matters
When a model fits entirely in the GPU, each new token requires reading the model's weights once, so memory bandwidth sets a ceiling on speed: tokens per second can never exceed bandwidth divided by the bytes of weights. NVIDIA publishes the bandwidth for its 50 series. Applying that formula to Llama 3.1 8B in Q4_K_M, which has 4.91 GB of weights, gives these upper limits:
Table: theoretical speed ceilings for Llama 3.1 8B Q4_K_M (our calculation)
| Card | VRAM | Bandwidth | Ceiling |
|---|---|---|---|
| GeForce RTX 5090 | 32 GB | 1,792 GB/s | 365 tokens/s |
| GeForce RTX 5080 | 16 GB | 960 GB/s | 195 tokens/s |
| GeForce RTX 5070 Ti | 16 GB | 896 GB/s | 182 tokens/s |
| GeForce RTX 5070 | 12 GB | 672 GB/s | 137 tokens/s |
| GeForce RTX 5060 Ti | 16 or 8 GB | 448 GB/s | 91 tokens/s |
| GeForce RTX 5060 | 8 GB | 448 GB/s | 91 tokens/s |
| GeForce RTX 5050 | 8 GB | 320 GB/s | 65 tokens/s |
These are ceilings, not measurements: real speed is lower because of overhead and the first-token wait, and we have not benchmarked any card. They explain why two cards with the same VRAM can feel different, and why the 5060 Ti with 16 GB can run a bigger model than the 5070 but at a lower ceiling.
Which GPUs does Ollama support?
Ollama's documentation says it supports NVIDIA GPUs with compute capability 5.0 or higher and driver version 550 or newer; AMD GPUs through ROCm (version 7), including Radeon RX, Radeon PRO, Ryzen APU and Instinct families, on Linux and Windows; Apple devices through the Metal API (the Apple M series, on macOS Sonoma 14 or newer); and additional GPUs on Windows and Linux through Vulkan. Software support matters as much as VRAM: a card that Ollama or llama.cpp cannot use gives you nothing, so check the support list for your exact model. Our guide to running an LLM locally shows the install steps.
What if the model does not fit?
You have five options, in the order we would try them:
- Use a smaller or more compressed model. Q3_K_M needs about 18% less memory for the weights than Q4_K_M (3.996 against 4.894 bits per weight in llama.cpp's table), at a quality cost that depends on the model.
- Shorten the context. The key-value cache is a straight line in the number of tokens (see the context window guide).
- Quantize the cache. Ollama's
OLLAMA_KV_CACHE_TYPEacceptsq8_0, which uses about half the memory of the defaultf16. - Accept offloading. Part of the model runs on the CPU from system RAM, which is slower. Run
ollama psand look for "100% GPU" to see whether a model fits completely. - Use an API instead. For a model above your VRAM tier, compare with the cost of an API.
Which VRAM tier should you aim for?
Without prices or benchmarks, the honest guidance is by the model you want: 8 GB for small assistants, 12 to 16 GB for the 8B to 14B class with long documents, 24 GB to try the 24B to 35B models that many people use for coding, 32 GB for a 32B model with room to spare. Whichever you choose, check the exact card variant, the memory bandwidth, whether your software supports it and the current retailer price, which this page does not give.
What we checked
- NVIDIA lists memory of 32 GB GDDR7 and 1,792 GB/s for the RTX 5090, 16 GB and 960 GB/s for the 5080, 16 GB and 896 GB/s for the 5070 Ti, 12 GB and 672 GB/s for the 5070, 16 GB or 8 GB and 448 GB/s for the 5060 Ti, 8 GB and 448 GB/s for the 5060 and 8 GB GDDR6 and 320 GB/s for the 5050; for the 40 series it lists 24 GB for the 4090, 16 GB for the 4080 SUPER, 4080 and 4070 Ti SUPER, 12 GB for the 4070 Ti, 4070 SUPER and 4070, 16 GB or 8 GB for the 4060 Ti and 8 GB for the 4060. (NVIDIA, )
- Ollama supports NVIDIA GPUs with compute capability 5.0 or newer and driver 550 or newer, AMD GPUs through ROCm (Radeon RX, Radeon PRO, Ryzen APUs and Instinct) on Linux and Windows, Apple devices through the Metal API and additional GPUs on Windows and Linux through Vulkan. (Ollama, )
- Ollama on macOS requires macOS Sonoma (v14) or newer with an Apple M series chip (CPU and GPU) or x86 (CPU only). (Ollama, )
- Running ollama ps and checking for 100% GPU under PROCESSOR shows that no CPU offloading occurs; a larger context length increases the memory required. (Ollama, )
- OLLAMA_KV_CACHE_TYPE accepts f16 (the default), q8_0 (about half the memory) and q4_0 (about a quarter) and requires Flash Attention. (Ollama, )
- llama.cpp's quantization table gives 3.996 bits per weight for Q3_K_M, 4.8944 for Q4_K_M, 5.7036 for Q5_K_M, 6.5633 for Q6_K and 8.5008 for Q8_0, measured on Llama 3.1 8B. (ggml-org / llama.cpp, )
- Our tier table and speed ceilings are calculations with the validated VRAM formula (weights plus key-value cache plus a 1 GiB margin, checked against real GGUF sizes within 3%) and the model configurations published on Hugging Face; the ceiling is bandwidth divided by the bytes of weights. (unsloth (Hugging Face), )
What may change
- New GPUs and models appear every few months and change which tier fits what; this page is reviewed quarterly.
- Prices and benchmarks are not included because they change weekly and we have not measured them.
- Software support for AMD, Intel and Apple GPUs changes with each Ollama and llama.cpp release.
Frequently asked questions
What is the best GPU for running LLMs locally?
There is no single best card: VRAM decides what you can run. Choose the tier that fits the models you want: 8 GB for 4B to 8B models, 12 to 16 GB for 8B to 14B models with longer context, 24 GB for 24B to 35B models and 32 GB for a 32B model with a long context. Then check bandwidth and software support.
How much VRAM do I need for an 8B model?
In our validated calculation, an 8B model in 4-bit Q4_K_M needs about 7 GB at 8,192 tokens of context, so it fits an 8 GB card, and about 10 to 11 GB at 32,768 tokens, so it needs a 12 GB card. In 8-bit Q8_0 it needs about 11 GB at 8,192 tokens.
How much VRAM does the RTX 5090 have?
NVIDIA lists 32 GB of GDDR7 and 1,792 GB/s of memory bandwidth for the GeForce RTX 5090. The RTX 5080 and 5070 Ti have 16 GB, the RTX 5070 has 12 GB, and the RTX 4090 has 24 GB. Check the exact variant before buying, since the 5060 Ti and 4060 Ti come in 8 GB and 16 GB versions.
Does a local LLM run on an AMD or Apple GPU?
Ollama's documentation says it supports AMD GPUs through ROCm on Linux and Windows, Apple devices through the Metal API on macOS Sonoma 14 or newer with an M-series chip, and other GPUs through Vulkan. Support depends on the exact card, so check the compatibility list before you buy.
What happens if a model does not fit in my VRAM?
Part of the model is offloaded to system memory and the CPU, which is slower, or it fails to load. You can use a smaller or more compressed model, shorten the context, quantize the key-value cache with OLLAMA_KV_CACHE_TYPE, or use an API. Run ollama ps and look for 100% GPU to see whether it fits.
Does memory bandwidth matter for local LLMs?
Yes. When a model fits in the GPU, every new token reads the model's weights once, so tokens per second cannot exceed bandwidth divided by weight bytes. For Llama 3.1 8B in Q4_K_M that ceiling is about 365 tokens per second on an RTX 5090 and 65 on an RTX 5050, in our calculation. Real speed is lower.
Sources
- Compare GeForce graphics cards (memory configuration and bandwidth), NVIDIA. Accessed October 6, 2026.
- Ollama: hardware support (NVIDIA, AMD ROCm, Apple Metal, Vulkan), Ollama. Accessed October 6, 2026.
- Ollama on macOS: system requirements, Ollama. Accessed October 6, 2026.
- Ollama: context length defaults and settings, Ollama. Accessed October 6, 2026.
- Ollama FAQ: context window, keep-alive, concurrency, Flash Attention, K/V cache quantization, multiple GPUs and GPU check, Ollama. Accessed October 10, 2026.
- llama.cpp: quantize (bits per weight and sizes by quantization type), ggml-org / llama.cpp. Accessed October 6, 2026.
- Llama 3.1 8B Instruct config.json (unsloth mirror of Meta's weights), unsloth (Hugging Face). Accessed October 1, 2026.
Spotted an error or an outdated price? Tell us and we will fix it.
Change history
- : Wording revised; no figure, date or source changed.
- : First published from NVIDIA's specifications, Ollama's hardware documentation and our validated VRAM formulas.
Next review: .
Part of our Local Models & Hardware guide.
Keep reading
- How much VRAM do you need to run an LLM locally?
Work out how much GPU memory a local LLM needs from its size, quantization and context length. Our formula is checked against 13 real model files.
- How to run an LLM locally on Windows, Mac or Linux
Install Ollama, pick a model that fits your memory, chat with it, check it runs on the GPU and connect other apps, with the official commands for each OS.
- Ollama vs LM Studio: which one should you use?
Ollama or LM Studio for running LLMs locally? Compare license terms, platforms, interface, local APIs and server use, from each project's own docs.
- What is a context window in a language model?
What a context window is, how big it is for Claude, GPT and Gemini in 2026, what happens when it fills up, why bigger is not always better and what it costs.
- LLM API pricing compared, with a cost calculator
API prices for OpenAI, Anthropic, Google and DeepSeek models per million tokens, plus a calculator with caching, batch discounts and tokenizer differences.
Other topics

Assistants & Chatbots
16 guides

LLM APIs & Costs
11 guides

Agents & Automation
8 guides

Language Models Explained
14 guides