Graphics processing unit (GPU)
Also known as: GPU
A chip first built to draw screen images that does thousands of small sums at once, which is why it now runs most AI work.
Draft - this entry has not been reviewed yet.
Formal
A processor made of thousands of simple cores that carry out the same kind of number work side by side, with its own fast memory; neural networks suit it because their work is mostly large grids of numbers being multiplied together.
In plain English
Like a school hall of a thousand pupils each doing one easy sum at the same moment, instead of one professor working through the whole pile alone.
In practice
A region's IT operations lead plans to run an open model in-house for hospital staff and finds the real limit is the memory on each GPU - the model weights must fit there, or answers slow to a crawl.
Why it matters
GPUs are scarce and costly, so who can get them shapes who can build and run large models, what AI services cost, and how much power they use.
Technical deep dive
A modern GPU is a throughput machine built from many streaming multiprocessors (SMs, in NVIDIA's terminology; AMD calls them compute units). Each SM schedules threads in groups of 32 called warps and executes them in a SIMT (single instruction, multiple threads) fashion: all threads of a warp step through the same instruction on different data, and divergent branches are serialised. Instead of hiding memory latency with large caches and out-of-order execution as a CPU does, the GPU keeps thousands of warps resident and switches between them every cycle, so that while some wait for memory others compute. The price is that code must expose massive, regular data parallelism to run well.
The shift from graphics to general computing came in stages: programmable shaders in the early 2000s, NVIDIA's CUDA platform in 2006-2007, and the 2012 AlexNet result, trained on two consumer GPUs, which showed that deep neural networks were practical on this hardware. Since the Volta generation (2017), NVIDIA GPUs contain dedicated tensor cores that perform small matrix multiply-accumulate operations per instruction in reduced precision (FP16, BF16, and on later generations FP8 and FP4), delivering most of the chip's advertised FLOPS. Software rarely targets the hardware directly; frameworks such as PyTorch call vendor libraries (cuBLAS, cuDNN, or ROCm on AMD) and increasingly compiler-generated kernels.
Performance is best reasoned about with the roofline model: a kernel is compute-bound if its arithmetic intensity (FLOPs per byte moved from memory) exceeds the ratio of peak FLOPS to memory bandwidth, and memory-bound otherwise. Large-batch training and the prefill phase of LLM inference are mostly compute-bound; token-by-token decoding at small batch sizes is memory-bound, because every generated token requires reading all weights and the KV cache from high-bandwidth memory (HBM). This is why HBM capacity and bandwidth, not peak FLOPS, often decide which model fits on which card and how fast it answers, and why quantization and batching matter so much.
Models larger than one device are split across GPUs with tensor, pipeline, data or expert parallelism, which makes the interconnect critical: NVLink and NVSwitch within a server, and InfiniBand or RDMA-capable Ethernet between servers. Common misconceptions are that more GPUs always means proportionally more speed (communication overhead and memory limits break linear scaling) and that consumer and data-centre cards are interchangeable (they differ in memory size, interconnect, ECC and licensing terms for data-centre use). Compared with a TPU, the GPU is more general and is sold by several vendors with a broad software ecosystem, whereas the TPU is a Google-designed accelerator centred on systolic matrix units and mainly offered as a cloud service. Operationally, power and cooling are real constraints: current data-centre GPUs draw several hundred watts to over a kilowatt each, and dense racks need liquid cooling.
Relationships
- Alternative to
- Tensor processing unit (TPU)
Sources & further reading
Official documentation
- NVIDIA (1999), GeForce 256 announcement - first chip marketed as a "GPU" · NVIDIA
Textbooks
- Goodfellow, Bengio & Courville, Deep Learning (ch. 12.1, large-scale deep learning) · MIT Press
Where this data comes from
This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.
See the review queueSuggest a correction on GitHubThis term as JSON
Mentioned in
Check yourself
Loading…