GPUs & Macs › NVIDIA A40

NVIDIA A40: local LLM speed

Llama 2 7B (Q4_0) generates 126 tokens/s on the NVIDIA A40 (CUDA), and processes prompts at 5,256 tokens/s.

Measured results

ModelGenerate
tok/s
Prompt
tok/s
QuantBackendTestSource
Llama 2 7B1265,256Q4_0CUDA FA ontg128llama.cpp #15013 details
Llama 2 7B1244,609Q4_0CUDA FA offtg128llama.cpp #15013 details
Llama 3.2 1B Instruct28412,156Q4_K_Mllamafile LocalScore avgLocalScore details
Llama 3.1 8B Instruct80.63,270Q4_K_Mllamafile LocalScore avgLocalScore details
Qwen2.5 14B Instruct46.21,825Q4_K_Mllamafile LocalScore avgLocalScore details

What fits on the NVIDIA A40

Estimates for this chip are scaled from a measured run: Llama 2 7B Q4_0 at 126 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 GB16.6 estimate
gemma-4-12B-itQ8_012.7 GB38.1 estimate
Qwen3.5-9BQ8_09.5 GB50.7 estimate
Qwen3.5-4BQ8_04.5 GB108 estimate
Qwen3.6-35B-A3BQ8_036.9 GB76.3 estimate
gemma-4-26B-A4B-itQ8_026.9 GB58.4 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB50.6 estimate
gemma-4-E4B-itQ8_08.2 GB58.9 estimate
Muse-Glimmer-30BQ8_029.6 GB16.3 estimate
Qwen3-4BQ8_04.3 GB113 estimate
gemma-4-31B-itQ8_032.6 GB14.8 estimate
gemma-4-26B-A4B-it-qat-q4_0-unquantizedUD-Q4_K_XL14.2 GB110 estimate
gemma-4-12B-it-qat-q4_0-unquantizedUD-Q4_K_XL6.7 GB71.9 estimate
gemma-3-1b-itQ8_01.1 GB402 estimate

Open in the picker

Similar hardware

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