Output activations are exact integer tables too. This lesson counts tokens times width for three displayed shapes only.

highlighted = computed this step

Cells are rows times width

After a layer runs, its output activations form a table. The exact count is tokens times width. For the toy output, tokens=4 and width=2, so the activation table has 8 cells.

activation cells=tokens×width\text{activation cells}=\text{tokens}\times\text{width}
Activation Cells Also GrowExact output activation cells for displayed shapes.activation cells = tokens * widthoutputtokenswidthtokens*widthtoy output428wider output47683072longer output12876898304finite displayed shapes onlyactivation-cell counts for displayed shapes onlyNOT memory bytes; NOT latency; NOT a full model runNOT training; NOT learning; NOT generalization

Same tokens, wider table

Keeping tokens at 4 but using width=768 gives 4 times 768 = 3072 activation cells.

4×768=30724\times768=3072
Activation Cells Also GrowExact output activation cells for displayed shapes.activation cells = tokens * widthoutputtokenswidthtokens*widthtoy output428wider output47683072longer output12876898304finite displayed shapes onlyactivation-cell counts for displayed shapes onlyNOT memory bytes; NOT latency; NOT a full model runNOT training; NOT learning; NOT generalization

More tokens, same width

With tokens=128 and width=768, the same formula gives 128 times 768 = 98304 cells. This is a finite list of displayed shapes only, not a smooth curve or benchmark.

128×768=98304128\times768=98304
Activation Cells Also GrowExact output activation cells for displayed shapes.activation cells = tokens * widthoutputtokenswidthtokens*widthtoy output428wider output47683072longer output12876898304finite displayed shapes onlyactivation-cell counts for displayed shapes onlyNOT memory bytes; NOT latency; NOT a full model runNOT training; NOT learning; NOT generalization

What this count is not

These are exact activation-cell counts for displayed shapes only. They are not memory bytes, not latency, not a full model run, not training, not learning, and not generalization.

displayed activation cells only\text{displayed activation cells only}
Activation Cells Also GrowExact output activation cells for displayed shapes.activation cells = tokens * widthoutputtokenswidthtokens*widthtoy output428wider output47683072longer output12876898304finite displayed shapes onlyactivation-cell counts for displayed shapes onlyNOT memory bytes; NOT latency; NOT a full model runNOT training; NOT learning; NOT generalization