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

MachineGPU-hoursTime on itOn-demandInterruptible
1 x MI300XBF162.42.4 hours$6.34DigitalOcean 
1 x H100 SXMBF163.23.2 hours$6.44Voltage Parkfrom $2.56
1 x RTX 4090BF161919.4 hours$6.59RunPod 
1 x L40SBF168.88.8 hours$6.99RunPodfrom $6.54
1 x RTX A6000BF162120.7 hours$7.24Thunder Compute$9.46
1 x B200BF161.41.4 hours$7.73Massed Computefrom $1.41

Full fine-tune on 1 billion tokens · 8K context · 35% MFU

Full fine-tune, by GPU

MachineGPU-hoursTime on itOn-demandInterruptible
1 x MI300XBF163433.7 hours$87.39DigitalOcean 
2 x H100 SXMBF164522.3 hours$88.73Voltage Parkfrom $35.22
6 x RTX 4090BF1626744.5 hours$90.79RunPod 
3 x L40SBF1612240.6 hours$96.26RunPodfrom $90.17
3 x RTX A6000BF162854.0 days$99.74Thunder Compute$130
1 x B200BF162019.6 hours$106Massed Computefrom $19.41

Pretraining on 152 billion tokens, 20 per parameter · 8K context · 35% MFU

Pretraining, by GPU

MachineGPU-hoursTime on itOn-demandInterruptible
1 x MI300XBF165,142214.3 days$13,319DigitalOcean 
2 x H100 SXMBF166,795141.6 days$13,522Voltage Parkfrom $5,368
6 x RTX 4090BF1640,697282.6 days$13,837RunPod 
3 x L40SBF1618,570257.9 days$14,670RunPodfrom $13,742
3 x RTX A6000BF1643,431603.2 days$15,201Thunder Compute$19,870
1 x B200BF162,988124.5 days$16,225Massed Computefrom $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.