Learn AI Math

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 ↗
AI Hardware (GPUs & VRAM): The Fast Chef & The Kitchen Door Simple cartoon showing a Super-Fast Chef (GPU) who needs ingredients from a nearby Countertop Fridge (VRAM) via a wide double-door (Memory Bandwidth), instead of walking down a slow hallway to the Basement Pantry (System RAM). Basement Pantry(Regular PC RAM)Lots of cheap room,but far away & slow!Tiny Stairs(10× slower!)INSIDE THE GRAPHICS CARD (GPU KITCHEN)Counter Fridge(VRAM Memory)Holds the AI brainMust fit in here!Wide Highway(Bandwidth)Feeds ingredients fast!⚡ Super-Fast Chef(GPU Math Cores)Chops 1,000 numbersat the exact same time! getaimath.com
A fast GPU chip is like a fast chef—if the memory doorway is too narrow, the chef just stands around waiting for ingredients.

The 43 words, in learning order

Start at 1. Each word builds on the ones before it.

  1. 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.
  2. CPUA CPU, or Central Processing Unit, is the main general-purpose chip in a computer that runs programs step by step.
  3. NPUAn NPU, or Neural Processing Unit, is a chip or part of a chip designed specifically to run AI tasks efficiently.
  4. TPUA TPU, or Tensor Processing Unit, is Google's custom chip designed to train and run neural networks.
  5. Neural EngineThe Neural Engine is Apple's built-in AI accelerator inside iPhone, iPad and Mac chips.
  6. ASICAn ASIC, or Application-Specific Integrated Circuit, is a chip custom-built for one particular job.
  7. FPGAAn FPGA, or Field-Programmable Gate Array, is a chip whose circuits can be reprogrammed after it is made.
  8. CUDACUDA is NVIDIA's software platform that lets programmers use NVIDIA GPUs for general computing, including AI.
  9. Tensor CoresTensor Cores are special parts of NVIDIA GPUs built to do matrix multiplication extremely fast.
  10. Compute UnitsCompute units are the processing blocks inside a chip that actually do the calculations.
  11. FLOPSFLOPS stands for floating-point operations per second, a measure of how many math calculations a chip can do every second.
  12. TFLOPSTFLOPS means trillions of floating-point operations per second.
  13. TOPSTOPS means trillions of operations per second, usually for integer math like INT8, and is often used for NPUs.
  14. FLOPS vs TOPSFLOPS counts floating-point (decimal-style) calculations, while TOPS counts operations that are often simpler integer math.
  15. VRAMVRAM is the fast memory built onto a graphics card, where AI model weights and the KV cache are stored while running.
  16. RAMRAM is a computer's main working memory, where programs and data are kept while in use.
  17. Unified MemoryUnified memory is a design where the CPU and GPU share one big pool of memory instead of having separate memory.
  18. 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.
  19. Memory BandwidthMemory bandwidth is how fast data can move between a chip's memory and its processors, usually measured in gigabytes per second.
  20. Memory CapacityMemory capacity is how much data a memory can hold, measured in gigabytes.
  21. Memory BusA memory bus is the data path that connects memory to the processor.
  22. Memory ChannelsMemory channels are separate pathways between the processor and memory that can work at the same time.
  23. CacheA cache is a small, very fast memory close to the processor that keeps recently or frequently used data.
  24. L1 CacheL1 cache is the smallest and fastest cache, sitting right next to each processor core.
  25. L2 CacheL2 cache is a larger, slightly slower cache that sits between L1 and L3.
  26. L3 CacheL3 cache is a bigger, shared cache that all CPU cores can use.
  27. SRAMSRAM, or Static RAM, is very fast, expensive memory used for caches and on-chip storage.
  28. DRAMDRAM, or Dynamic RAM, is the common main memory in computers, cheaper and denser than SRAM but slower.
  29. HBMHBM, or High Bandwidth Memory, is stacked memory placed right next to a chip to give extremely fast data access.
  30. GDDRGDDR is a type of fast graphics memory used on gaming and consumer graphics cards.
  31. PCIePCIe is the standard connection that links graphics cards and other devices to a computer's motherboard.
  32. NVLinkNVLink is NVIDIA's high-speed connection that links GPUs directly to each other, much faster than PCIe.
  33. InterconnectAn interconnect is the communication link that connects chips, servers or racks so they can share data.
  34. CPU-GPU TransferCPU-GPU transfer is moving data between the computer's main memory and the graphics card's memory.
  35. Host MemoryHost memory is the main system memory (RAM) attached to the CPU, as seen from a GPU's point of view.
  36. Device MemoryDevice memory is the memory that belongs to an accelerator like a GPU, such as its VRAM or HBM.
  37. Thermal ThrottlingThermal throttling is when a chip slows itself down to avoid overheating.
  38. Power ConsumptionPower consumption is how much electricity a device uses, often measured in watts.
  39. WattsA watt is a unit that measures the rate of energy use, or power.
  40. Tokens per WattTokens per watt measures how many tokens a system produces for each unit of power, showing energy efficiency.
  41. ComputeIn AI, compute means the processing power used to train or run models, usually measured in FLOPs or GPU hours.
  42. Compute DensityCompute density is how much processing power fits into a given space or power budget.
  43. 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?).