GPUs & Macs › NVIDIA L40S

NVIDIA L40S: local LLM speed

3 measured results for the NVIDIA L40S.

Measured results

ModelGenerate
tok/s
Prompt
tok/s
QuantBackendTestSource
Llama 3.2 1B Instruct23821,532Q4_K_Mllamafile LocalScore avg · n=2LocalScore LocalScore details
Llama 3.1 8B Instruct45.95,328Q4_K_Mllamafile LocalScore avgLocalScore details
Qwen2.5 14B Instruct19.32,868Q4_K_Mllamafile LocalScore avgLocalScore details

What fits on the NVIDIA L40S

Estimates for this chip are scaled from a measured run: Llama 3.1 8B Instruct Q4_K_M at 45.9 tok/s (llamafile, source). Fit assumes the whole model in GPU memory with ~8K context.

ModelBest quant that fitsFileExpected tok/s
Qwen3.8-27BQ8_029.0 GB7.8 estimate
gemma-4-12B-itQ8_012.7 GB17.8 estimate
Qwen3.5-9BQ8_09.5 GB23.7 estimate
Qwen3.5-4BQ8_04.5 GB50.4 estimate
Qwen3.6-35B-A3BQ8_036.9 GB35.7 estimate
gemma-4-26B-A4B-itQ8_026.9 GB27.3 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB23.7 estimate
gemma-4-E4B-itQ8_08.2 GB27.6 estimate
Muse-Glimmer-30BQ8_029.6 GB7.6 estimate
Qwen3-4BQ8_04.3 GB52.8 estimate
gemma-4-31B-itQ8_032.6 GB6.9 estimate
gemma-4-26B-A4B-it-qat-q4_0-unquantizedUD-Q4_K_XL14.2 GB51.5 estimate
gemma-4-12B-it-qat-q4_0-unquantizedUD-Q4_K_XL6.7 GB33.6 estimate
gemma-3-1b-itQ8_01.1 GB188 estimate

Open in the picker

Similar hardware

NVIDIA L40 · NVIDIA A40 · NVIDIA Tesla V100 32GB · NVIDIA A30 · NVIDIA Tesla P40 · NVIDIA Tesla M40 · NVIDIA L4 · NVIDIA A10