Skip to content

Best Local LLMs for 24 GB VRAM

141 of 264 open-weight LLMs fit completely inside 24 GB VRAM with a 32K-token context (no system RAM offload). Ranked by published LMArena score, with the most faithful quantization format that fits and estimated speed on a RTX 4090.

Test 24 GB VRAM in the calculator →

Top picks for 24 GB VRAM

Flagship consumer GPUs (RTX 4090, RTX 3090, RX 7900 XTX). Runs 27B–35B dense and MoE models at high speed with 32K+ context.

Best overall
Gemma 4 31B (Q4_K_M, ~33 tok/s, LMArena 1443)
Best for coding
Qwen3.8 27B (Q5_K_M, ~34 tok/s)
Best for math
Gemma 4 26B-A4B (Q5_K_M, ~116 tok/s)
Largest model in VRAM
Qwen4 35B-A3B (57B, 3B active · Q4_K_M)
Models that fit
141 of 264 open models (32K context, llama.cpp)

All 141 LLMs that fit in 24 GB VRAM

ModelParamsBest formatSpeed (RTX 4090)LMArena
Gemma 4 31B31BQ4_K_M~33 tok/s1,443
Qwen3.8 27B28BQ5_K_M~34 tok/s1,438
Gemma 4 26B-A4B26B (4B active)Q5_K_M~116 tok/s1,434
Qwen3.5 27B28BQ5_K_M~34 tok/s1,409
Qwen3.5 35B-A3B36B (3B active)Q4_K_M~144 tok/s1,395
Granite 4.2 30B29BQ3_K_M~31 tok/s1,361
Gemma 3 27B27BQ5_K_M~32 tok/s1,358
GLM-4.7-Flash31B (3.6B active)Q5_K_M~105 tok/s1,351
Nemotron 3 Nano 30B-A3B32B (3B active)Q3_K_M~141 tok/s1,348
Inkling 2 Mini26B (3.4B active)Q5_K_M~57 tok/s1,344
Mistral Small 3.2 24B24BQ5_K_M~33 tok/s1,338
Gemma 3 12B12BQ8_0~51 tok/s1,334
Nemotron 3.5 Lightning 30B-A3B33B (3B active)Q3_K_M~142 tok/s1,330
Granite 4.2 8B8.8BBF16~35 tok/s1,319
Qwen3 30B-A3B31B (3B active)Q4_K_M~103 tok/s1,317
Granite 4.2 3B3.7BBF16~76 tok/s1,293
Gemma 3 4B4.3BBF16~90 tok/s1,291
gpt-oss 20B21B (3.6B active)MXFP4~165 tok/s1,288
Mistral Small 3.1 24B24BQ5_K_M~33 tok/s1,277
Mistral Small 3 24B24BQ5_K_M~33 tok/s1,234
phi-415BQ8_0~35 tok/s1,217
Gemma 2 9B9.2BQ8_0~45 tok/s1,207
Ministral 8B8.0BBF16~39 tok/s1,191
Llama 3.1 8B8.0BBF16~40 tok/s1,187
Llama 3 8B8.0BBF16~40 tok/s1,166

Sized for one request at 32K context with BF16 KV cache using the calculator's exact engine reserve. Models with a published LMArena (opens in a new tab) score (CC BY 4.0) appear first; others follow by size.

24 GB VRAM LLM FAQ

What is the best local LLM for 24 GB VRAM?

Based on published LMArena text scores, the highest-ranked open model that fits entirely in 24 GB VRAM at a 32K context is Gemma 4 31B (31B parameters, Q4_K_M, about 33 tokens/s on RTX 4090). In total, 141 of our 264 tracked open models fit in 24 GB VRAM.

What is the best coding LLM for 24 GB VRAM?

Qwen3.8 27B leads the LMArena coding category among models that fit in 24 GB VRAM at 32K context (Q5_K_M, about 34 tokens/s on RTX 4090).

What is the largest LLM that fits in 24 GB VRAM?

With a 32K context and no RAM offload, the largest model in our catalog that fits in 24 GB VRAM is Qwen4 35B-A3B (57B parameters, 3B active) in Q4_K_M. Larger models can still run partially offloaded to system RAM with llama.cpp.

Which GPUs and Macs have 24 GB VRAM?

Flagship consumer GPUs (RTX 4090, RTX 3090, RX 7900 XTX). Runs 27B–35B dense and MoE models at high speed with 32K+ context.