L4 vs A40
NVIDIA L4 (Ada Lovelace, 24 GB) against NVIDIA A40 (Ampere, 48 GB): memory, compute, power and rental price, compared for LLM inference and training.
Pick two GPUs to compare
Side-by-Side Specifications
| Spec | L4 | A40 |
|---|---|---|
| Architecture | Ada Lovelace | Ampere |
| Memory | 24 GB GDDR6 | 48 GB GDDR6 |
| Memory bandwidth | 300 GB/s | 696 GB/s |
| FP16 tensor compute | 242 TFLOPS | 299.4 TFLOPS |
| INT8 tensor compute | 485 TOPS | 598.7 TOPS |
| Interconnect | PCIe 4.0 · 64 GB/s | NVLink 3.0 · 112.5 GB/s |
| TDP | 72 W | 300 W |
| Est. on-demand price | ~$1.00/h | ~$1.80/h |
| FP16 TFLOPS per $/h | 242 | 166 |
Highlighted values indicate the stronger spec. Hourly rates are indicative on-demand estimates.
Verdict
Raw performance: The A40 leads on FP16 tensor compute (1.2x advantage), which translates directly into higher token throughput for inference and shorter training steps.
Memory: With 48 GB per card, the A40 fits larger models on fewer GPUs — fewer cards means less inter-GPU communication and simpler deployments.
Value: At current on-demand rates, the L4 delivers more compute per dollar (242 vs 166 FP16 TFLOPS per $/h). If your model fits in its VRAM budget, it is usually the more economical choice.
GPUs Needed for Popular LLMs
Cards required to serve each model at 8-bit quantization (with 20% overhead for activations and KV cache).
| Model | VRAM (8-bit) | L4 | A40 |
|---|---|---|---|
| GPT-5.6 Sol | 2682 GB | 112x | 56x |
| DeepSeek V4 Pro (671B) | 750 GB | 32x | 16x |
| Muse Spark 1.1 | 335 GB | 14x | 7x |
| Claude 5 Sonnet (175B) | 196 GB | 9x | 5x |
| Nova Premier (80B) | 89 GB | 4x | 2x |
| Nova Core (34B) | 38 GB | 2x | 1x |
| Nova Lite (12B) | 13 GB | 1x | 1x |
| Phi 3.5 (3.8B) | 4 GB | 1x | 1x |
Frequently Asked Questions
Which is better for LLM inference: L4 or A40?
The A40 delivers more raw FP16 compute (299.4 TFLOPS) and the A40 offers the most memory per card (48 GB). For cost-efficiency, the L4 currently gives more FP16 TFLOPS per dollar of on-demand rental (242 vs 166 TFLOPS per $/h).
How much more memory does the A40 have?
The L4 has 24 GB of GDDR6 versus 48 GB of GDDR6 for the A40 — a ratio of 2.00x in favor of the A40. More VRAM per card means fewer GPUs to fit a given model.
Is the L4 or the A40 cheaper to rent?
Estimated on-demand rates are ~$1.00/h for the L4 and ~$1.80/h for the A40. Raw hourly price is only part of the story: normalize by throughput (TFLOPS per $/h) and by how many cards you need for your model's VRAM.
How do the L4 and A40 compare on power?
The L4 has a TDP of 72W versus 300W for the A40. FP16 compute per watt: 3.4 vs 1.0 TFLOPS/W.
Deploy on a GPU cloud
Rent the L4 or A40 by the hour instead of buying hardware.