Can I run it?

Can I run gemma 4 31B it on GeForce RTX 4060?

Partial offload

Partial offload on your GeForce RTX 4060: Q4_K_M at 4K context, 18 of 60 layers on the GPU and 11.8 GB in system RAM. Expect about 3.3–4.5 tok/s.

Best quantQ4_K_M
Working context4K
Max that fits4K
Speed3.3–4.5 tok/s
Weights17.1 GB
KV cache1.41 GB
Total18.9 GB
Usable7.13 GB

gemma 4 31B it details · GeForce RTX 4060 page · How this estimate is made

Run commands

llama.cpp
llama-server -hf unsloth/gemma-4-31B-it-GGUF:Q4_K_M -c 4096 -ngl 18
Ollama
ollama run gemma
LM Studio
lms get unsloth/gemma-4-31B-it-GGUF
# Then load quant Q4_K_M

Assumptions

Models that fit this machine more comfortably

Updated 2026-10-24. Profile on this page is the device default plus 32 GB of DDR5-5600 system RAM.