Video Cards: Basics
Summary
GPU — a graphics processor. It is on this processor, not the CPU, that neural networks are trained and run: it can perform thousands of parallel computations.
Why Not CPU
CPU (processor) — a universal with several cores. GPU — thousands of small cores that work in parallel. Neural networks are billions of identical matrix multiplication operations: this is exactly the kind of work that the GPU does much faster.
Why GPU in AI
- Training: Flagships are trained on clusters of thousands of GPUs (NVIDIA H100).
- Inference: Local models are also run on GPUs — otherwise, generation is too slow.
NVIDIA — the Standard
Most neural networks use CUDA — a computing technology from NVIDIA. Therefore, in AI hardware, it is almost always NVIDIA graphics cards.
Which is More Important: Cores or Memory
For neural networks, the main parameter is not the number of cores, but the amount of VRAM: this determines whether the model will fit. A powerful chip with little memory will be outperformed by a medium chip with more VRAM when running a large model.
How GPU Accelerates Generation
During generation of each token, the model reads all its weights from memory. The speed is not limited by number multiplication, but by memory bandwidth. Therefore, video cards with wide memory buses generate text faster.