Cost to train · prices checked 2026-11-19
What will it cost to train your model?
Pick a model, how it learns and from how many tokens: see the GPU-hours it takes on every GPU in the index and what that costs at today's cheapest on-demand and interruptible prices. The formula and its sources are under the result.
Fine-tuning Llama 3.1 8B with LoRA on 100 million tokens takes about 2.7 GPU-hours on an MI300X: $7.08 at today's cheapest on-demand price (DigitalOcean), at 35% MFU.
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 1 x MI300XBF16 | 2.7 | $7.08DigitalOcean | |
| 1 x H100 SXMBF16 | 3.6 | $7.18Voltage Park | from $2.85 |
| 1 x RTX 4090BF16 | 22 | $7.35RunPod | |
| 1 x L40SBF16 | 9.9 | $7.79RunPod | from $7.30 |
| 1 x RTX A6000BF16 | 23 | $8.08Thunder Compute | $10.56 |
| 1 x B200BF16 | 1.6 | $8.62Massed Compute | from $1.57 |
| 1 x H100 PCIeBF16 | 4.7 | $9.40RunPod | |
| 1 x A100 40GBBF16 | 11 | $10.19Jarvislabs | $8.20 |
| 1 x RTX 5090BF16 | 17 | $10.23Salad | |
| 1 x H200BF16 | 3.6 | $11.33Northflank | from $2.85 |
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.
Peak throughput from each GPU's vendor, in gpu-specs.json. What training reaches in practice:
Popular open models · 8K context · 35% MFU
At a glance
| Model | LoRA, 100M tokens | Every weight, 1B tokens |
|---|---|---|
| Llama 3.1 8B | $7.08 | $96.01 |
| Llama 3.1 70B | $54.53 | $767 |
| Llama 3.1 405B | $287 | $4,148 |
| Qwen2.5 7B | $6.34 | $87.39 |
| Qwen2.5 72B | $55.85 | $787 |
| Mistral 7B | $6.58 | $88.56 |
| Mixtral 8x7B | $10.14 | $142 |
| Gemma 2 9B | $8.47 | $114 |
| Gemma 2 27B | $20.02 | $286 |
| Phi-3 mini | $3.92 | $51.23 |