Works on My GPU

ML & AI

LLMs, NLP, computer vision, and general ML research.

FoundationsAttention

How the Transformer Actually Works

Self-attention, in one formula: softmax(QKᵀ/√d_k)V. Everything else in the Transformer — multi-head splitting, positional encoding, the residual stack — exists to make that one computation usable at scale.

Read more →·Beyzanur Zeybek