LESSON 27.01 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Compute-bound vs memory-bound
Watch one layer wait for memory, then become compute-bound as the batch grows.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 27.01 · GPU BAY16 TOKENS · 537 MFLOPS
01
Stage 1 of 6 · Count the FLOPs
The layer multiplies 16 tokens by a 4096 × 4096 weight matrix W. Each weight costs 2 FLOPs per token.
Explain it simply
Each square in the grid stands for a block of weights. For every token, each weight is multiplied once and added once. That's two FLOPs, two floating-point operations. So 16 tokens cost about 537 million FLOPs.
The weight grid W between 16 tokens and the outputs y: 537 MFLOPs.
tokens x, HBM loadsweights W, GPU ratesoutputs y, computewaiting
Toy: one 4096 × 4096 BF16 layer on a GPU with H100 SXM peak rates and no cache
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each weight does one multiply and one add for each of the M tokens.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 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.