GPUs & Macs › NVIDIA L40

NVIDIA L40: local LLM speed

Llama 2 7B (Q4_0) generates 154 tokens/s on the NVIDIA L40 (CUDA), and processes prompts at 10,098 tokens/s.

Measured results

ModelGenerate
tok/s
Prompt
tok/s
QuantBackendTestSource
Llama 2 7B15410,098Q4_0CUDA FA ontg128llama.cpp #15013 details
Llama 2 7B1528,870Q4_0CUDA FA offtg128llama.cpp #15013 details
Llama 3.2 1B Instruct11817,686Q4_K_Mllamafile LocalScore avgLocalScore details
Llama 3.1 8B Instruct45.15,065Q4_K_Mllamafile LocalScore avgLocalScore details
Qwen2.5 14B Instruct24.72,713Q4_K_Mllamafile LocalScore avgLocalScore details

What fits on the NVIDIA L40

Estimates for this chip are scaled from a measured run: Llama 2 7B Q4_0 at 154 tok/s (CUDA, source). Fit assumes the whole model in GPU memory with ~8K context.

ModelBest quant that fitsFileExpected tok/s
Qwen3.8-27BQ8_029.0 GB20.2 estimate
gemma-4-12B-itQ8_012.7 GB46.4 estimate
Qwen3.5-9BQ8_09.5 GB61.7 estimate
Qwen3.5-4BQ8_04.5 GB131 estimate
Qwen3.6-35B-A3BQ8_036.9 GB92.9 estimate
gemma-4-26B-A4B-itQ8_026.9 GB71.1 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB61.6 estimate
gemma-4-E4B-itQ8_08.2 GB71.7 estimate
Muse-Glimmer-30BQ8_029.6 GB19.8 estimate
Qwen3-4BQ8_04.3 GB137 estimate
gemma-4-31B-itQ8_032.6 GB18.0 estimate
gemma-4-26B-A4B-it-qat-q4_0-unquantizedUD-Q4_K_XL14.2 GB134 estimate
gemma-4-12B-it-qat-q4_0-unquantizedUD-Q4_K_XL6.7 GB87.5 estimate
gemma-3-1b-itQ8_01.1 GB490 estimate

Open in the picker

Similar hardware

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