An embedding is a learned list of numbers associated with a token. It gives a model a numerical starting point for representing language—so later layers can transform those representations using context.
Select a stage to move the explanation, formula, and highlighted signal together.
A tokenizer maps a string into token pieces. A token might be a word, part of a word, punctuation, or another learned unit.
Choose a token, inspect its illustrative ID, and see how its vector coordinates change when you alter the values or add positional information.
Change the selected embedding's coordinates. This is a teaching sandbox—not a live model weight editor.
A list of learned numerical coordinates associated with a token. Each coordinate contributes to a representation; individual dimensions rarely have simple human-readable meanings.
Token IDs are categorical identifiers. ID 156 is not more meaningful than ID 42; the embedding table maps each ID to its learned vector.
Training shapes the geometry of vectors. Similarity can be measured with cosine similarity or distance, but this page’s sample numbers are illustrative.
The input embedding is a starting representation. Transformer layers use context to produce contextualized hidden states that depend on the surrounding tokens.
This page is only the Embeddings topic index. Each card can be wired to its matching lesson in your roadmap.
Understand the vector and lookup table.
Explore above ↗ 02 · SUPPORTINGWord EmbeddingsExplore how vectors can encode useful relationships.
Review the journey ↗ 03 · ESSENTIALToken IDs → VectorsTrace an ID into a matrix row.
Run the lookup ↗ 04 · SUPPORTINGPosition InformationSee why token order needs representation.
Inspect position ↗ 05 · ESSENTIALEmbedding vs. Hidden StateDistinguish the initial vector from later contextual representations.
Read the concepts ↗ 06 · ADVANCEDDimensions & GeometryExperiment with coordinates and vector shape.
Manipulate values ↗