LLM GPU calculator: capacity and cost for open-weight LLMs

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.

How it works

Calculate Compute reproduces a validated spreadsheet model in your browser. Nothing you enter leaves this page.

  1. Pick a model

    Meta's Muse Glimmer-30B is loaded. Change any value, or paste another model's config.json and the fields fill themselves.

  2. Describe the workload

    Training tokens and deadline, your fine-tuning dataset, or how many people you serve and how much context they use.

  3. Read the estimate

    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.

Estimating forMuse Glimmer-30BMeta defaults

LLM GPU and cost FAQ

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.

How many GPUs do I need to fine-tune a 30B LLM?

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.

How much does it cost to fine-tune a 30B LLM?

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.

How much does it cost to train an LLM from scratch?

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.

How much does it cost to serve an open-weight LLM?

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.

How is GPU memory for LLM training calculated?

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.

Is Calculate Compute free, and is my data stored?

Calculate Compute is free. All calculations run in your browser; nothing you enter leaves the page.

Method and sources

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.

    Taking this to a budget meeting?

    Copy a plain-text summary of all three estimates, with the assumptions and prices used.

    Paste a model's config.json

    Open the model on Hugging Face, choose Files and versions, open config.json and paste its text here. The fields fill automatically; you can adjust them afterwards.