the.ai

Foundations / Representation

verified

Token Embedding

A token id is just a number with no meaning — id 400 is not twice id 200. The embedding table gives each id a vector instead, learned during training, so that tokens used in similar ways end up pointing in similar directions. It is the step that turns arbitrary labels into geometry the model can do arithmetic on.

Viz primitive · budget-splitvocab = 8000 · d-model = 4096

vocab holds 66% of the budget; rest holds the remaining 34%.

Share of the model's parameters held by the embedding table against everything else. Drag the vocabulary to watch the table take over the budget in a small model.

8000

Reviewed by opendroid · 2026-08-04