Gemma 4 31B IT Q4_K_M · 8K context
CPU/GPU offload The model needs about 20.5 GB but only 15.5 GB of VRAM is usable: 5 GB must be loaded into system RAM. It runs, 76% on the GPU, but more slowly.
Your hardware RX 9070 16 GB · 64 GB RAM
Estimated memory ~20.5 GB estimate
VRAM (usable memory) 15.5 GB
GPU only No
CPU/GPU offload Required (5 GB)
Generation speed 3.5–7 tok/s estimate
Largest context in fast memory None Memory breakdown ~20.5 GB (19.7 GB–21.4 GB) needed · estimate
5 GB must be offloaded to system RAM
VRAM 16 GB
VRAM System RAM 51 GB →
Model weights 17.1 GB KV cache 1.4 GB Runtime overhead 1.1 GB Safety margin 1 GB Assumptions: context 8K tokens · KV cache f16 · llama.cpp (ROCm) · flash attention on · weights = real file size · sliding-window layers keep 1,024 tokens EstimateData updated on September 25, 2026 Source: Run LLM Locally engine , Hugging Face config.json + model card
What makes this estimate less reliable
no benchmark for this hardware and model yet split CPU/GPU runs vary a lot with the CPU and PCIe link system RAM speed unknown (dual-channel DDR4-3200 assumed)