Advisor / Hardware / AMD RX 7900 XTX 24GB

Best local LLMs for AMD RX 7900 XTX 24GB

Radeon RX 7900 XTX. Memory-fit math with KV cache, speeds labelled by how they were obtained, and commands you can paste.

23.0 GBusable for model + KV cache
960 GB/smemory bandwidth
24 GBRAM available for offload
8measured data points on file

Best for Coding · 16k context

ModelQuantFitMemorySpeed (generation)
Gemma 4 31BQ4_K_Mfits fully20.5 GB~40 tok/s scaled from measured src
Qwen3.6 27BQ5_K_Mfits fully20.7 GB~30 tok/s scaled from measured src
Qwen3.8 27BUD-Q4_K_Mfits fully17.8 GB~35 tok/s scaled from measured src
Qwen3-Coder 30B-A3BQ4_K_Mfits fully20.2 GB~219 tok/s estimated
Laguna XS 2.1Q4_K_Mfits fully21.3 GB~238 tok/s estimated
llama.cpp · top pick
llama-server -hf unsloth/gemma-4-31B-it-GGUF:Q4_K_M -c 16384 -fa on --jinja -ngl 99
ollama · top pick
OLLAMA_CONTEXT_LENGTH=16384 ollama serve
ollama run hf.co/unsloth/gemma-4-31B-it-GGUF:Q4_K_M

Context length is an Ollama server setting: quit the Ollama app or stop the service first, or set it in its environment (launchctl on Mac, systemctl on Linux).

Best for Chat / general · 16k context

ModelQuantFitMemorySpeed (generation)
Gemma 4 31BQ4_K_Mfits fully20.5 GB~40 tok/s scaled from measured src
Qwen3.6 27BQ5_K_Mfits fully20.7 GB~30 tok/s scaled from measured src
Qwen3.8 27BUD-Q4_K_Mfits fully17.8 GB~35 tok/s scaled from measured src
Mistral Small 3.2 24BQ6_Kfits fully22.0 GB~30 tok/s scaled from measured src
Gemma 4 12BQ8_0fits fully13.3 GB~46 tok/s scaled from measured src
llama.cpp · top pick
llama-server -hf unsloth/gemma-4-31B-it-GGUF:Q4_K_M -c 16384 -fa on --jinja -ngl 99
ollama · top pick
OLLAMA_CONTEXT_LENGTH=16384 ollama serve
ollama run hf.co/unsloth/gemma-4-31B-it-GGUF:Q4_K_M

Context length is an Ollama server setting: quit the Ollama app or stop the service first, or set it in its environment (launchctl on Mac, systemctl on Linux).

Best for Vision · 16k context

ModelQuantFitMemorySpeed (generation)
Gemma 4 31BQ4_K_Mfits fully20.5 GB~40 tok/s scaled from measured src
Qwen3.6 27BQ5_K_Mfits fully20.7 GB~30 tok/s scaled from measured src
Qwen3.8 27BUD-Q4_K_Mfits fully17.8 GB~35 tok/s scaled from measured src
Mistral Small 3.2 24BQ6_Kfits fully22.0 GB~30 tok/s scaled from measured src
Gemma 4 12BQ8_0fits fully13.3 GB~46 tok/s scaled from measured src
llama.cpp · top pick
llama-server -hf unsloth/gemma-4-31B-it-GGUF:Q4_K_M -c 16384 -fa on --jinja -ngl 99
ollama · top pick
OLLAMA_CONTEXT_LENGTH=16384 ollama serve
ollama run hf.co/unsloth/gemma-4-31B-it-GGUF:Q4_K_M

Context length is an Ollama server setting: quit the Ollama app or stop the service first, or set it in its environment (launchctl on Mac, systemctl on Linux).

All 29 models that fit, fastest first · 16k context

Click a column header to sort. 12 of 29 speeds here are measured or scaled from measured; the rest are bandwidth estimates. Filter by use case, speed source, fit, license and more in the interactive advisor →

ModelParamsQuantFitMemoryTok/sSource
LFM3 1.7B1.73BQ8_0fits fully2.1 GB~315estimated
Ornith 1.5 35B-A3B35.95B MoEQ4_K_Mfits fully22.3 GB~241estimated
Laguna XS 2.133.44B MoEQ4_K_Mfits fully21.3 GB~238estimated
Qwen3.6 35B-A3B35.95B MoEUD-Q4_K_Mfits fully22.5 GB~238estimated
Qwen3-Coder 30B-A3B30.53B MoEQ4_K_Mfits fully20.2 GB~219estimated
LFM2.5 24B-A2B23.97B MoEQ6_Kfits fully20.0 GB~218estimated
GLM-4.7-Flash31.22B MoEQ5_K_Mfits fully22.3 GB~213estimated
gpt-oss 20B20.91B MoEQ8_0fits fully12.5 GB~210estimated
Flint 40B-A2.5B39.79B MoEUD-Q4_K_XLMoE offload25.6 GB~178estimated
Mellum2.1 12B-A2.5B Instruct12.15B MoEQ8_0fits fully13.2 GB~165estimated
Gemma 4 26B-A4B25.81B MoEUD-Q5_K_Mfits fully21.7 GB~141estimated
Nemotron 3 Nano 4B3.97BQ8_0fits fully4.6 GB~130scaled from measured
Nemotron 3.5 Lightning 30B-A3B31.58B MoEUD-Q4_K_MMoE offload25.4 GB~120estimated
Nemotron 3 Nano 30B-A3B31.58B MoEQ4_K_MMoE offload24.8 GB~115estimated
Inkling 2 Mini26.39B MoEQ5_K_Mfits fully21.9 GB~101estimated
Gemma 4 12B11.96BQ8_0fits fully13.3 GB~46scaled from measured
Qwen3.5 4B4.66BQ8_0fits fully5.1 GB~46scaled from measured
Gemma 4 31B31.27BQ4_K_Mfits fully20.5 GB~40scaled from measured
Qwen3.8 27B27.78BUD-Q4_K_Mfits fully17.8 GB~35scaled from measured
Mistral Small 3.2 24B24.01BQ6_Kfits fully22.0 GB~30scaled from measured
Qwen3.6 27B27.78BQ5_K_Mfits fully20.7 GB~30scaled from measured
DeepSeek R1 Distill Qwen 7B7.62BQ8_0fits fully9.0 GB~30scaled from measured
Gemma 4 E4B8BQ8_0fits fully8.5 GB~29scaled from measured
Qwen3-VL 8B8.77BQ8_0fits fully11.1 GB~28scaled from measured
Qwen3.5 9B9.65BQ8_0fits fully10.1 GB~25scaled from measured
Ornith 1.5 9B9.65BQ8_0fits fully10.1 GB~25scaled from measured
DeepSeek R1 Distill Qwen 32B32.76BQ4_K_Mpartial offload24.1 GB~18estimated
Nanbeige4.3 33B33.12BQ4_K_Mpartial offload24.3 GB~18estimated
Ripple 65B Preview64.78BQ4_K_Mpartial offload40.1 GB~3estimated

Long context on this hardware · up to 1M tokens

Largest context whose KV cache still fits next to the weights (same placement as the 16k result, KV types f16 / q8_0 / q4_0). Models are capped at their verified maximum; extended means beyond the native maximum using YaRN, only listed where the model card documents it. Long context needs flash attention (-fa on, already in the commands) and a lot of memory; a quantized KV cache saves memory but can cost accuracy. Speed at depth is an estimate (penalty fitted to measured depth runs up to 128k).

Try it in the advisor: 128k · 256k · 512k · 1M

ModelNative maxMax ctx f16Max ctx q8_0Max ctx q4_0Est. tok/s at max f16 ctx
Qwen3.5 4B Q8_0256k512k extended1M extended1M extended~12 estimated
LFM3 1.7B Q8_0256k256k256k256k~138 estimated
Flint 40B-A2.5B UD-Q4_K_XL256k256k256k256k~39 estimated
Nemotron 3 Nano 4B Q8_0256k256k256k256k~74 estimated
Nemotron 3.5 Lightning 30B-A3B UD-Q4_K_M256k256k256k256k~80 estimated
Nemotron 3 Nano 30B-A3B Q4_K_M256k256k256k256k~80 estimated
Gemma 4 12B Q8_0256k256k256k256k~36 estimated
Qwen3.5 9B Q8_0256k256k512k extended1M extended~15 estimated
Ornith 1.5 9B Q8_0256k256k256k256k~15 estimated
LFM2.5 24B-A2B Q6_K128k128k128k128k~110 estimated
gpt-oss 20B Q8_0128k128k128k128k~98 estimated
Mellum2.1 12B-A2.5B Instruct Q8_0128k128k128k128k~107 estimated
DeepSeek R1 Distill Qwen 7B Q8_0128k128k128k128k~18 estimated
Gemma 4 E4B Q8_0128k128k128k128k~24 estimated
Gemma 4 26B-A4B UD-Q5_K_M256k64k128k256k~103 estimated
Qwen3.8 27B UD-Q4_K_M256k64k128k256k~30 estimated
Qwen3-VL 8B Q8_0256k64k128k256k~15 estimated
DeepSeek R1 Distill Qwen 32B Q4_K_M128k64k128k128k~11 estimated
Nanbeige4.3 33B Q4_K_M512k64k128k256k~12 estimated
Ripple 65B Preview Q4_K_M2M64k128k256k~3 estimated
Ornith 1.5 35B-A3B Q4_K_M256k32k64k128k~189 estimated
Laguna XS 2.1 Q4_K_M256k32k64k128k~152 estimated
Qwen3.6 35B-A3B UD-Q4_K_M256k32k64k128k~187 estimated
Qwen3-Coder 30B-A3B Q4_K_M256k32k64k128k~100 estimated
Inkling 2 Mini Q5_K_M1M32k64k128k~83 estimated
Gemma 4 31B Q4_K_M256k32k64k128k~35 estimated
Qwen3.6 27B Q5_K_M256k32k64k128k~28 estimated
GLM-4.7-Flash Q5_K_M198k16k32k64k~162 estimated
Mistral Small 3.2 24B Q6_K128k16k32k64k~27 estimated

FAQ

What is the best local LLM for AMD RX 7900 XTX 24GB?

Of the 23 models that fit fully at 16k context, LFM3 1.7B Q8_0 is the fastest at ~315 tok/s (estimated); the largest is Qwen3.6 35B-A3B UD-Q4_K_M.

How much memory can AMD RX 7900 XTX 24GB use for a model?

About 23.0 GB usable for the model and KV cache, with 960 GB/s memory bandwidth.

Can AMD RX 7900 XTX 24GB run long contexts?

See the long-context table above: it lists the largest context whose KV cache fits next to the weights for every model, up to 1M tokens where the model supports it.

Open the interactive advisor with this hardware →

Speeds marked measured are medians of real runs (short-context generation) from these sources; scaled from measured means a measurement of a same-size or same-model-different-quant run, scaled by bytes read; estimated comes from memory bandwidth (spec source: https://www.techpowerup.com/gpu-specs/radeon-rx-7900-xtx.c3941) × an efficiency factor of 0.61 calibrated to measured runs on this hardware. 8 measured data points on file for this hardware · submit your benchmark. System RAM here is an example (32 GB, ddr5-5600). Model data last verified 2026-11-30. Ranking = fits and fast enough first, then larger; not a quality benchmark.

Page generated 2026-11-30 by tools/generate_pages.js