AnyLearn
All lessons
AIintermediate

Inside the machine that runs AI

An AI data center is not a warehouse of ordinary computers; it is a single supercomputer built from tens of thousands of specialized chips wired together. Learn why GPUs beat regular processors for AI, why the network between chips matters as much as the chips, why one company dominates the market, and the cost structure that makes these buildings so expensive.

Updated · AI-authored, review-gated · how lessons are made

Not signed in: your progress and quiz score won't be saved.
Progress1 / 8

Not a warehouse of PCs

It is tempting to picture an AI data center as a big room full of ordinary computers. That picture is wrong in a way that hides everything important. A modern AI facility is engineered to behave as one enormous computer, a single machine spread across a building, whose tens of thousands of chips work on the same problem at the same time.

That distinction drives the whole design. A web company's data center runs millions of small independent tasks, so its machines barely need to talk to each other. An AI training run is one calculation so large it must be split across thousands of chips, and those chips must constantly exchange intermediate results, in lockstep, or the whole run stalls.

So an AI data center is really a supercomputer: not many computers near each other, but one computer made of many parts that must act as a unit. Getting tens of thousands of chips to cooperate on a single job, fast enough that none sits idle waiting for the others, is the central engineering challenge, and it shapes the chips, the network, the power, and the cost.

Full lesson text

All 8 steps on one page, for reading, reference, and search.

Show

1. Not a warehouse of PCs

It is tempting to picture an AI data center as a big room full of ordinary computers. That picture is wrong in a way that hides everything important. A modern AI facility is engineered to behave as one enormous computer, a single machine spread across a building, whose tens of thousands of chips work on the same problem at the same time.

That distinction drives the whole design. A web company's data center runs millions of small independent tasks, so its machines barely need to talk to each other. An AI training run is one calculation so large it must be split across thousands of chips, and those chips must constantly exchange intermediate results, in lockstep, or the whole run stalls.

So an AI data center is really a supercomputer: not many computers near each other, but one computer made of many parts that must act as a unit. Getting tens of thousands of chips to cooperate on a single job, fast enough that none sits idle waiting for the others, is the central engineering challenge, and it shapes the chips, the network, the power, and the cost.

2. Why a GPU, not a CPU

The chip at the center of AI is the GPU, the graphics processing unit, and the reason it won is a match between its shape and the shape of the math.

A CPU, an ordinary processor, has a few very powerful cores designed to do complicated tasks one after another, quickly. A GPU has thousands of simpler cores designed to do the same simple operation on huge amounts of data all at once. That is called parallelism.

The crucial fact: the core operation of a neural network is matrix multiplication, multiplying big grids of numbers, which is thousands of identical multiply-and-add operations that can all happen simultaneously. That is exactly what a GPU is built for and exactly what a CPU is bad at.

CPUGPU
coresa few, powerfulthousands, simple
good atcomplex sequential tasksthe same operation on lots of data
AI fitpoorexcellent

GPUs were originally built to render video-game graphics, which is also massively parallel arithmetic. AI inherited a chip designed for games and found it was the ideal engine for neural networks, an accident of history that shaped the whole industry.

3. The network is half the machine

Here is the counter-intuitive part. When you split one giant calculation across ten thousand chips, they must constantly send each other partial results. If the connections between chips are slow, the chips spend most of their time waiting, and expensive silicon sits idle. So the network inside an AI data center is not a supporting detail; it is half the supercomputer.

This is why AI systems are built in a hierarchy of ever-faster links:

  • Inside a chip: cores talk almost instantly.
  • Inside a server: a handful of GPUs are wired together with a very fast local interconnect so they act as one bigger chip.
  • Between servers: specialized high-speed networking links racks into a cluster.

The engineering goal is to keep every GPU fed with data so none is stalled. A cluster where chips wait on the network is a cluster wasting most of its cost, since the GPUs are the expensive part.

This is also why you cannot build a frontier AI system from ordinary cloud servers scattered around. The chips have to be physically close and exotically well-connected, which is a big reason these are dense, purpose-built buildings rather than distributed computing.

4. Why one company dominates

The AI chip market is unusually concentrated: Nvidia supplies most of the GPUs behind AI training and inference, a dominance that shows up in its results. Nvidia's data-center segment reported revenue on the order of 75 billion dollars in a single quarter in its fiscal 2027, up sharply year over year. That is not luck, and understanding why reveals a moat that is not just about the chip.

Nvidia's real lock-in is software. Over nearly two decades it built CUDA, the programming platform that lets developers actually use its GPUs, and the entire AI research world learned to build on it. A rival can design a competitive chip, but every AI framework, tool, and tutorial assumes CUDA, so switching means rewriting the ecosystem. The chip is replaceable; the software gravity is not, easily.

This is the network-effect and switching-cost story from platform economics, applied to silicon. The value is not only the hardware but the accumulated software, skills, and tooling around it.

The concentration matters for the whole buildout. When one supplier is a near-bottleneck for the essential input, its production capacity, pricing, and release schedule shape everyone else's plans, and a large share of all that hyperscaler capital flows through a single company.

5. The custom-silicon counter-move

The hyperscalers, the handful of giant cloud companies doing most of the building, do not enjoy depending on a single expensive supplier. So each is designing its own AI chips, custom silicon aimed at their specific workloads.

The logic is straightforward. If you are spending tens of billions of dollars a year on someone else's chips, designing your own becomes worth the enormous effort, even to cover only part of your needs. An in-house chip can be tuned for your exact models, avoids the supplier's margin, and reduces dependence on one company's roadmap.

But it is very hard, for the reason the previous step gave: a chip is not enough, you also need the software ecosystem, and that is where the incumbent's decades of investment bite. So custom silicon has been most successful for inference, the more standardized, higher-volume workload, while the cutting-edge training runs still lean heavily on the market leader.

The result is a two-track market: buy the dominant supplier's chips for the frontier and for flexibility, and build your own for the high-volume, well-understood workloads where the savings are largest. Watching this balance shift is one of the clearest signals of how the compute economics are evolving.

6. Where the money goes

An AI data center's cost is not what most people assume. It splits, very roughly, into three big buckets, and knowing the split explains the industry's behavior.

BucketWhat it isRough character
the chipsGPUs and acceleratorsthe single largest slice, and it depreciates fast
the building & power gearshell, cooling, transformers, backuphuge, long-lived, and slow to build
the electricityrunning it, foreverthe permanent operating cost

Two features dominate. First, the chips are the biggest capital cost and they age fastest, superseded within a few years, so the clock is ticking on getting a return the moment they are installed. Second, power is both a build cost and a forever cost: you pay to connect to the grid or build generation, then pay for the electricity every second the machine runs.

This cost shape explains the urgency. A data center full of chips that sit idle, waiting on a slow network, or unbuilt because the power is not ready, is a fortune of fast-depreciating silicon earning nothing. Every design choice, the network, the cooling, the power deal, exists to keep the expensive chips busy, because idle chips are the most expensive thing in the building.

7. Why they keep getting denser

Each generation of AI chips packs more computing into the same space and draws more power, which pushes the whole building toward extremes. A modern high-end AI server can draw as much electricity as a small block of houses, and a full rack of them concentrates that into a single cabinet.

This density is not vanity; it comes straight from the network problem. The closer the chips, the faster they can talk, so squeezing more compute into less space directly improves performance by shortening the links. Density is a feature.

But density creates a heat problem that ordinary air cannot solve. Traditional data centers blow cold air over the chips; the newest AI hardware runs so hot and so concentrated that many facilities are moving to liquid cooling, piping coolant directly to the chips, because air simply cannot carry the heat away fast enough.

So the trajectory is clear and self-reinforcing: denser chips, drawing more power, packed tighter for speed, generating more heat, demanding exotic cooling and ever more electricity. This is the physical reality behind the abstract compute figures, and it leads directly to the binding constraint of the next lesson, power.

8. The AI supercomputer, layer by layer

One giant calculation is split across a hierarchy: many GPUs inside a server joined by a fast local link, servers joined into a cluster by high-speed networking, all kept fed so no expensive chip sits idle.

flowchart TD
  A["one giant calculation: a training run"] --> B["split across tens of thousands of GPUs"]
  B --> C["GPU: thousands of cores for matrix math"]
  C --> D["server: a few GPUs, very fast local link"]
  D --> E["cluster: servers joined by high-speed networking"]
  E --> F["goal: keep every GPU fed, none idle"]
  F --> G["density rises: more power, liquid cooling"]
  G --> H["leads to the binding constraint: electricity"]

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. Why is an AI data center better described as one supercomputer than as a warehouse of PCs?
    • Because it uses a single very large chip
    • Because tens of thousands of chips work on the same calculation at once and must constantly exchange results
    • Because it runs millions of independent small tasks
    • Because it has only one owner
  2. Why do GPUs beat CPUs for AI?
    • GPUs have a few very powerful sequential cores
    • GPUs use less electricity than CPUs
    • Neural networks are mostly matrix multiplication, thousands of identical operations a GPU's many parallel cores do at once
    • CPUs cannot do arithmetic
  3. Why is the network inside an AI data center described as 'half the machine'?
    • It handles user internet traffic
    • It stores the training data
    • It provides backup power
    • If chip-to-chip links are slow, expensive GPUs sit idle waiting, so interconnect speed determines whether the cluster is used
  4. What is the deepest source of Nvidia's dominance in AI chips?
    • CUDA, the software platform the whole AI ecosystem is built on, creating switching costs beyond the chip itself
    • It is the only company that can make chips
    • Government-granted monopoly
    • Its chips use no electricity
  5. Which fact about an AI data center's cost structure best explains the industry's urgency?
    • The building is the cheapest part
    • Electricity is free once connected
    • The chips are the biggest capital cost and depreciate within a few years, so idle chips waste a fast-aging fortune
    • Cooling is the largest expense

Related lessons

AI
advanced

ZeRO and FSDP: Sharding What Data Parallelism Duplicates

Data parallelism keeps N identical copies of everything. ZeRO removes that redundancy in three stages, and stage 3 takes a 70B model from 1120 GB per GPU to 17.5 GB across 64. This lesson covers what each stage shards, the communication each costs, how FSDP implements it with prefetch and wrapping policy, when offload is worth it, and why stage 3 is not automatically right.

10 steps·~15 min
AI
advanced

The Memory Wall: Why Training Needs More Than One GPU

Training memory is dominated by things that are not the model. Mixed-precision Adam costs 16 bytes per parameter, so a 70B model needs 1120 GB of state before one activation is stored. This lesson works through where every byte goes, why data parallelism helps throughput but not memory, how accumulation and recomputation trade compute for space, and what each axis of parallelism addresses.

10 steps·~15 min
AI
advanced

Finding the Next One: Fusion Beyond Attention

The pattern that made attention slow recurs across the stack, and once you know what to look for it is easy to find. This lesson applies the diagnosis to normalisation layers, optimizer steps, loss functions and inference decoding, covers why fused attention silently stops applying when a model deviates slightly from standard, and gives the profiling routine that decides where to look first.

10 steps·~15 min
AI
advanced

Writing Fused Kernels Without Writing CUDA

The reason most teams never fuse anything is that CUDA asks you to manage threads, shared memory and synchronisation by hand. Triton moves the unit of programming from a thread to a block and hands the rest to a compiler. This lesson covers what that buys, what it still asks of you, how to decide a kernel is worth writing, and how to be sure it is correct.

10 steps·~15 min