Use Calculate Compute to see what you're signing up for: how many GPUs, for how long, and at what cost. Every estimate shows its formula and its source.
Calculate Compute reproduces a validated spreadsheet model in your browser. Nothing you enter leaves this page.
Meta's Muse Glimmer-30B is loaded. Change any value, or paste another model's config.json and the fields fill themselves.
Training tokens and deadline, your fine-tuning dataset, or how many people you serve and how much context they use.
Summary gives the estimate, the cheapest setup and the memory picture. AI Engineer explains every formula, what each symbol means, the numbers plugged in and the source.
Worked examples for a 30B dense model (Muse Glimmer-30B) with the calculator's default settings and on-demand prices of 1 October 2026. Change any input above to get figures for your own model.
On H100 80GB GPUs, LoRA fine-tuning of a 30B dense model fits on 2 GPUs, QLoRA on 1, and full fine-tuning needs about 9. Full fine-tuning stores 16 bytes per parameter for weights, gradients and optimizer states; LoRA keeps the base model frozen at 2 bytes per parameter and trains small adapters. Example: Muse Glimmer-30B with 4,096-token sequences.
About $1,900 with LoRA on 2 H100 GPUs, taking roughly 9 days, for 3.1 billion training tokens (2 million examples of 512 tokens, 3 epochs). Full fine-tuning costs about $2,500 on 9 H100s and finishes in about 2.6 days. Both use on-demand H100 pricing of $4.50 per GPU-hour.
Training a 30B model on 30 trillion tokens takes about 5.2 × 1024 FLOPs, or 3.7 million H100 GPU-hours. At $4.50 per GPU-hour that is about $16.5 million for one final run, for example 5,096 H100s for 30 days at 40% GPU utilisation (MFU). Experiments, failed runs, data and staff usually add 2 to 4 times more.
A 30B model in FP8 serving 64 users at once with 32K context fits on one H100 80GB. It generates about 52 tokens per second per user and costs about $0.37 per 1 million output tokens at full utilisation, or $4.50 per hour (about $3,300 per month). Real services run below full utilisation, so expect a higher effective price.
Training memory per GPU is the model's share of weights and gradients (4 bytes per parameter in BF16), optimizer states (12 bytes per parameter for Adam, shardable with ZeRO), and activations, which grow with sequence length and batch size. Calculate Compute follows Kundu et al. (2024) for training memory and serving, and Xia et al. (2024) for fine-tuning, and shows every formula.
Calculate Compute is free. All calculations run in your browser; nothing you enter leaves the page.
Formulas follow Kundu et al. (2024) for training memory and serving, and Xia et al. (2024) for fine-tuning. Numbers in the AI Engineer view link to these sources.
Copy a plain-text summary of all three estimates, with the assumptions and prices used.