HS
HardwareStack

Can I Run This AI Model Locally?

Pick your GPU to see which open AI models it can run and how fast, or pick a model to see how much memory it needs and which GPUs can handle it.

Your Model
Qwen3-Coder 30B-A3B at Q4 needs about 19 GB

The most common download. Small quality loss.

Model weights
17 GB
Context (KV cache)
0.8 GB
Runtime overhead
1.1 GB
Total
19 GB

Runs entirely on a GPU with 22 GB of VRAM or more.

Apache 2.0 · Hugging Face

GPUs that run it entirely on the GPU

Smallest VRAM first. Speeds are estimates for one GPU.

Agentic coding test

From my own ASO experiment: 5 Ollama models each drove a coding agent through a ladder of 5 tasks on an RTX 5060 Ti 16 GB. One small coding test: 5 tasks, one run each. It's a single data point, not a ranking of the models.

On the 16 GB test GPU every model ran partly on the CPU at the test's context; that makes a model slower, not worse. Full results and method, or see how much VRAM each model needs.

How the estimate is calculated

The numbers follow how runtimes like llama.cpp, Ollama and LM Studio use memory. Here is exactly how they are produced.

1

Model weights

Every parameter is stored at the chosen compression level. Q4 averages just under 5 bits per weight once block scales are included; FP16 uses the full 16.

weights = parameters × bitsPerWeight / 8

Q4 4.85 · Q5 5.69 · Q8 8.5 · FP16 16 bits. gpt-oss uses its published MXFP4 checkpoint size.

2

Context memory (KV cache)

The model keeps keys and values for every token in the conversation. The size per token comes from each model's published architecture; sliding-window layers only keep their window.

kv = 2 × layers × kvHeads × headDim × 2 bytes × tokens

Plus runtime overhead for the GPU context and compute buffers: 0.2 GB + 5% of the weights.

3

Does it fit?

The desktop and driver hold about 2 GB of VRAM before a model loads, as measured on our test machine; a GPU that doesn't drive a screen has that much more. Whatever doesn't fit can spill into system RAM, of which we assume 75% is free for the model.

total ≤ VRAM − 2 GB → On GPU spill ≤ 75% of RAM → GPU + RAM

Anything larger won't run without more hardware.

4

Speed estimate

Generating a token means reading every active weight once, so speed is set by memory bandwidth. Mixture-of-experts models only read their active parameters, which is why they're fast for their size, though they use the GPU's bandwidth less efficiently (0.59 instead of 0.72).

seconds = gpuPart / (0.72 × gpuBW) + ramPart / (0.79 × ramBW) + 1 ms

Single-user generation speed. The constants are fitted to speeds we measured on an RTX 5060 Ti 16 GB; prompt processing is usually much faster.

Estimates are a guide, not a guarantee. Real memory use and speed vary with the runtime, its settings, drivers and operating system. GPU memory bandwidths are reference specifications.