Normal People

The world is waking up.

Part 2

Do we have enough land for this?

If the prediction was true, we will be needing 1-10+GW powered data centers in most of the countries. Looking at global energy supply and data center that has been built or on-track to be delivered...are we on track? Discussing the actual costs behind monster rounds and mining precious metal, produce energy and building energy from the space.

Before we go deeper in return on tokens later, we should talk about the investment and return on owning intelligence first.

In computer vision, there has been a similar pattern. Early methods conceived of vision as searching for edges, or generalized cylinders, or in terms of SIFT features. But today all this is discarded. Modern deep-learning neural networks use only the notions of convolution and certain kinds of invariances, and perform much better. The Bitter Lesson

Rich argued that across 70 years of AI, general methods that scale with computation (search and learning) consistently outperform approaches built on human knowledge of a domain1. The recent advancement in continual learning and reinforcement learning234 might have changed the game. (Speaking of games, there is a self-learning Mario you can play around). Practical examples in the industry are moving this from paper into product. Do we need it? Most likely. Does continual learning make production inference as costly as training time? The return on reinforcement learning and fine tuning is something we will go into more details later.

I have had 30+ conversations with people telling me "people are going to have their own energy source in the company", "home use compute and home use GPUs!", "cost of buying from labs are too expensive!". Marco actually home-baked a small cluster so I don't see why people can't do it. To put the numbers down into perspective:

During training

  • A small model (1B to 7B parameters) can be trained on a single H100, but it will take longer time. For practicality it's more often to be trained on a cluster of 8 to 32 H100s. 5

  • A medium model (7B to 70B parameters) requires 64 to 512 H100s.

  • A frontier / Mega Models (400B+ parameters) requires 1,000 to 10,000+ GPUs (And there were a lot orchestration project built to support this problem!)67

Production inference/Test time compute

GPU requirement is much smaller than training but it depends heavily on precision, context length, batch size, and latency target. Inference mostly needs memory for model weights and KV cache. a 400B+ model takes up about 810GB before KV cache. More details about what happens during training and serving inferences for a model.

  • A small model (1B to 7B parameters), minimally requires 1 GPU, and sometimes maybe not even H100. But depending on the traffic you might need 1-8 H100s.

  • A 7B to 70B parameter model, minimum spec is 1-2 H100s for small/medium; 2+ for 70B, but usually need 8-256+ H100s for real API services.

  • 400B+ densed/frontier model takes 8-16+ H100/H200 per serving replica, but it can also be hundreds to thousands of GPUs depending on user volume.

So we clustermaxxing now?

A small 8xH100 cluster within Supermicro SYS-322GA-NR gives a useful physical baseline:

SpecificationImperialMetric
Height8.75 in222.5 mm
Width17.2 in438 mm
Depth31 in786.1 mm
Gross weight100 lb45.3 kg
Net weight65.5 lb29.7 kg

Let's say we put 10 of these in a Vertiv VR3350:

LayerRecommendation
RackVertiv VR3350, 42U high-density rack, 78.7H x 31.5W x 47.2D in / 2000H x 800W x 1200D mm
Servers10 x Supermicro SYS-322GA-NR
GPUs80 x H100 PCIe
Network2 x 1U NVIDIA Quantum-2 / QM9700-class 400G InfiniBand switches
Management1U management switch
Cable mgmt1U horizontal cable manager + vertical side cable management
PowerDual A/B 415V 3-phase high-density rack PDUs or busway taps
CoolingRear-door heat exchanger / liquid-assisted air cooling sized for the actual power cap

Great, now we have one rack with 80 GPUs. Training compute is usually counted in GPU-hours: one GPU running for one hour is one GPU-hour, so total demand is roughly GPU count × wall-clock hours. If a frontier pre-training run needs on the order of 20 million GPU-hours and you want it done in about three months (~2,160 hours), you need roughly 10,000 GPUs — 125 racks like this. That is one lab, one model, one training push.

Training alone only gets you to ~45,000 GPUs. Inference is what blows the number up: tens of millions of users do not each get a GPU, but peak traffic still needs thousands of replicas in parallel, and a single 400B+ replica can already consume 8-16+ GPUs before batching helps. 300,000 GPUs is also ~3,750 of these 80-GPU racks — the same unit math as above, just scaled by 30×.

Split the fleet into training and inference, then add the slices back up we to actually serve production demands.

Fleet sliceBack-of-envelope assumptionGPUs
Frontier pre-training3 labs each running one ~10,000-GPU run at peak~30,000
Post-training and researchRLHF, SFT, eval, and shadow clusters (~50% of the pre-training fleet)~15,000
Frontier inference~10,000 serving replicas × ~16 GPUs per 400B+ replica at peak~160,000
Mid/small model inferencerouting, search, embeddings, and smaller chat models for ~10M users~95,000
Total~300,000

Take H100 NVL (80 GB HBM3 and up to 3.35 TB/s), on average it costs between $29,900 and $48,400 as a standalone unit (it can go upwards to $90,000+ depending on supplier/reseller).

Let's take a medium number, say each of them costs $35,000. Combined together:

300,000 GPUs costs $10,500,000,000.

This is just the cost on GPUs and we completely ignored the costs on acquiring land permit, hiring, electricity, networking build out, ongoing maintenance etc. When we add up the numbers together monster rounds are not as crazy as it seems.

In reality, you probably want a combination of CPUs, Storages, H200, B200, B300, GB200, GB300, maybe also DGX Spark when you are building a data center. We will talk more about demands on orchestration between training and inference later.

Planning itemCalculationResult
Racks3,750 x 80 GPUs per rack300,000 GPUs
Bare rack footprint3,750 x 31.5W x 47.2D in~38,738 sq ft / ~3,600 m²
Practical white space2.5-3x bare footprint for aisles, containment, service access, and cooling distribution~96,845-116,214 sq ft / ~9,000-10,800 m²
IT load3,750 x 60-75 kW per rack225-281 MW IT
Facility drawIT load x PUE 1.54347-433 MW
Server-only weight37,500 x 65.5 lb net server weight~2,456,250 lb / ~1,114 metric tons before racks, switches, cabling, PDUs, and cooling hardware

You can play around with the cost of building a data center on the Cluster TCO Calculator made by SemiAnalysis.

If things are so large, how do we optimise?

These numbers looks quite scary. There are recent advancement from the post transfomer community where smaller models that can perform the same as GPT-3 be deployed on a small Rasberry Pi. These smaller models can be deployed, trained on much smaller machines and requires much less resources, building on python and Rust There were significant investment going into fine tuning small models with LLM insights. The debates between who is wining the context window haven't end.

Autonamtic AI research is coming quickly than anyone could have imagine.

It can be done, but how much is needed

We can do some dumby calculation to estimate this:

If someone's maximum spent on token is 90k, and some people could be spending nothing on AI. Currently there are approximately 8.3 billion people on the planet. In 20 years time we will reach roughly 9.5 billion.

Population prediction
Population prediction. 2024 United Nation. Population Division.

If we split the worlds' population into four groups:

  • teenagers (0 - 14yr): to simplify this we imagine a large group of them are spending a lot less or close to zero
  • adults (15-24yr): they might spend a lot more for work
  • mid-age (25-64yr): senior executive or pre-retirement they would still spend some tokens but less
  • elderlies (65yr - above): retired/not using AI
World Population seprated by age group
World population separated by age group. 2024 United Nation. Population Division.

The formula to calculate annual electricity cost is simple:

annual cost = IT kW x 8,760 hours x PUE x $/kWh
ScenarioFacility drawMonthlyAnnual
60 kW rack, PUE 1.54, industrial power92.4 kW~$5.8k~$69k
75 kW rack, PUE 1.54, industrial power115.5 kW~$7.2k~$87k
60 kW rack, PUE 1.54, commercial power92.4 kW~$9.4k~$113k
75 kW rack, PUE 1.54, commercial power115.5 kW~$11.7k~$141k

Economics of data centers

GPU Capital Market