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.
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.
| Model | Levels passed |
|---|---|
| qwen3-coder:30b | 3 of 5 alone, 4 of 5 with tests written first |
| glm-4.7-flash | 3 of 5 alone, 5 of 5 with tests written first |
| gpt-oss:20b | 3 of 5 |
| devstral:24b | 0 of 5 |
| qwen2.5-coder:14b | 0 of 5 |
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.
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 / 8Q4 4.85 · Q5 5.69 · Q8 8.5 · FP16 16 bits. gpt-oss uses its published MXFP4 checkpoint size.
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 × tokensPlus runtime overhead for the GPU context and compute buffers: 0.2 GB + 5% of the weights.
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 + RAMAnything larger won't run without more hardware.
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 msSingle-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.