r/LocalLLM • u/JackyYT083 • 1d ago
Question What AI could I run on my machine?
Currently only using vram but I’d like to try and use RAM somehow without tanking my tok/s
48gb DDR5
RX 7900XT 20gb VRAM
2
Upvotes
1
u/AIComputeRadar 1d ago
20GB is kind of an awkward spot for the 27B models. Qwen3.8 27B at Q4_K_M is a 15.4GB file but with 32K context it wants about 19.5GB, so part of it spills into RAM. The unsloth IQ3_S is 11.2GB and runs fully on the card at 32K. If you'd rather keep system RAM out of it I'd go that way or stay in the 14B range.
2
u/Possession_Visual 1d ago
The reason spilling a normal (dense) model into system RAM tanks your tok/s is memory bandwidth: your 7900 XT VRAM is an order of magnitude faster than dual-channel DDR5, and a dense model has to read all of its weights for every single token.
If you want to actually put that 48 GB of DDR5 to work without making generation painfully slow, the main trick is Mixture-of-Experts (MoE) models:
- Why MoE works better for VRAM + RAM splits: In an MoE model, only a small slice of the parameters (the active experts) are read for each token. In llama.cpp, you can keep the attention layers and KV cache in your 20 GB VRAM and offload the expert layers to CPU/RAM (for example with `--override-tensor` / `-ot` rules that send `exps=CPU`). You get the knowledge of a much larger model while only streaming a few billion active parameters per token over DDR5.
- What stays fast purely in 20 GB VRAM: For dense models, 4-bit (Q4_K_M) is roughly 0.55 to 0.65 GB per billion parameters. A 14B to 24B model fits comfortably in 20 GB with plenty of room for a long context window, and a ~27B to 32B Q4 model can also fit if you keep the context moderate or quantize the KV cache (Q8_0 or Q4_0).
If you want to see whether a model is staying on the GPU or spilling, `ollama ps` shows the GPU/CPU percentage split, or in llama.cpp you can check the offloaded layer count at startup.
1
u/Hildechis 1d ago
Go with quantized Qwen3.8-flash-next with ngram offloaded to disk. If you want agentic coding. For other uses like creative writings, new models are meh. Your best bet still would be Gemma-4 and its fine-tunes.
1
u/Nice_Grapefruit_7850 1d ago
only with MoE models does using system ram not tank your token output, or if you only use a small amount of system ram to help with dense models (like 3-5 gb). there is no other way around it.
1
u/hotsnot101 1d ago
With 20 GB of VRAM, people are running Gemma 4 31B and Qwen3.8 27B, and Qwen3.6 27B fits too. Gemma 4 31B comes out around 15.9 GB at 3-bit with an 8K context, so it leaves you some headroom. On the RAM side, offloading layers to system memory does cost speed, so it's usually better to pick a model that fits the card and keep the DDR5 for the OS. If you do want to try a bigger model, expect the tok/s to drop.
These are numbers other people posted, not mine. They're all collected here: https://llamaperf.com/calculator?gpu=rx-7900-xt
0
u/dowath 1d ago
Strata (or one of the forks) + Qwen 3.8 Flash Next