GPU comparison
L40S vs A40.
Pick the L40S for speed: 2.4x the FP16 throughput and 24% more memory bandwidth. Both have 48 GB, so the same models fit on each.
Rent either on Runcrate
- L40SCheaperfrom $0.55/hr per GPU
on a 2-GPU machine
$0.011 per GB/hr$0.15 per 100 TFLOPS/hr
- A40from $2.66/hr
$0.055 per GB/hr$1.78 per 100 TFLOPS/hr
Live hourly price, then per GB of memory and per 100 FP16 TFLOPS.
Which is better for
Which to pick for each job. Memory fit and throughput, from the datasheets.
Hold a 70B model in 8-bit weights
70 GB of 8-bit weights
L40S: 2 GPUs (96 GB)
A40: 2 GPUs (96 GB)
L40S. Same GPU count, 24% more memory bandwidth.
Serve an 8B model in 16-bit weights
16 GB of 16-bit weights
L40S: 1 GPU, 32 GB spare
A40: 1 GPU, 32 GB spare
L40S. Same GPU count, 24% more memory bandwidth.
Fine-tune a 70B model with QLoRA
About 46 GB with 4-bit weights
L40S: 1 GPU, 2 GB spare
A40: 1 GPU, 2 GB spare
L40S. Same GPU count, 2.4x the FP16 throughput.
Train on a full node
FP16 tensor throughput per node
L40S: 4x, 1,448 TFLOPS
A40: 4x, 599 TFLOPS
L40S. 2.4x the FP16 throughput per GPU.
Throughput per watt
FP16 TFLOPS per 100 W of TDP
L40S: 103 TFLOPS per 100 W
A40: 50 TFLOPS per 100 W
L40S. 2.1x the FP16 per watt.
Compare another pair
Ada Lovelace
NVIDIA L40S
on a 2-GPU machine
- Memory
- 48 GB GDDR6
- FP16 tensor
- 362 TFLOPS
- Bandwidth
- 864 GB/s
Ampere
NVIDIA A40
- Memory
- 48 GB GDDR6
- FP16 tensor
- 149.7 TFLOPS
- Bandwidth
- 696 GB/s
At a glance
Spec by spec. The longer bar is the better number.
Full specs
The complete spec sheet.
| Spec | NVIDIA L40S | NVIDIA A40 |
|---|---|---|
| Architecture | Ada Lovelace | Ampere |
| Memory | 48 GB | 48 GB |
| Memory type | GDDR6 | GDDR6 |
| Memory bandwidth | 864 GB/s | 696 GB/s |
| FP32 | 91.6 TFLOPS | 37.4 TFLOPS |
| FP16 tensor | 362 TFLOPS | 149.7 TFLOPS |
| INT8 | 733 TOPS | 299 TOPS |
| TDP | 350 W | 300 W |
| Form factor | PCIe | PCIe |
| NVLink | No | No |
| GPUs per node | 4 | 4 |
| Hourly price (live) | from $0.55/hr per GPU on a 2-GPU machine | from $2.66/hr |
Questions
L40S or A40. What buyers ask first.
NVIDIA L40S vs NVIDIA A40: which is better for AI?
What's the price difference between NVIDIA L40S and NVIDIA A40?
Can I deploy NVIDIA L40S or NVIDIA A40 on Runcrate today?
How much VRAM does each GPU have?
L40S or A40: which holds a 70B model in 8-bit weights?
Other comparisons