Topics / Embeddings

Embeddings

3 posts.

How token IDs become meaningful vectors and how positional encoding adds word-order information, with training examples and diagrams.

·11 min

Positional Embeddings

Token embeddings alone throw away word order. How position gets encoded into a sentence, and why the sinusoidal scheme is built the way it is.

·10 min

Token Embeddings

How tokens turn into meaningful vectors: the core idea behind embeddings, how the training data is prepared, and a working implementation.