Cost to train · prices checked 2026-11-19
How much does it cost to train Qwen2.5 7B?
Fine-tuning Qwen2.5 7B with LoRA on 100 million tokens takes about 2.4 GPU-hours on an MI300X: $6.34 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 | 2.4 | $6.34DigitalOcean | |
| 1 x H100 SXMBF16 | 3.2 | $6.44Voltage Park | from $2.56 |
| 1 x RTX 4090BF16 | 19 | $6.59RunPod | |
| 1 x L40SBF16 | 8.8 | $6.99RunPod | from $6.54 |
| 1 x RTX A6000BF16 | 21 | $7.24Thunder Compute | $9.46 |
| 1 x B200BF16 | 1.4 | $7.73Massed Compute | from $1.41 |
Full fine-tune on 1 billion tokens · 8K context · 35% MFU
Full fine-tune, by GPU
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 1 x MI300XBF16 | 34 | $87.39DigitalOcean | |
| 2 x H100 SXMBF16 | 45 | $88.73Voltage Park | from $35.22 |
| 6 x RTX 4090BF16 | 267 | $90.79RunPod | |
| 3 x L40SBF16 | 122 | $96.26RunPod | from $90.17 |
| 3 x RTX A6000BF16 | 285 | $99.74Thunder Compute | $130 |
| 1 x B200BF16 | 20 | $106Massed Compute | from $19.41 |
Pretraining on 152 billion tokens, 20 per parameter · 8K context · 35% MFU
Pretraining, by GPU
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 1 x MI300XBF16 | 5,142 | $13,319DigitalOcean | |
| 2 x H100 SXMBF16 | 6,795 | $13,522Voltage Park | from $5,368 |
| 6 x RTX 4090BF16 | 40,697 | $13,837RunPod | |
| 3 x L40SBF16 | 18,570 | $14,670RunPod | from $13,742 |
| 3 x RTX A6000BF16 | 43,431 | $15,201Thunder Compute | $19,870 |
| 1 x B200BF16 | 2,988 | $16,225Massed Compute | from $2,958 |
Qwen2.5 7B: 7.62 billion parameters, 28 layers, 28 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
Qwen2.5 7B, answered
How much does it cost to fine-tune Qwen2.5 7B?
Fine-tuning Qwen2.5 7B with LoRA on 100 million tokens takes about 2.4 GPU-hours on an MI300X: $6.34 at today's cheapest on-demand price (DigitalOcean), at 35% MFU. Training every weight of Qwen2.5 7B on 1 billion tokens takes about 34 GPU-hours on an MI300X: $87.39 at today's cheapest on-demand price (DigitalOcean), at 35% MFU.
How much would it cost to pretrain Qwen2.5 7B from scratch?
On the compute-optimal 152 billion tokens (about 20 tokens per parameter, as Chinchilla found), about 5,142 GPU-hours on an MI300X: $13,319 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 70B · Llama 3.1 405B · Qwen2.5 72B · Mistral 7B · Mixtral 8x7B · Gemma 2 9B · Gemma 2 27B · Phi-3 mini