Your rig

A100 40 GB · 40 GB

16 GB system RAM · Ampere · 1555 GB/s · 38.4 GB usable VRAM
Edit hardware Export as JSON

Context length

KV cache at f16, 128K tokens

Quality floor
Q8_0 — near-lossless Q6_K Q5_K_M Q4_K_M — recommended Q3_K_M Q2_K — damaged
KV cache type
System RAM (GB)
Runtime
Ollamallama.cppLM StudiovLLM

4 of 5 runtimes drive this device.

Allow CPU offload Include partial-offload fits

Offloaded layers run at 60 GB/s host bandwidth — expect single-digit tokens per second.

Which one should I actually run?

Best models for your A100 40 GB

Updated 21 Aug 2026 5 new this week, 14 this month

What do you want to do? Each row is the best-ranked model on that use case's shortlist that fits at Q5_K_M and 128K. The ordering is editorial; the sizes and speeds are computed. How the shortlists work.

RecommendationModelWhyQuant · totalTok/s est.
Best overall Qwen3.8 27B New this week
Alibaba · Apache 2.0
Best capability per gigabyte: a current-generation dense 27B with vision and 262K context. Q5_K_M · 27.0 GB 51 Runs great
Best for coding Qwen3.8 27B New this week
Alibaba · Apache 2.0
Terminal-Bench 73, DeepSWE 42 — a generation ahead of anything else that fits 24 GB. Q5_K_M · 27.0 GB 51 Runs great
Best reasoning Qwen3.8 27B New this week
Alibaba · Apache 2.0
Thinking mode plus the best agentic reasoning at 24 GB. Q5_K_M · 27.0 GB 51 Runs great
Best for writing Gemma 4 26B-A4B
Google · Apache 2.0
Gemma 4 prose at MoE speed, with room for a long draft in context. Q5_K_M · 23.3 GB 144 Runs great
Best vision Qwen3.8 27B New this week
Alibaba · Apache 2.0
Image and video in, OSWorld 84 — the strongest local vision-language model at 24 GB. Q5_K_M · 27.0 GB 51 Runs great
Best for agents Qwen3.8 27B New this week
Alibaba · Apache 2.0
Computer use and tool calling are what 3.8 was trained for (OSWorld 84). Q5_K_M · 27.0 GB 51 Runs great
Best translation Qwen3.8 27B New this week
Alibaba · Apache 2.0
119 languages, and Qwen translations read as idiomatic rather than literal. Q5_K_M · 27.0 GB 51 Runs great
Fastest good model Qwen3.6 35B-A3B
Alibaba · Apache 2.0
3.3B active per token: the fastest model that still competes with dense 27Bs. Q5_K_M · 26.8 GB 166 Runs great
Best long context Qwen3.8 27B New this week
Alibaba · Apache 2.0
262K native, and only 16 of 64 blocks keep a KV cache — long context is cheap here. Q5_K_M · 27.0 GB
at 128K context
51 Runs great

Everything that fits

Runs great

46 of 76 · fits with headroom for a longer prompt
ModelParamsQuantWeights +KV 128KTotal VRAM headroom Tok/sRuntime
Qwen3.6 35B-A3B 35.9B MoE / 3.3B act Q5_K_M 23.7 GB 2.50 GB 26.8 GB
11.6 GB free
166 Ollama Run
Ornith 1.5 35B-A3B New this week 35.9B MoE / 3.3B act Q5_K_M 23.7 GB 2.50 GB 26.8 GB
11.6 GB free
166 Ollama Run
Olmo 3.1 32B Instruct 32.2B Q5_K_M 21.3 GB 4.75 GB 26.6 GB
11.8 GB free
44 Ollama Run
Nemotron 3.5 Lightning 30B-A3B New 31.6B MoE / 3.2B act Q5_K_M 20.9 GB 0.75 GB 22.2 GB
16.2 GB free
171 Ollama Run
GLM-4.7-Flash 30B-A3B 31.2B MoE / 3B act Q5_K_M 20.6 GB 6.61 GB 27.8 GB
10.6 GB free
183 Ollama Run
Muse Glimmer 30B New 29.8B Q5_K_M 19.7 GB 1.70 GB 22.0 GB
16.4 GB free
48 Ollama Run
Qwen3.8 27B New this week 27.8B Q5_K_M 18.4 GB 8.00 GB 27.0 GB
11.4 GB free
51 Ollama Run
Qwen3.6 27B 27.8B Q5_K_M 18.4 GB 8.00 GB 27.0 GB
11.4 GB free
51 Ollama Run
Gemma 3 27B 27.4B Q5_K_M 18.1 GB 10.41 GB 29.1 GB
9.3 GB free
52 Ollama Run
Gemma 4 26B-A4B 26.5B MoE / 3.8B act Q5_K_M 17.5 GB 5.20 GB 23.3 GB
15.1 GB free
144 Ollama Run
gpt-oss 20B 20.9B MoE / 3.6B act MXFP4 10.8 GB 3.00 GB 14.4 GB
24.0 GB free
194 Ollama Run
Qwen3 14B 14.8B Q5_K_M 9.8 GB 20.00 GB 30.4 GB
8.0 GB free
96 Ollama Run
Phi-4 14B 14.7B Q5_K_M 9.7 GB 3.13 GB 13.4 GB
25.0 GB free
97 Ollama Run
Ministral 3 14B 13.9B Q5_K_M 9.2 GB 20.00 GB 29.8 GB
8.6 GB free
103 Ollama Run
Gemma 3 12B 12.2B Q5_K_M 8.1 GB 8.31 GB 17.0 GB
21.4 GB free
117 Ollama Run
Mistral NeMo 12B 12.2B Q5_K_M 8.1 GB 20.00 GB 28.7 GB
9.7 GB free
117 Ollama Run
Gemma 4 12B 12B Q5_K_M 7.9 GB 8.31 GB 16.8 GB
21.6 GB free
119 Ollama Run
Qwen3.5 9B 9.65B Q5_K_M 6.4 GB 4.00 GB 11.0 GB
27.4 GB free
148 Ollama Run
Ornith 1.5 9B New this week 9.41B Q5_K_M 6.2 GB 4.00 GB 10.8 GB
27.6 GB free
152 Ollama Run
Ministral 3 8B 8.92B Q5_K_M 5.9 GB 17.00 GB 23.5 GB
14.9 GB free
160 Ollama Run
Granite 4.1 8B 8.79B Q5_K_M 5.8 GB 20.00 GB 26.4 GB
12.0 GB free
162 Ollama Run
LFM2.5 8B-A1B 8.47B MoE / 1.5B act Q5_K_M 5.6 GB 1.46 GB 7.7 GB
30.7 GB free
366 Ollama Run
Fara 7B 8.29B Q5_K_M 5.5 GB 6.84 GB 12.9 GB
25.5 GB free
172 llama.cpp Run
Qwen3 8B 8.19B Q5_K_M 5.4 GB 18.00 GB 24.0 GB
14.4 GB free
174 Ollama Run
Llama 3.1 8B Instruct 8.03B Q5_K_M 5.3 GB 16.00 GB 21.9 GB
16.5 GB free
178 Ollama Run
Gemma 4 E4B 8.0B Q5_K_M 5.3 GB 1.78 GB 7.7 GB
30.7 GB free
178 Ollama Run
Ling 3.0 Tiny 7.9B-A1.3B New 7.9B MoE / 1.3B act Q5_K_M 5.2 GB 0.84 GB 6.7 GB
31.7 GB free
422 llama.cpp Run
DeepSeek-R1-Distill-Qwen 7B 7.62B Q5_K_M 5.0 GB 7.00 GB 12.6 GB
25.8 GB free
187 Ollama Run
Qwen2.5-Coder 7B 7.62B Q5_K_M 5.0 GB 7.00 GB 12.6 GB
25.8 GB free
187 Ollama Run
Olmo 3 7B Instruct 7.3B Q5_K_M 4.8 GB 9.50 GB 14.9 GB
23.5 GB free
195 Ollama Run
Mistral 7B Instruct v0.3 7.25B Q5_K_M 4.8 GB 4.00 GB 9.4 GB
29.0 GB free
197 Ollama Run
Gemma 4 E2B 5.1B Q5_K_M 3.4 GB 0.89 GB 4.9 GB
33.5 GB free
280 Ollama Run
Qwen3.5 4B 4.66B Q5_K_M 3.1 GB 4.00 GB 7.7 GB
30.7 GB free
306 Ollama Run
Gemma 3 4B 4.3B Q5_K_M 2.8 GB 3.11 GB 6.5 GB
31.9 GB free
332 Ollama Run
Qwen3 4B 4.02B Q5_K_M 2.7 GB 4.50 GB 7.8 GB
30.6 GB free
355 Ollama Run
Ministral 3 3B 3.85B Q5_K_M 2.5 GB 13.00 GB 16.1 GB
22.3 GB free
370 Ollama Run
Phi-4-mini 3.8B 3.84B Q5_K_M 2.5 GB 16.00 GB 19.1 GB
19.3 GB free
371 Ollama Run
Granite 4.1 3B 3.4B Q5_K_M 2.2 GB 10.00 GB 12.8 GB
25.6 GB free
419 Ollama Run
Llama 3.2 3B Instruct 3.21B Q5_K_M 2.1 GB 14.00 GB 16.7 GB
21.7 GB free
444 Ollama Run
LFM2.5 2.6B New 2.7B Q5_K_M 1.8 GB 2.00 GB 4.4 GB
34.0 GB free
528 llama.cpp Run
Qwen3.5 2B 2.27B Q5_K_M 1.5 GB 1.50 GB 3.6 GB
34.8 GB free
628 Ollama Run
Qwen3 1.7B 1.72B Q5_K_M 1.1 GB 3.50 GB 5.2 GB
33.2 GB free
829 Ollama Run
Llama 3.2 1B Instruct 1.24B Q5_K_M 0.8 GB 4.00 GB 5.4 GB
33.0 GB free
1150 Ollama Run
Gemma 3 1B 1.0B Q5_K_M 0.7 GB 0.14 GB 1.4 GB
37.0 GB free
1426 Ollama Run
Qwen3.5 0.8B 0.87B Q5_K_M 0.6 GB 1.50 GB 2.7 GB
35.7 GB free
1639 Ollama Run
Qwen3 0.6B 0.6B Q5_K_M 0.4 GB 3.50 GB 4.5 GB
33.9 GB free
2377 Ollama Run

Runs — tight

6 models · fits at 128K, drop context or quant to go longer
ModelParamsQuantWeights +KV 128KTotal VRAM headroom Tok/sRuntime
Qwen3 30B-A3B 30.5B MoE / 3.3B act Q5_K_M 20.1 GB 12.00 GB 32.7 GB
5.7 GB free
166 llama.cpp Run
Qwen3 Coder 30B-A3B 30.5B MoE / 3.3B act Q5_K_M 20.1 GB 12.00 GB 32.7 GB
5.7 GB free
166 llama.cpp Run
Devstral Small 2 24B 24B Q5_K_M 15.8 GB 20.00 GB 36.4 GB
2.0 GB free
59 llama.cpp Run
Mistral Small 3.2 24B 23.6B Q5_K_M 15.6 GB 20.00 GB 36.2 GB
2.2 GB free
60 llama.cpp Run
DeepSeek-R1-Distill-Qwen 14B 14.8B Q5_K_M 9.8 GB 24.00 GB 34.4 GB
4.0 GB free
96 llama.cpp Run
Qwen2.5-Coder 14B 14.8B Q5_K_M 9.8 GB 24.00 GB 34.4 GB
4.0 GB free
96 llama.cpp Run

Won't fit in VRAM

24 models · some are possible with CPU offload
ModelParamsQuantWeights +KV 128KTotal Over budget Tok/sRuntime
LLM-jp 4 33B Thinking New this week 33.2B Q5_K_M 21.9 GB 16.00 GB 38.5 GB +0.1 GB ~38 llama.cpp Why
Gemma 4 31B 31.3B Q5_K_M 20.7 GB 20.78 GB 42.0 GB +3.6 GB ~8.5 llama.cpp Why
Granite 4.1 30B 28.9B Q5_K_M 19.1 GB 32.00 GB 51.7 GB +13.3 GB ~2.7 llama.cpp Why
Kimi K3 2.8T-A104B New 2780B MoE / 104B act Q5_K_M 1835.0 GB 3.38 GB 1839.0 GB +1800.6 GB ~0.2 llama.cpp Why
Qwen3.8 2.4T-A95B New 2446B MoE / 95B act Q5_K_M 1614.5 GB 11.50 GB 1626.6 GB +1588.2 GB ~0.2 llama.cpp Why
DeepSeek V4 Pro 1.6T-A49B New 1650B MoE / 49B act Q5_K_M 1089.1 GB 8.58 GB 1098.3 GB +1059.9 GB ~0.4 llama.cpp Why
Kimi K2.6 1T-A32B 1027B MoE / 32B act Q5_K_M 677.9 GB 8.58 GB 687.1 GB +648.7 GB ~0.7 llama.cpp Why
GLM-5.2 744B-A40B 753B MoE / 40B act Q5_K_M 497.0 GB 10.97 GB 508.6 GB +470.2 GB ~0.6 llama.cpp Why
DeepSeek-R1 671B 671B MoE / 37B act Q5_K_M 442.9 GB 8.58 GB 452.1 GB +413.7 GB ~0.6 llama.cpp Why
Qwen3.5 397B-A17B 403B MoE / 17B act Q5_K_M 266.0 GB 3.75 GB 270.4 GB +232.0 GB ~1.4 llama.cpp Why
Ornith 1.5 397B-A17B New this week 397B MoE / 17B act Q5_K_M 262.0 GB 3.75 GB 266.4 GB +228.0 GB ~1.4 llama.cpp Why
DeepSeek V4 Flash 284B-A13B New 284B MoE / 13B act Q5_K_M 187.5 GB 6.05 GB 194.1 GB +155.7 GB ~1.9 llama.cpp Why
Qwen3 235B-A22B 235B MoE / 22B act Q5_K_M 155.1 GB 23.50 GB 179.2 GB +140.8 GB ~1.1 llama.cpp Why
Qwen3.5 122B-A10B 125B MoE / 10B act Q5_K_M 82.5 GB 3.00 GB 86.1 GB +47.7 GB ~3.6 llama.cpp Why
Nemotron 3 Super 120B-A12B 124B MoE / 12B act Q5_K_M 81.8 GB 1.00 GB 83.4 GB +45.0 GB ~3.1 llama.cpp Why
Ling 3.0 Flash 124B-A5B New 124B MoE / 5.1B act Q5_K_M 81.8 GB 0.98 GB 83.4 GB +45.0 GB ~7.3 llama.cpp Why
Mistral Small 4 119B-A6B 119B MoE / 6.5B act Q5_K_M 78.5 GB 2.81 GB 82.0 GB +43.6 GB ~5.7 llama.cpp Why
gpt-oss 120B 117B MoE / 5.1B act MXFP4 60.5 GB 4.50 GB 65.6 GB +27.2 GB ~11 llama.cpp Why
Llama 4 Scout 109B-A17B 109B MoE / 17B act Q5_K_M 71.9 GB 7.13 GB 79.7 GB +41.3 GB ~2.1 llama.cpp Why
Llama 3.3 70B Instruct 70.6B Q5_K_M 46.6 GB 40.00 GB 87.2 GB +48.8 GB ~0.8 llama.cpp Why
DeepSeek-R1-Distill-Llama 70B 70.6B Q5_K_M 46.6 GB 40.00 GB 87.2 GB +48.8 GB ~0.8 llama.cpp Why
Qwen3 32B 32.8B Q5_K_M 21.7 GB 32.00 GB 54.3 GB +15.9 GB ~2.3 llama.cpp Why
DeepSeek-R1-Distill-Qwen 32B 32.8B Q5_K_M 21.7 GB 32.00 GB 54.3 GB +15.9 GB ~2.3 llama.cpp Why
Qwen2.5-Coder 32B 32.8B Q5_K_M 21.7 GB 32.00 GB 54.3 GB +15.9 GB ~2.3 llama.cpp Why

Totals = quantised weights + f16 KV cache at 128K tokens + 0.6 GB runtime overhead, against 38.4 GB usable VRAM (40 GB less display and driver reserve). Tokens per second are estimated from 1555 GB/s peak memory bandwidth at batch 1 — not measured. Read the method.