Series Expedition
Large Language Models
Explore the inside of large language models through embedding space, self-attention, the residual stream, and next-token prediction as near-future 3D spaces.
Machine-translated from the English original.
Рекомендуемый маршрут
Следуйте последовательности, которая соединяет всё более глубокие взгляды на одну и ту же тему.
1/4 · ДоступноEmbedding Nebula
Project tokens into a 3D semantic nebula and trace vector arithmetic such as king − man + woman ≈ queen.
2/4 · ДоступноAttention Beams
Visualize self-attention as a web of beams between tokens and test the weights from softmax(QKᵀ/√dk).
3/4 · ДоступноResidual Stream
Follow the residual stream as a luminous river where each layer writes and reads information.
4/4 · ДоступноNext-token Prediction
Watch logits become a probability distribution through softmax and change shape with temperature before converging on one token.


