How LLMs Work
How Do Language Models Run? GPUs and Data Centres
Training and running big models needs special chips and lots of electricity. Here is the basic picture.
Diagram made for this site from the facts on this page.
Why GPUs?
Neural networks need many simple calculations at the same time. GPUs, originally built for computer graphics, are good at that. For example, the AlexNet team said in their paper that a very efficient GPU implementation made training faster. See AlexNet.
Training vs using
Training is slow and expensive and happens once in a while. Inference, answering your question, happens each time you chat.
Data centres
Big models usually run in data centres filled with servers. The International Energy Agency estimates data centres used around 1.5% of the world's electricity in 2024. Not all of that is AI. See how much energy AI uses.
Smaller models can run on a laptop or phone. Microsoft's Phi-3 report describes a 3.8 billion parameter model small enough to run on a phone. See small language models.
Why it matters
Computing uses energy and hardware. Making models more efficient is an important research goal.