Cost to train · prices checked 2026-11-19
How much does it cost to train Llama 3.1 70B?
Fine-tuning Llama 3.1 70B with LoRA on 100 million tokens takes about 21 GPU-hours on an MI300X: $54.53 at today's cheapest on-demand price (DigitalOcean), at 35% MFU.
LoRA fine-tune on 100 million tokens · 8K context · 35% MFU
LoRA fine-tune, by GPU
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 1 x MI300XBF16 | 21 | $54.53DigitalOcean | |
| 3 x H100 SXMBF16 | 28 | $55.36Voltage Park | from $21.98 |
| 7 x RTX 4090BF16 | 167 | $56.65RunPod | |
| 4 x L40SBF16 | 76 | $60.06RunPod | from $56.26 |
| 4 x RTX A6000BF16 | 178 | $62.24Thunder Compute | $81.35 |
| 1 x B200BF16 | 12 | $66.43Massed Compute | from $12.11 |
Full fine-tune on 1 billion tokens · 8K context · 35% MFU
Full fine-tune, by GPU
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 7 x MI300XBF16 | 296 | $767DigitalOcean | |
| 16 x H100 SXMBF16 | 391 | $779Voltage Park | from $309 |
| 53 x RTX 4090BF16 | 2,345 | $797RunPod | |
| 27 x L40SBF16 | 1,070 | $845RunPod | from $792 |
| 27 x RTX A6000BF16 | 2,502 | $876Thunder Compute | $1,145 |
| 7 x B200BF16 | 172 | $935Massed Compute | from $170 |
Pretraining on 1.4 trillion tokens, 20 per parameter · 8K context · 35% MFU
Pretraining, by GPU
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 7 x MI300XBF16 | 418,309 | $1,083,421DigitalOcean | |
| 16 x H100 SXMBF16 | 552,757 | $1,099,985Voltage Park | from $436,678 |
| 53 x RTX 4090BF16 | 3,310,516 | $1,125,576RunPod | |
| 27 x L40SBF16 | 1,510,557 | $1,193,340RunPod | from $1,117,812 |
| 27 x RTX A6000BF16 | 3,532,928 | $1,236,525Thunder Compute | $1,616,315 |
| 7 x B200BF16 | 243,065 | $1,319,846Massed Compute | from $240,635 |
Llama 3.1 70B: 70.6 billion parameters, 80 layers, 64 attention heads of size 128, from its published configuration. Peak throughput from each GPU's vendor (gpu-specs.json). Try other settings on the calculator.
Questions
Llama 3.1 70B, answered
How much does it cost to fine-tune Llama 3.1 70B?
Fine-tuning Llama 3.1 70B with LoRA on 100 million tokens takes about 21 GPU-hours on an MI300X: $54.53 at today's cheapest on-demand price (DigitalOcean), at 35% MFU. Training every weight of Llama 3.1 70B on 1 billion tokens takes about 296 GPU-hours on an MI300X: $767 at today's cheapest on-demand price (DigitalOcean), at 35% MFU.
How much would it cost to pretrain Llama 3.1 70B from scratch?
On the compute-optimal 1.4 trillion tokens (about 20 tokens per parameter, as Chinchilla found), about 418,309 GPU-hours on an MI300X: $1,083,421 at today's cheapest on-demand price, before any failed runs or experiments.
How is this worked out?
Training FLOPs: for each token, 6 x the parameters a token uses for a full update (2 forward, 4 backward), or 4 x for LoRA, whose frozen weights need no weight gradients; plus attention's 12 x layers x heads x head size x context (PaLM, Appendix B). GPU-hours: those FLOPs over the GPU's peak dense throughput, from its vendor, times the share of it training reaches (model FLOPs utilisation, MFU; 35% unless you change it). Cost: GPU-hours times each GPU's cheapest price per GPU-hour in the index. Machines: enough GPUs to hold the model for that kind of training (see Will it fit?); the time on them assumes the work splits evenly. Every GPU gets the same MFU, a simplification: real utilisation differs by GPU, software and job, so treat rows within about 20% of each other as a tie.
Other models: Llama 3.1 8B · Llama 3.1 405B · Qwen2.5 7B · Qwen2.5 72B · Mistral 7B · Mixtral 8x7B · Gemma 2 9B · Gemma 2 27B · Phi-3 mini