Cost to train · prices checked 2026-11-19
How much does it cost to train Mixtral 8x7B?
Fine-tuning Mixtral 8x7B with LoRA on 100 million tokens takes about 3.9 GPU-hours on an MI300X: $10.14 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 | 3.9 | $10.14DigitalOcean | |
| 2 x H100 SXMBF16 | 5.2 | $10.29Voltage Park | from $4.09 |
| 5 x RTX 4090BF16 | 31 | $10.53RunPod | |
| 3 x L40SBF16 | 14 | $11.17RunPod | from $10.46 |
| 3 x RTX A6000BF16 | 33 | $11.57Thunder Compute | $15.13 |
| 1 x B200BF16 | 2.3 | $12.35Massed Compute | from $2.25 |
Full fine-tune on 1 billion tokens · 8K context · 35% MFU
Full fine-tune, by GPU
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 5 x MI300XBF16 | 55 | $142DigitalOcean | |
| 11 x H100 SXMBF16 | 72 | $144Voltage Park | from $57.21 |
| 35 x RTX 4090BF16 | 434 | $147RunPod | |
| 18 x L40SBF16 | 198 | $156RunPod | from $146 |
| 18 x RTX A6000BF16 | 463 | $162Thunder Compute | $212 |
| 5 x B200BF16 | 32 | $173Massed Compute | from $31.53 |
Pretraining on 934 billion tokens, 20 per parameter · 8K context · 35% MFU
Pretraining, by GPU
| Machine | GPU-hours | On-demand | Interruptible |
|---|---|---|---|
| 5 x MI300XBF16 | 51,190 | $132,581DigitalOcean | |
| 11 x H100 SXMBF16 | 67,642 | $134,609Voltage Park | from $53,438 |
| 35 x RTX 4090BF16 | 405,118 | $137,740RunPod | |
| 18 x L40SBF16 | 184,851 | $146,033RunPod | from $136,790 |
| 18 x RTX A6000BF16 | 432,335 | $151,317Thunder Compute | $197,793 |
| 5 x B200BF16 | 29,745 | $161,513Massed Compute | from $29,447 |
Mixtral 8x7B: 46.7 billion parameters, 12.9 billion used by each token, 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
Mixtral 8x7B, answered
How much does it cost to fine-tune Mixtral 8x7B?
Fine-tuning Mixtral 8x7B with LoRA on 100 million tokens takes about 3.9 GPU-hours on an MI300X: $10.14 at today's cheapest on-demand price (DigitalOcean), at 35% MFU. Training every weight of Mixtral 8x7B on 1 billion tokens takes about 55 GPU-hours on an MI300X: $142 at today's cheapest on-demand price (DigitalOcean), at 35% MFU.
How much would it cost to pretrain Mixtral 8x7B from scratch?
On the compute-optimal 934 billion tokens (about 20 tokens per parameter, as Chinchilla found), about 51,190 GPU-hours on an MI300X: $132,581 at today's cheapest on-demand price, before any failed runs or experiments. Mixtral 8x7B is a mixture of experts: the FLOPs count the 12.9 billion parameters each token uses, and the 20-per-parameter rule was found for dense models.
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 · Mistral 7B · Gemma 2 9B · Gemma 2 27B · Phi-3 mini