Can Gemma 4 31B run on NVIDIA L40S 48GB?
YES — Runs Great
Gemma 4 31B needs ~39.1 GB VRAM. NVIDIA L40S 48GB has 48.0 GB. With Q4_K_M quantization, expect ~15 tok/s.
Operating mode
Choose the run profile you care about
Interactive favors responsiveness, while light API and scale-out lean harder on serving readiness. The fit stays the same, but the recommendation lens changes.
Current mode
Balanced
Balanced for general local use. Keeps the ranking neutral across personal and serving workflows.
Select quantization to explore
Fit status
Runs well
Decode
14.9 tok/s
TTFT
13003 ms
Safe context
26K
Memory
39.1 GB / 48.0 GB
Memory breakdown
See how fast it feels
What limits this setup
This setup is broadly balanced for this model.
No major red flags
This recommendation has enough memory headroom and acceptable estimated speed for the selected workload.
Best improvement path
Performance by workload
| Workload | Grade | Fit | Decode | TTFT | Context |
|---|---|---|---|---|---|
| Chat | S | Runs well | 14.9 tok/s | 7092 ms | 26K |
| Coding | S | Runs well | 14.9 tok/s | 13003 ms | 26K |
| Agentic Coding | A | Very compromised (needs ~2 GB host RAM) | 8.8 tok/s | 31966 ms | 26K |
| Reasoning | S | Runs well | 14.9 tok/s | 15367 ms | 26K |
| RAG | A | Very compromised (needs ~2 GB host RAM) | 8.8 tok/s | 39958 ms |
Quantization options
How Gemma 4 31B (30.700000762939453B params) fits at each quantization level on NVIDIA L40S 48GB (48.0 GB usable).
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
Q2_K | 2 | 12.0 GB | Low | A80 |
Q3_K_S | 3 | 15.0 GB | Low | A81 |
NVFP4 | 4 |
Get started
Copy-paste commands to run Gemma 4 31B on your machine.
Run
ollama run gemma4:31bYour hardware
