Skip to content
can-i-run-this-llm

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.

Runs great

Best fit: Gemma 4 31B at Q8_0 · 32.6 GB weights · 18–27 tok/s on a NVIDIA L40S (48GB).

Arena Text Overall · style-controlled

1,452Q8_0 untested

gemma-4-31b · published configuration reference · Q8_0 not tested

Arena Text Overall (style-controlled), exact published entry gemma-4-31b, 2026-10-08: reference rating 1,452.4. Published confidence bounds 1,444.9–1,459.8. 6,145 votes. Published gemma-4-31b configuration reference. Reasoning mode is not disclosed by the Arena dataset. Tested precision, runtime and sampling settings are not disclosed in this dataset. Selected Q8_0 has not been measured by this Arena entry. No quantization quality adjustment is applied.

Snapshot published 2026-10-08 · snapshot imported 2026-10-11 UTC · validated last-good data · manual refresh

Arena leaderboard dataset · Arena / lmarena-ai, Arena Leaderboard Dataset (CC BY 4.0). Selected Text Overall style-controlled rows; field names adapted, ratings unchanged. · dataset CC BY 4.0 · revision e16f90232986

Total memory at 4K context
34.6 GB
Weights + KV cache + runtime overhead
Estimated generation
18–27 tok/s
Estimated first token
~4.1s

Every quantization on this machine

On small screens, each quant lists every metric below its name. On wider screens, scroll sideways for total memory, speed and fit. Keyboard: focus the table, then use the arrow keys. Quant names stay visible.

Gemma 4 31B quantizations on NVIDIA L40S (48GB), estimated at 4K context. Weights and total memory are shown separately.
QuantWeightsTotal memorySpeedFit
Q2_K11.8 GB13.7 GB43–65 tok/sRuns great
Q3_K_M14.7 GB16.7 GB36–54 tok/sRuns great
Q4_K_M18.3 GB20.3 GB30–45 tok/sRuns great
Q5_K_M21.7 GB23.6 GB26–39 tok/sRuns great
Q6_K25.2 GB27.2 GB23–34 tok/sRuns great
Q8_032.6 GB34.6 GB18–27 tok/sRuns great
FP1661.4 GB63.4 GB— not residentWon't fit

Ran Gemma 4 31B on a NVIDIA L40S (48GB)? Add your real numbers →