LESSON 32.06 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Where inference memory goes
Watch one GPU's 80 GiB fill with weights, overhead, activations, buffers and cache.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 32.06 · MEMORY BAYGPU 0 OF 8 · WEIGHTS 16.43 GiB
01
Stage 1 of 5 · Weights
The 70B model needs 131.42 GiB of weights in BF16. Tensor parallelism splits them over 8 GPUs: 16.43 GiB each.
Explain it simply
Every token reads every weight, so all of them must sit in GPU memory. Seventy billion weights at 2 bytes each fill the long ochre bar at the bottom. The engine cuts every matrix into 8 equal slices, one per GPU. The ribbon carries the first slice to GPU zero.
The model bar of 131.42 GiB in 8 shards. GPU 0 holds 16.43 GiB of weights.
weightsactivations, KV cachebuffersdoes not fitfree memorykept free, or kept by training
Toy: Llama 3 70B shape on 80 GiB GPUs, 4K context · overhead sizes are typical
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The weights, at b bytes each, split over g GPUs.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.