GPU comparison
RTX 4090 vs A40.
Pick the A40 for memory: 48 GB vs 24 GB. A QLoRA fine-tune of a 70B model (about 46 GB) fits on one A40, not on one RTX 4090. The RTX 4090 has 45% more memory bandwidth. For models under 24 GB pick by price.
Rent either on Runcrate
- RTX 4090Cheaperfrom $0.52/hr
$0.022 per GB/hr
- A40from $2.66/hr
$0.055 per GB/hr
Live hourly price, then per GB of memory.
Which is better for
Which to pick for each job. Memory fit, from the datasheets.
Hold a 70B model in 8-bit weights
70 GB of 8-bit weights
RTX 4090: 4 GPUs, more than one 2x node
A40: 2 GPUs (96 GB)
A40. Fits in one node (2 GPUs).
Serve an 8B model in 16-bit weights
16 GB of 16-bit weights
RTX 4090: 1 GPU, 8 GB spare
A40: 1 GPU, 32 GB spare
RTX 4090. Same GPU count, 45% more memory bandwidth.
Fine-tune a 70B model with QLoRA
About 46 GB with 4-bit weights
RTX 4090: 2 GPUs (48 GB)
A40: 1 GPU, 2 GB spare
A40. Fits on one GPU.
Compare another pair
Ada Lovelace
NVIDIA RTX 4090
- Memory
- 24 GB GDDR6X
- Bandwidth
- 1.0 TB/s
Ampere
NVIDIA A40
- Memory
- 48 GB GDDR6
- 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 RTX 4090 | NVIDIA A40 |
|---|---|---|
| Architecture | Ada Lovelace | Ampere |
| Memory | 24 GB | 48 GB |
| Memory type | GDDR6X | GDDR6 |
| Memory bandwidth | 1.0 TB/s | 696 GB/s |
| FP32 | 82.6 TFLOPS | 37.4 TFLOPS |
| FP16 | 165.2 TFLOPS, non-tensor | 149.7 TFLOPS, tensor |
| INT8 | 661 TOPS | 299 TOPS |
| TDP | 450 W | 300 W |
| Form factor | Consumer | PCIe |
| NVLink | No | No |
| GPUs per node | 2 | 4 |
| Hourly price (live) | from $0.52/hr | from $2.66/hr |
Questions
RTX 4090 or A40. What buyers ask first.
Other comparisons