Short answer
In the L40S vs A100 comparison, neither GPU wins everything. The NVIDIA L40S (Ada Lovelace, 2023) has 48 GB of GDDR6 at 864 GB/s, 362 TFLOPS dense FP16 and native FP8 (733 TFLOPS), while the A100 80 GB (Ampere, 2020) has 80 GB of HBM2e at about 2 TB/s, 312 TFLOPS FP16, no FP8, plus NVLink and MIG. The L40S is usually cheaper to rent (median around $1.65 vs $2.19/hour on our tracker) and wins batched inference of models that fit in 48 GB, image generation and graphics. The A100 wins single-user latency, models over 40 GB, and multi-GPU training thanks to its bandwidth, memory and NVLink.
Specifications compared
| Specification | NVIDIA L40S | NVIDIA A100 80 GB SXM | A100 80 GB PCIe |
|---|---|---|---|
| Architecture | Ada Lovelace (AD102) | Ampere (GA100) | Ampere (GA100) |
| Launch | 2023 | 2020 | 2020 |
| CUDA cores | 18,176 | 6,912 | 6,912 |
| Tensor cores | 568 (4th gen) | 432 (3rd gen) | 432 (3rd gen) |
| RT cores | 142 | None | None |
| Memory | 48 GB GDDR6 ECC | 80 GB HBM2e | 80 GB HBM2e |
| Bandwidth | 864 GB/s | 2,039 GB/s | 1,935 GB/s |
| FP32 | 91.6 TFLOPS | 19.5 TFLOPS | 19.5 TFLOPS |
| TF32 tensor (dense) | 183 TFLOPS | 156 TFLOPS | 156 TFLOPS |
| FP16/BF16 tensor (dense) | 362 TFLOPS | 312 TFLOPS | 312 TFLOPS |
| FP8 tensor (dense) | 733 TFLOPS | Not supported | Not supported |
| FP64 | Minimal | 9.7 TFLOPS (19.5 tensor) | 9.7 TFLOPS |
| NVLink | No | 600 GB/s | Bridge, 600 GB/s |
| MIG | No | Up to 7 | Up to 7 |
| Power | 350 W | 400 W | 300 W |
| Form factor | Dual-slot PCIe Gen4, passive | SXM4 | Dual-slot PCIe |
| Video encode/decode | 3 NVENC (AV1), 3 NVDEC | NVDEC/JPEG only | NVDEC/JPEG only |
See NVIDIA A100 specs and how to read a GPU spec sheet.
The key trade-off: compute vs bandwidth
LLM inference has two phases:
- Prefill (processing the prompt) is compute-bound: the L40S's higher FP16 and FP8 throughput helps.
- Decode (generating each token) is memory-bandwidth-bound at small batch sizes: the A100's 2.4× bandwidth helps.
As batch size grows, decoding becomes more compute-bound, shifting the advantage to the L40S. See prefill vs decode and GPU memory bandwidth.
LLM inference: the winner depends on batch size
Approximate vLLM throughput reported in a 2026 comparison (Llama 3.1 70B on two GPUs; L40S in FP8, A100 in BF16). Treat these as indicative.
| Batch size | 2 × L40S (FP8) | 2 × A100 80 GB (BF16) | Winner |
|---|---|---|---|
| 1 (single user) | ~90 tok/s | ~170 tok/s | A100 (bandwidth) |
| 8 | ~800 tok/s | ~500 tok/s | L40S |
| 32 | ~2,600 tok/s | ~1,400 tok/s | L40S (FP8 compute) |
Interpretation: for interactive, low-concurrency use, the A100 feels faster. For high-throughput serving, the L40S's FP8 tensor cores deliver more tokens per dollar. Note that FP8 also halves memory use compared with BF16. See LLM inference engines compared.
Which models fit
| Model | Precision | Size | L40S (48 GB) | A100 (80 GB) |
|---|---|---|---|---|
| 8B | FP16 | 16 GB | Yes | Yes |
| 14B | FP16 | 28 GB | Yes | Yes |
| 32B | FP8 | 32 GB | Yes (modest KV cache room) | Yes (INT8/weight-only) |
| 32B | FP16 | 64 GB | No | Yes (tight) |
| 70B | FP8 / 8-bit | 70 GB | No (needs 2) | Tight on 1 |
| 70B | 4-bit | ~40 GB | Tight | Yes |
Use the VRAM calculator.
Training and fine-tuning
| Workload | Better choice | Why |
|---|---|---|
| LoRA/QLoRA on 7–14B | Either; L40S often cheaper | Compute similar; memory sufficient |
| Full fine-tuning of 7B+ | A100 | 80 GB and NVLink |
| Multi-GPU training | A100 SXM | 600 GB/s NVLink vs PCIe only on L40S |
| FP8 training (Transformer Engine) | L40S supports FP8 | A100 doesn't |
| HPC with FP64 | A100 | L40S has minimal FP64 |
See What is LoRA? and distributed training parallelism.
Image generation, video and graphics
The L40S is a clear winner for Stable Diffusion/FLUX throughput, rendering, virtual workstations and video pipelines: it has RT cores, NVENC with AV1, display-class graphics features and strong FP16/FP32 throughput. The A100 has no RT cores or video encoders. See best GPU for Stable Diffusion.
Prices
On our GPU price tracker (November 30, 2026):
| GPU | Lowest on-demand | Typical |
|---|---|---|
| L40S (48 GB) | ~$0.80/hr | ~$1.65/hr |
| A100 (80 GB) | ~$0.89/hr | ~$2.19/hr median |
Comparison site getdeploying lists about 42 providers renting the L40S and 49 renting the A100, with median on-demand prices around $1.62 and $1.96 respectively. Purchase prices: the L40S sells for roughly $7,000–$10,000 new; the A100 80 GB for roughly $8,000–$15,000 new. See A100 price.
Cost per million tokens (example)
Using the batch-32 figures above and typical prices for two GPUs:
| Setup | Hourly cost (2 GPUs) | Throughput | Cost per 1M tokens |
|---|---|---|---|
| 2 × L40S (FP8) | ~$3.30 | ~2,600 tok/s | ~$0.35 |
| 2 × A100 (BF16) | ~$4.38 | ~1,400 tok/s | ~$0.87 |
At high concurrency, the L40S can be roughly 2× cheaper per token. At batch 1, the A100 can be cheaper per token despite its higher price. See LLM inference cost per token.
Power and deployment
- L40S: 350 W, passive PCIe card for standard servers (up to 8 per server), no NVLink.
- A100 SXM: 400 W in HGX servers with NVSwitch; A100 PCIe at 300 W fits standard servers.
- Both are air-coolable. See GPU power consumption.
Recommendations
| Workload | Pick |
|---|---|
| High-concurrency chatbot or API serving (models ≤ 32B) | L40S |
| Low-latency single-user inference | A100 |
| Models over 40 GB on one GPU | A100 80 GB |
| Multi-GPU training | A100 SXM |
| Fine-tuning small models on a budget | L40S |
| Image/video generation, rendering | L40S |
| Scientific computing (FP64) | A100 |
| Multi-tenant GPU sharing | A100 (MIG) |
For newer options, compare the H100 and RTX PRO 6000 Blackwell.
Frequently asked questions
Is the L40S faster than the A100?
For compute-heavy and high-batch FP8 workloads, yes. For memory-bandwidth-bound tasks like single-user LLM generation, the A100 is faster.
Is the L40S good for LLM training?
It works well for fine-tuning and smaller training jobs. For large multi-GPU training, the A100 (or H100) with NVLink is better.
Why is the L40S cheaper than the A100?
It uses GDDR6 instead of expensive HBM, has no NVLink, and is a PCIe card based on the same chip family as workstation GPUs.
Does the L40S support FP8?
Yes. Its fourth-generation tensor cores support FP8 with the Transformer Engine; the A100 does not.
Sources and further reading
- NVIDIA, L40S GPU (specifications)
- NVIDIA, A100 Tensor Core GPU
- Spheron, L40S vs A100 (2026 inference comparison)
- getdeploying, NVIDIA A100 vs NVIDIA L40S
- TensorCore.si, GPU cloud price tracker (November 30, 2026)




Leave a Reply