Can I run this LLM?
Can a NVIDIA L40S (48GB) run Gemma 4 31B?
Gemma · Apache 2.0 · estimated for a 48.0 GB machine at 4K context.
Yes — it runs great.
Best fit: Gemma 4 31B at Q6_K · 25.3 GB · 19–28 tok/s on a NVIDIA L40S (48GB).
Every quantization on this machine
| Quant | Size | Speed | Fit |
|---|---|---|---|
| Q3_K_M | 13.2 GB | 29–43 tok/s | Runs great |
| Q4_K_M | 18.6 GB | 23–35 tok/s | Runs great |
| Q5_K_M | 21.9 GB | 21–31 tok/s | Runs great |
| Q6_K | 25.3 GB | 19–28 tok/s | Runs great |
| Q8_0 | 32.6 GB | 15–23 tok/s | Tight / slow |
| FP16 | 61.4 GB | 9–14 tok/s | Won't fit |
Open the full calculator →Everything a NVIDIA L40S (48GB) runsGemma 4 31B on other machinesWhat to buy to run it →
Ran Gemma 4 31B on a NVIDIA L40S (48GB)? Add your real numbers →