Skip to content

Cost reference

What it costs to train a 13B model from scratch

A compute-optimal run for a 13B-parameter model, 260B tokens at 20 per parameter, takes about 14,240 H100-hours, around $62,513 at $4.39 an hour. Training on 2,000B tokens (2T tokens, the Llama 2 budget) raises that to about $480,873. Months on one 8-GPU node even at the Chinchilla ratio; plan for a cluster.

By Will Schulz · Checked 15 November 2026 · Prices as of November 2026

Compute-optimal: 260B tokens

GPUGPU-hoursCostTime on 8Time on 64Time on 512GPUs to hold state
RTX 5090209.5 TFLOPS · $1.39/hr67,224$93,44111.5 months44 days5 days7
A100 80GB312 TFLOPS · $2.19/hr45,139$98,8547.7 months29 days4 days3
H100 SXM989 TFLOPS · $4.39/hr14,240$62,5132.4 months9 days28 hours3
H200989 TFLOPS · $5.29/hr14,240$75,3292.4 months9 days28 hours2
B2002,250 TFLOPS · $7.99/hr6,259$50,01133 days4 days12 hours2

Longer training: 2,000B tokens

GPUGPU-hoursCostTime on 8Time on 64Time on 512GPUs to hold state
RTX 5090209.5 TFLOPS · $1.39/hr517,104$718,7757.4 years11.1 months42 days7
A100 80GB312 TFLOPS · $2.19/hr347,222$760,4175.0 years7.4 months28 days3
H100 SXM989 TFLOPS · $4.39/hr109,538$480,87318.8 months2.3 months9 days3
H200989 TFLOPS · $5.29/hr109,538$579,45718.8 months2.3 months9 days2
B2002,250 TFLOPS · $7.99/hr48,148$384,7048.2 months31 days4 days2

Compute = 6 × 13e9 parameters × tokens, at 40% utilisation of dense BF16 peak, with perfect scaling across GPUs. Memory for weights, gradients and Adam state is 208 GB before activations.

What real runs of this size reported

RunSize and dataReported
Llama 2 13B2T tokens368,640 A100-hours

Published GPU-hours for Llama 3.1 came in 1.2–2.9× above the 6ND estimate; budget for that gap, plus experiments, failed runs and data work, before you treat these numbers as a quote.

Change the assumptions

Pre-filled for 13B parameters at 260B tokens on H100s.

Estimated cost

$62,513

H100 SXM-hours

14,240

Time on 8 GPUs

2.4 months

Compute

2.0e22 FLOPs

Full training needs about 208 GB for weights, gradients and optimiser state before activations, so at least 3 H100 SXMs just to hold the model. Fine-tuning with QLoRA instead needs about 7 GB for 4-bit weights, which fits on a single 32 GB card.

Frequently asked questions

How much does it cost to train a 13B model?
About $62,513 on H100s at $4.39/hour for a compute-optimal run of 260B tokens (6 × parameters × tokens at 40% utilisation). At 2,000B tokens (2T tokens, the Llama 2 budget) it is about $480,873. Treat both as floors: published runs used 1.2–2.9× more GPU-hours than the formula.
How long does it take to train a 13B model?
About 2.4 months on one 8-GPU H100 node for 260B tokens, assuming perfect scaling, or 9 days on 64 GPUs.
How much GPU memory does training a 13B model need?
About 208 GB for weights, gradients and Adam state (16 bytes per parameter) before activations, so at least 3 × 80 GB GPUs with the state sharded.
Which GPU is cheapest for training a 13B model?
At on-demand November 2026 rates, the B200 ($7.99/hour) gives the lowest compute cost, about $50,011, by our estimate. Peak FLOPS aren't delivered performance, so benchmark your own code before a large run.

Fine-tuning instead

Open models of this size already carry far more pretraining than most budgets allow. Adapting one costs a tiny fraction:

The method in depth is in the free Academy course The Economics of Model Training and the article What it really costs to train an LLM; terms are defined in the glossary under 6ND, Chinchilla scaling and MFU.

Sources

  1. [1]Kaplan et al., 2020. Scaling Laws for Neural Language Models (arXiv:2001.08361)
  2. [2]Hoffmann et al., 2022. Training Compute-Optimal Large Language Models (arXiv:2203.15556)
  3. [3]Meta, 2024. The Llama 3 Herd of Models (arXiv:2407.21783)
  4. [4]Rajbhandari et al., 2019. ZeRO: Memory Optimizations Toward Training Trillion Parameter Models (arXiv:1910.02054)
  5. [5]Runpod. GPU pricing (updated 12 November 2026)
  6. [6]Touvron et al., 2023. Llama 2: Open Foundation and Fine-Tuned Chat Models (arXiv:2307.09288)

You probably don't need to pretrain.

Kojen's prompt tuning and model search run on hosted models against your own test cases, and text LoRA trains on real GPUs (for accounts with GPU training enabled) when you need weights to change.

Start training free