Topics / Transformers

Transformers

2 posts.

·13 min

Self Attention

An intuition-first walk through self attention — queries, keys and values by analogy, then the implementation, multi-head attention, and transformers.

·12 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.