Topic 11 of 20 · 43 words
Hardware & AI Computing
The silicon behind AI: GPUs, TPUs, NPUs, Tensor Cores, HBM memory bandwidth, interconnects, and energy efficiency.
✎ Napkin Diagram · Topic 11AI Hardware (GPUs & VRAM): The Fast Chef & The Kitchen Door
PNG ↗The 43 words, in learning order
Start at 1. Each word builds on the ones before it.
- GPUA GPU, or Graphics Processing Unit, is a computer chip that can do thousands of simple calculations at the same time, which makes it perfect for AI.
- CPUA CPU, or Central Processing Unit, is the main general-purpose chip in a computer that runs programs step by step.
- NPUAn NPU, or Neural Processing Unit, is a chip or part of a chip designed specifically to run AI tasks efficiently.
- TPUA TPU, or Tensor Processing Unit, is Google's custom chip designed to train and run neural networks.
- Neural EngineThe Neural Engine is Apple's built-in AI accelerator inside iPhone, iPad and Mac chips.
- ASICAn ASIC, or Application-Specific Integrated Circuit, is a chip custom-built for one particular job.
- FPGAAn FPGA, or Field-Programmable Gate Array, is a chip whose circuits can be reprogrammed after it is made.
- CUDACUDA is NVIDIA's software platform that lets programmers use NVIDIA GPUs for general computing, including AI.
- Tensor CoresTensor Cores are special parts of NVIDIA GPUs built to do matrix multiplication extremely fast.
- Compute UnitsCompute units are the processing blocks inside a chip that actually do the calculations.
- FLOPSFLOPS stands for floating-point operations per second, a measure of how many math calculations a chip can do every second.
- TFLOPSTFLOPS means trillions of floating-point operations per second.
- TOPSTOPS means trillions of operations per second, usually for integer math like INT8, and is often used for NPUs.
- FLOPS vs TOPSFLOPS counts floating-point (decimal-style) calculations, while TOPS counts operations that are often simpler integer math.
- VRAMVRAM is the fast memory built onto a graphics card, where AI model weights and the KV cache are stored while running.
- RAMRAM is a computer's main working memory, where programs and data are kept while in use.
- Unified MemoryUnified memory is a design where the CPU and GPU share one big pool of memory instead of having separate memory.
- Shared MemoryShared memory can mean memory that several processors use together, or a small, very fast memory area inside a GPU that a group of cores shares.
- Memory BandwidthMemory bandwidth is how fast data can move between a chip's memory and its processors, usually measured in gigabytes per second.
- Memory CapacityMemory capacity is how much data a memory can hold, measured in gigabytes.
- Memory BusA memory bus is the data path that connects memory to the processor.
- Memory ChannelsMemory channels are separate pathways between the processor and memory that can work at the same time.
- CacheA cache is a small, very fast memory close to the processor that keeps recently or frequently used data.
- L1 CacheL1 cache is the smallest and fastest cache, sitting right next to each processor core.
- L2 CacheL2 cache is a larger, slightly slower cache that sits between L1 and L3.
- L3 CacheL3 cache is a bigger, shared cache that all CPU cores can use.
- SRAMSRAM, or Static RAM, is very fast, expensive memory used for caches and on-chip storage.
- DRAMDRAM, or Dynamic RAM, is the common main memory in computers, cheaper and denser than SRAM but slower.
- HBMHBM, or High Bandwidth Memory, is stacked memory placed right next to a chip to give extremely fast data access.
- GDDRGDDR is a type of fast graphics memory used on gaming and consumer graphics cards.
- PCIePCIe is the standard connection that links graphics cards and other devices to a computer's motherboard.
- NVLinkNVLink is NVIDIA's high-speed connection that links GPUs directly to each other, much faster than PCIe.
- InterconnectAn interconnect is the communication link that connects chips, servers or racks so they can share data.
- CPU-GPU TransferCPU-GPU transfer is moving data between the computer's main memory and the graphics card's memory.
- Host MemoryHost memory is the main system memory (RAM) attached to the CPU, as seen from a GPU's point of view.
- Device MemoryDevice memory is the memory that belongs to an accelerator like a GPU, such as its VRAM or HBM.
- Thermal ThrottlingThermal throttling is when a chip slows itself down to avoid overheating.
- Power ConsumptionPower consumption is how much electricity a device uses, often measured in watts.
- WattsA watt is a unit that measures the rate of energy use, or power.
- Tokens per WattTokens per watt measures how many tokens a system produces for each unit of power, showing energy efficiency.
- ComputeIn AI, compute means the processing power used to train or run models, usually measured in FLOPs or GPU hours.
- Compute DensityCompute density is how much processing power fits into a given space or power budget.
- Hardware AccelerationHardware acceleration means using specialized chips to do certain tasks much faster than a general CPU could.
How Hardware & AI Computing fits together
AI models are giant piles of matrix multiplications and memory reads. CPUs have a few ultra-clever cores built for branching logic; GPUs and TPUs pack thousands of specialized matrix units (Tensor Cores) wired to ultra-wide High Bandwidth Memory (HBM) so millions of math operations happen at once.
When sizing AI hardware, look at three numbers before anything else: VRAM capacity (does the model fit?), memory bandwidth in GB/s or TB/s (how fast will tokens stream?), and interconnect speed like NVLink (how fast can multiple chips share one giant model?).