Log inStart free
LESSON 11.05 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Sequence packing and document boundaries

Watch six short documents fill training rows without reading each other.


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/mo
EXPLAINER · 11.05 · PACKING BAY6 DOCS · 29 TOKENS
01
Stage 1 of 6 · The documents
Six documents hold 29 tokens. Each document ends with an EOS token.
Explain it simply

You see six short documents, one per line. Each chip is one token. The last chip of each line is EOS, a special token that marks the end of the document. The lengths go from 2 to 8 tokens.

Six rows of token chips, one per document. The lengths are 7, 3, 8, 4, 5 and 2 tokens. Each row ends with an EOS chip.

tokensEOSpad or blockedother documentattention, targets
thecatsatonthemateoshithereeosdogschasetheballintheparkeositiscoldeosbirdssingatdawneosokeosD1D2D3D4D5D6T = 7 + 3 + 8 + 4 + 5 + 2 = 29 tokensdocumentsthecatsatonthemateoshithereeosdogschasetheballintheparkeositiscoldeosbirdssingatdawneosokeosD1D2D3D4D5D6T = 7 + 3 + 8 + 4 + 5 + 2 = 29 tokensdocuments
Toy: 6 documents, 29 tokens, 1 attention head, random weights
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
T=∑dnd\sy{T}{data}{T} = \sum_d \sy{n}{data}{n_d}
T=7+3+8+4+5+2=29T = 7 + 3 + 8 + 4 + 5 + 2 = 29

The token count adds the length of every document.

Common mix-ups

MYTHPacked tokens read only their own document.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With first fit instead of a split, does D3 still differ from its output alone?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

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.