Why AI Runs on GPUs

Cascade Insights · AI explainer series

Why AI Runs on GPUs

Why AI needs graphics chips, shown in a race between a CPU and a GPU

Graphics chips were not designed for artificial intelligence. They were designed to paint millions of pixels at once, and AI turned out to need the same kind of work: enormous numbers of small, identical calculations. This page covers how a CPU and a GPU differ, why AI landed on the GPU, and which jobs still belong on the CPU.

New to the hardware? Tap any dotted term for a definition, or .

Two very different machines

A CPU (central processing unit) has a handful of large, complex . Each runs at a high , the code will take next, and keeps frequently used data in a large on-chip . The design goal is low : finish one complicated, unpredictable task as fast as possible.

A GPU (graphics processing unit) is built the other way around. It packs thousands of small, simple cores onto the and pairs them with very fast memory. Any one of those cores is slower and less capable than a CPU core, but they all run at the same time. The design goal is : finish a very large number of identical, simple tasks per second.

CPU · a few powerful cores GPU · thousands of simple cores large shared cache optimized for latency optimized for throughput HBM
A CPU spends its silicon on a few large cores plus cache and control logic. A GPU spends the same area on many small cores and the that feeds them.

The pattern holds at both ends of the market. Each figure below is given twice: once for a typical gaming PC, once for the data-center hardware that trains and serves large models.

CPU cores
Gaming PC
6–16
Ryzen 7 7800X3D: 8 cores
Core i5-13600K: 14 cores
Data center
up to ~192
AMD EPYC server CPU

Large, independent cores with high clock speeds and deep caches.

GPU cores
Gaming PC
6,144–21,760
RTX 5070: 6,144 cores
RTX 5090: 21,760 cores
Data center
16,896
NVIDIA H100 (2022)

Small and simple, grouped to run the same instruction across many data points at once.

CPU memory bandwidth
Gaming PC
~90 GB/s
Dual-channel DDR5-6000
Data center
~500 GB/s
12-channel DDR5

, sized for capacity and flexibility.

GPU memory bandwidth
Gaming PC
0.67–1.79 TB/s
RTX 5070: 672 GB/s
RTX 5090: 1.79 TB/s
Data center
3.35 TB/s
H100, stacked HBM3

Memory soldered or stacked next to the die, close enough to keep thousands of cores supplied.

A top gaming card has more cores than an H100: the RTX 5090's 21,760 against the H100's 16,896. The data-center premium buys memory rather than cores. An H100 has 3.35 TB/s of against the 5090's 1.79, and 80 GB of against 32, plus . A model too large to fit in a gaming card's memory will not run on it at any speed. Newer data-center chips widen that gap: NVIDIA's Rubin GPUs, shipping since August 2026, carry 288 GB of memory at roughly 20 TB/s.

AI is mostly one kind of math

A neural network is simpler on the inside than it sounds. Training one, or running one, means multiplying very large grids of numbers together over and over. That operation is . A language model answering a single question performs billions of individual multiply-and-add operations.

Each of those steps is independent of its neighbors. Cell one of the answer does not wait on cell two. Computer scientists call work like this , and it suits a chip with thousands of cores: give every core its own slice and they all finish at once.

This is why the deep-learning boom and the GPU boom arrived together. Transforming huge batches of vertices and pixels for 3D graphics has the same structure as the math a neural network needs, so the hardware already existed when the models did. AI-focused GPUs now add dedicated units, such as , that do nothing but matrix math.

The same job on both chips

Both sides below run the same job: 384 independent chunks of matrix math. The CPU side has 8 fast cores. Each finishes a chunk quickly, but only 8 chunks can be in progress at a time. The GPU side has 384 slow cores. Each takes six times longer per chunk, but every chunk starts immediately.

CPU

8 fast cores, one chunk each at a time

idle

GPU

384 slow cores, every chunk at once

idle

Where CPUs still win

The CPU isn't obsolete. It's the wrong tool for one specific job and the right tool for most others. CPUs win whenever each step depends on the one before it, or the job is small. Business logic, database queries, parsing and cleaning data, and orchestrating a pipeline all make decisions that depend on the previous step. That is what a large core with branch prediction and a deep cache is built for, and what a sea of simple cores handles badly.

CPUs also win on cost for modest workloads. Classical machine-learning models such as regressions, gradient-boosted trees, and most forecasting run well on CPUs, as does on a small model serving light traffic. A GPU running at 5% is expensive hardware sitting idle. And whatever runs the model itself, every AI system still depends on CPUs for the work around it, like loading data and running the application.

Which chip for which job

Training a deep-learning modelWeeks of matrix math on CPUs becomes days or hours on GPUs
GPU
Running a large language modelBillions of parallel operations per response
GPU
Generating images, video, or embeddingsThe same parallel math
GPU
Classical ML: regression, boosted trees, forecastingSmall models and branch-heavy algorithms. CPUs are fast enough and cost much less
CPU
Data preparation, ETL, and pipeline orchestrationSequential, branch-heavy, I/O-bound work
CPU
Serving a small model with light trafficA well-used CPU beats an idle GPU on cost per request
CPU
Inference on a mid-size model as demand growsStart on CPU, move to GPU when latency or volume demands it
DEPENDS

How to decide

Neither chip is better. Each is specialized for a different shape of work. A CPU is like a small team of experts, and a GPU is like a stadium full of people who can each do one simple thing at the same moment. AI is a stadium-sized problem made of simple, identical pieces, which is why it runs on the GPU, while most of what a business runs is expert work that stays on the CPU.

If the work is millions of identical, independent calculations, buy throughput and use a GPU. If it is fewer, more complex, order-dependent steps, buy speed per step and use a CPU. Most real systems need both, so the practical question is how the budget splits between them.

GPUs are not the only accelerators. , and other custom AI chips apply the same principle of many simple units doing parallel math, in different packaging. The trade-off described above is the one they are all making.