Cost to train · prices checked 2026-11-19

How much does it cost to train Mistral 7B?

Fine-tuning Mistral 7B with LoRA on 100 million tokens takes about 2.5 GPU-hours on an MI300X: $6.58 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.52.5 hours$6.58DigitalOcean 
1 x H100 SXMBF163.43.4 hours$6.68Voltage Parkfrom $2.65
1 x RTX 4090BF162020.1 hours$6.84RunPod 
1 x L40SBF169.29.2 hours$7.25RunPodfrom $6.79
1 x RTX A6000BF162121.5 hours$7.51Thunder Compute$9.82
1 x B200BF161.51.5 hours$8.01Massed Computefrom $1.46

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

Full fine-tune, by GPU

MachineGPU-hoursTime on itOn-demandInterruptible
1 x MI300XBF163434.2 hours$88.56DigitalOcean 
2 x H100 SXMBF164522.6 hours$89.91Voltage Parkfrom $35.69
6 x RTX 4090BF1627145.1 hours$92.00RunPod 
3 x L40SBF1612341.2 hours$97.54RunPodfrom $91.37
3 x RTX A6000BF162894.0 days$101Thunder Compute$132
1 x B200BF162019.9 hours$108Massed Computefrom $19.67

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

Pretraining, by GPU

MachineGPU-hoursTime on itOn-demandInterruptible
1 x MI300XBF164,951206.3 days$12,823DigitalOcean 
2 x H100 SXMBF166,542136.3 days$13,019Voltage Parkfrom $5,168
6 x RTX 4090BF1639,182272.1 days$13,322RunPod 
3 x L40SBF1617,878248.3 days$14,124RunPodfrom $13,230
3 x RTX A6000BF1641,815580.8 days$14,635Thunder Compute$19,130
1 x B200BF162,877119.9 days$15,621Massed Computefrom $2,848

Mistral 7B: 7.24 billion parameters, 32 layers, 32 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

Mistral 7B, answered

How much does it cost to fine-tune Mistral 7B?

Fine-tuning Mistral 7B with LoRA on 100 million tokens takes about 2.5 GPU-hours on an MI300X: $6.58 at today's cheapest on-demand price (DigitalOcean), at 35% MFU. Training every weight of Mistral 7B on 1 billion tokens takes about 34 GPU-hours on an MI300X: $88.56 at today's cheapest on-demand price (DigitalOcean), at 35% MFU.

How much would it cost to pretrain Mistral 7B from scratch?

On the compute-optimal 145 billion tokens (about 20 tokens per parameter, as Chinchilla found), about 4,951 GPU-hours on an MI300X: $12,823 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.