Build with AI

What does it really cost to train a language model in 2026?

Published · By Robert Scales, with AI tools · 5 min read

Short answer

At rental prices read on November 2, 2026, a GPT-2-grade model costs about $64, a 124-million-parameter nanoGPT reproduction about $1,500, and a capable 3-billion-parameter model about $880,000 at list price. The bill is GPU-hours multiplied by the hourly price, and failed runs, experiments and staff come on top.

Training a language model has one main bill: renting graphics processors (GPUs), the chips that do the arithmetic, for as long as the run lasts. The unit that matters is the GPU-hour: one GPU for one hour. Eight GPUs for two hours is 16 GPU-hours. Multiply GPU-hours by the hourly rate and you have the core of the budget.

The range is enormous, which is why headlines about billion-dollar training and hobby projects at under $100 can both be accurate.

What GPUs rent for today

These are public list prices in US dollars per GPU-hour, read on November 2, 2026. Taxes are extra, and prices move, so check before you budget. Reserved contracts can differ.

ProviderGPUMemoryPriceSource
LambdaH100 SXM, in an 8-GPU instance80 GB$3.99pricing page
LambdaH100 SXM, single GPU80 GB$4.29same
LambdaA100 SXM, in an 8-GPU instance40 GB$1.99same
LambdaA10, single GPU24 GB$1.29same
RunpodH100 SXM, Secure Cloud / Community Cloud80 GB$3.99 / $2.69pricing page
RunpodRTX 4090, Secure Cloud / Community Cloud24 GB$0.89 / $0.34same
NebiusH100, region eu-north1Not stated$4.50pricing docs
Hugging FaceOne H10080 GB$4.50pricing page
Hugging FaceT4 small16 GB$0.40same

Runpod sells two tiers at different prices, so read who runs the machines in each before you put sensitive data on one. Marketplaces and spot offers can go much lower, with less certainty that the machine stays yours.

What real runs cost at those prices

The hours come from the projects' own reports. The dollar column multiplies them by the prices above, unless noted.

RunComputeGPU-hoursCost
nanoGPT Shakespeare toyLaptop, minutes0$0 plus electricity
nanochat, 6 layersM3 Max laptop, about 40 min0$0 plus electricity
Fine-tune an 8B model (QLoRA), if it takes 2 hOne rented L4 at $0.802about $1.60
nanochat GPT-2 grade8 H100, about 2 h with evaluation16about $64
nanoGPT GPT-2 (124M) reproduction8 A100 40 GB, about 4 days768about $1,530
SmolLM3, 3B384 H100, 24 days221,184about $880,000
Apertus, 8B and 70BAlps supercomputermore than 10 millionabout $40 million if rented at $3.99; it ran on a public supercomputer
DeepSeek-V32,048 H8002.788 million$5.576 million, DeepSeek's figure at an assumed $2

Three notes on reading this table. First, nanochat's README quotes about $48, using roughly $3 per GPU-hour. At Lambda's listed $31.92 an hour for the 8-GPU machine, the training alone (1.65 hours on the current leaderboard) is about $53, and a full run with setup and evaluation is closer to $64. Its author also mentions about $15 on spot machines, whose prices change constantly. Second, the same "GPT-2 grade" took about $43,000 in 2019, by the author's account. Third, only DeepSeek's cost is a company's own number, and DeepSeek says it leaves out earlier research and experiments.

The costs that are not on the rate card

Failed and experimental runs. The published number is normally the final successful run. Serious projects try many versions first. For small models this is your main cost after the first success.

People. A 2024 analysis of frontier models by Cottier and colleagues finds that for models such as GPT-4 and Gemini, staff cost tens of millions of dollars, about as much as the chips, while energy is only 2 to 6%. It estimates that the most compute-intensive runs have grown about 2.4 times a year since 2016, and that if the trend continues the largest will pass a billion dollars by 2027.

Storage and data. A filesystem you forget keeps billing. Lambda, for example, charges for a filesystem as long as it exists but not for moving data in or out. Other clouds may charge for outbound data, so read the terms.

Forgotten machines. On-demand instances usually bill until you terminate them, even when idle. An 8-GPU node left running over a weekend, about 60 hours, costs about $1,900 at Lambda's rate, far more than the training itself.

If you are in Canada

The prices above are in US dollars, so the exchange rate adds to a Canadian bill. University researchers have another route: the Digital Research Alliance of Canada gives account holders CPU and GPU time for opportunistic use, without priority and without guarantees. More priority requires its Resource Allocation Competition, open to faculty, adjunct faculty and librarians. The 2027 round closes on November 3, 2026.

Try it: Open one provider's pricing page today and work out what 16 GPU-hours on an H100 costs there, with tax for your province. Then multiply by five to see what your first week of experiments might cost.

How do you estimate your bill before you start?

Use one formula: tokens to train on, divided by tokens processed per GPU-hour, multiplied by the price. A token is the piece of text the model reads, roughly three to four characters of English.

SmolLM3 gives a real throughput for reference. It processed 11.2 trillion tokens in 221,184 GPU-hours, which works out to about 50 million tokens per GPU-hour, or about 14,000 per second per GPU. Suppose you want to pretrain a similar model on 500 billion tokens:

  • 500 billion ÷ 50.6 million = about 9,900 GPU-hours
  • 9,900 × $3.99 = about $39,500
  • Double it for experiments, as a planning assumption, and budget about $80,000

That throughput depends on the model size, the batch settings and the machine, so measure your own. Run for ten minutes, read the tokens per second from the training log (nanochat reports it as train/tok_per_sec), and redo the arithmetic with your number. Those ten minutes on an 8-GPU node cost about $5, and they can stop you from starting a run you cannot finish.

Sources

  1. GPU cloud pricing — Lambda, November 2, 2026
  2. Pricing — Runpod, November 2, 2026
  3. nanochat README, speedrun script, CPU script and leaderboard notes — Andrej Karpathy (GitHub)

Sources for the articles linked in the text

Each linked article has its own page, with its sources and its date.

From the Guide to Artificial Intelligence, by Robert Scales, published by Holistic Hybrid Inc. Share and adapt it under CC BY-NC-SA 4.0: credit the guide, link to https://guidetoartificialintelligence.com/en/learn/what-training-llm-costs-2026/, no commercial use without permission, and keep the same licence.

Get the free Guide to Artificial Intelligence

Sign up for the newsletter and receive the free guide: what changed in AI, one lesson, one prompt to try. Unsubscribe in one click.

How we handle your address

Back to top

Display

Your choices are saved in this browser only. No data is sent.

Text size
100%
Colours
Reading
More settings
Accessibility statement

Get the app

Add the guide to your home screen. It opens like an app, and the pages you have read stay available offline.

Read without a connection: download the articles

iPhone and iPad (Safari, Chrome, Edge)

  1. Tap the Share button (the square with an arrow). In Chrome and Edge, it is in the address bar or the menu.
  2. Choose “Add to Home Screen”.
  3. Tap “Add”.

Android (Chrome, Edge, Samsung Internet, Firefox)

  1. Open the browser menu (⋮ or ☰).
  2. Choose “Install app” or “Add to Home screen”.
  3. Confirm with “Install”.

Computer (Chrome, Edge)

  1. Click the install icon at the right end of the address bar, or open the browser menu (⋮ or …).
  2. In Chrome, choose “Cast, save and share”, then “Install page as app”. In Edge, choose “Apps”, then “Install this site as an app”.
  3. Click “Install”.

Mac (Safari)

  1. Open the File menu.
  2. Choose “Add to Dock”.
  3. Click “Add”.

Firefox on a computer can’t install a site as an app. Use Chrome, Edge or Safari instead.