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
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 1 x MI300XBF16 | 2.5 | $6.58DigitalOcean | |
| 1 x H100 SXMBF16 | 3.4 | $6.68Voltage Park | from $2.65 |
| 1 x RTX 4090BF16 | 20 | $6.84RunPod | |
| 1 x L40SBF16 | 9.2 | $7.25RunPod | from $6.79 |
| 1 x RTX A6000BF16 | 21 | $7.51Thunder Compute | $9.82 |
| 1 x B200BF16 | 1.5 | $8.01Massed Compute | from $1.46 |
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 | $88.56DigitalOcean | |
| 2 x H100 SXMBF16 | 45 | $89.91Voltage Park | from $35.69 |
| 6 x RTX 4090BF16 | 271 | $92.00RunPod | |
| 3 x L40SBF16 | 123 | $97.54RunPod | from $91.37 |
| 3 x RTX A6000BF16 | 289 | $101Thunder Compute | $132 |
| 1 x B200BF16 | 20 | $108Massed Compute | from $19.67 |
Pretraining on 145 billion tokens, 20 per parameter · 8K context · 35% MFU
Pretraining, by GPU
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 1 x MI300XBF16 | 4,951 | $12,823DigitalOcean | |
| 2 x H100 SXMBF16 | 6,542 | $13,019Voltage Park | from $5,168 |
| 6 x RTX 4090BF16 | 39,182 | $13,322RunPod | |
| 3 x L40SBF16 | 17,878 | $14,124RunPod | from $13,230 |
| 3 x RTX A6000BF16 | 41,815 | $14,635Thunder Compute | $19,130 |
| 1 x B200BF16 | 2,877 | $15,621Massed Compute | from $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.
Other models: Llama 3.1 8B · Llama 3.1 70B · Llama 3.1 405B · Qwen2.5 7B · Qwen2.5 72B · Mixtral 8x7B · Gemma 2 9B · Gemma 2 27B · Phi-3 mini