Take vocabulary {a:0,b:1,space:2}. Its size is three even if a text repeats a hundred times. Encoding “a b” produces three identifiers. If each identifier looks up a four-value vector, the result is shaped (3,4). Adding a batch axis gives (1,3,4).
Suppose the token embedding for a is [1,0,0,0] and the first position vector is [0,0.1,0,0]. Their sum is [1,0.1,0,0]. The same token at another position receives another positional contribution. The model still knows which vocabulary row supplied the token component.
When the lab prints a shape, label every axis aloud or in optional notes: examples, tokens, hidden features. A common error swaps vocabulary size with sequence length because both happen to equal three in this toy case. Repeat with a longer repeated string; sequence length changes while the vocabulary table can stay the same. That changed case tests the distinction rather than the coincidence.