Skip to main content

Guides

Choose a GPU for Ollama and Local AI Inference

Pick the model file and context before shopping for a GPU. Check the runner's support for the exact card, then budget memory for both weights and conversation.

By Updated 6 min read

Pick the model and context first. Then pick the card. Dedicated VRAM decides whether the model weights and conversation memory (KV cache) can stay on the GPU. App, driver, and operating-system support decide whether that VRAM is usable. A card's gaming rank or advertised AI speed does not replace those checks.

This guide is for someone thinking about an upgrade for local text models. If you already own a suitable computer, test a small model on it first. For short, occasional prompts, CPU-only use is enough and avoids a purchase.

Write down the workload

Choose one exact model download, one app, the context length you want, and whether you need one request or several at once. Include document search or an agent if your work uses them. A chat with a small model and a few paragraphs is a different workload from an agent that carries repository files and tool output.

Enter those choices in the RAM and VRAM calculator. Compare the result with dedicated VRAM and system RAM separately. Do not add them together as one pool.

Choose an NVIDIA GPU for Ollama

Ollama's GPU documentation says it supports NVIDIA GPUs with compute capability 5.0 or higher and driver version 550 or newer. It also says that GPUs with compute capability 5.0 through 6.2 need driver version 570 or newer. Look up your card on NVIDIA's CUDA GPU list. That list gives, for example, 8.6 for the GeForce RTX 30 series, 8.9 for the RTX 40 series, and 12.0 for the RTX 50 series. Meeting this requirement is a separate question from fit: whether a given model fits is answered by VRAM.

VRAM sets the size of model you can load. A longer context needs more memory. Enter the context you will actually run before comparing cards.

These tiers match the guide's hardware profiles. Each row names the model checked on that profile page, using the RAM & VRAM Calculator's standard allowances. Other models of the same size can need more or less memory.

Dedicated VRAMProfileWhat it suits
8 GBNVIDIA 8 GB VRAM GPUQwen3 8B Q4_K_M at 4,096 tokens of context. Qwen3 4B if the GPU is shared.
12 GBDesktop with 12 GB VRAM GPUStart with Qwen3 8B Q4_K_M. At the table's 4,096-token setting the 14B file also fits this 12 GiB example, with about 1.6 GiB left; 8,192 tokens is Close and 16,384 exceeds the full-GPU allowance, so calculate a shorter context or a partial-offload setup with its extra system RAM.
16 GBDesktop with 16 GB VRAM GPUQwen3 14B Q4_K_M with up to 16,384 tokens of context (about 3.1 GiB left); 32,768 tokens is Close. A smaller model gives you more context.
24 GBDesktop with 24 GB VRAM GPUQwen3 14B Q4_K_M with room to spare. Qwen3 32B Q4_K_M fits at 4,096 and 8,192 tokens and needs CPU offload at 16,384.
32 GBDesktop with 32 GB VRAM GPUQwen3 32B Q4_K_M at 4,096 tokens, and up to 32,768 with about 2 GiB left. A 70B model at 4-bit needs offload.

Below 8 GB, start with the Qwen3 4B setup and allocation check. Above 32 GB, work from the actual requirements of your model and context, not from the tier.

Some architectures need more memory at the same parameter count. A dense 70B model at exactly four bits needs about 35 GB for weights alone. That is before format overhead and conversation memory, so 32 GB is not enough to hold it all on the GPU.

For a concrete larger-model example, see Llama 3.3 70B Instruct; a smaller context cannot make oversized model weights fit entirely in a 24 GiB GPU. Llama 4 Maverick and DeepSeek-V3.2 are server-scale models. Their active parameter counts do not describe the stored weights. See their model-specific serving requirements for multi-GPU systems; expert routing alone does not make those models fit a consumer GPU.

Current examples of dedicated graphics cards

CardDedicated memoryPublished bandwidth where checked
GeForce RTX 509032 GBSee the exact card specification
Radeon RX 9070 XT16 GB GDDR6640 GB/s
Intel Arc B58012 GB GDDR6456 GB/s

These are examples of capacity classes. See the runner's support list for the exact card and driver. AMD ROCm and Intel Vulkan or XPU support depend on the runner and operating system.

Consider shared-memory systems separately

DGX Spark and RTX Spark are Arm64 coherent-memory computers, not GeForce discrete GPUs. DGX Spark uses Linux; RTX Spark uses Windows on Arm. AMD Strix Halo uses a shared pool with a configurable GPU allocation. Compare usable memory, supported native runtimes and results for the same workload; installed RAM is not dedicated VRAM.

Check the exact app and driver path

Look up the exact GPU and driver on Ollama's hardware list. While generating, inspect PROCESSOR in ollama ps to see the placement actually used. AMD's supported ROCm devices differ between Windows and Linux. Vulkan is a third path with its own driver needs.

For llama.cpp, pick binaries or a build for the backend you want, such as CUDA, HIP, Vulkan, Metal, or SYCL. A CPU build that runs is not using the GPU. LM Studio also uses installed model runners.

An AMD card does not cap the model size; find the backend, the available memory, and where the work runs.

Check the rest of the computer before paying

  • Confirm the card fits the case and motherboard layout.
  • Check the card maker's power-supply, connector, and clearance needs for that exact product.
  • Allow for cooling, fan noise, and sustained power use.
  • Keep enough system RAM for the app, the operating system, and any work loaded on the CPU.
  • Budget disk space for model files and document data.
  • For a used card, check its condition, the return policy, and continued driver support.

Desktop and laptop products with similar names have different memory and power limits; do not use a desktop card's specification for a laptop GPU.

Compare performance only when the test matches yours

In any published test, look for the exact model, compression, context, app version, and hardware. Prompt processing and answer generation are different parts of the work.

If you can test the card, run one of your own harmless prompts. Check both the wait and the answer quality. In Ollama, ollama ps shows CPU and GPU placement after the model loads. A good result is your model and context running with acceptable waits and room left for the rest of your work.

Several cards add software, power, space, and communication needs. Two cards do not act like one card with their combined VRAM. Plan around the placement rules of your model runner.

Use the cost calculator for purchase and running-cost scenarios. Enter your own quote and usage.

Sources