ARCHITECTURE1.1Chapter 0.1 - LLM Architecture ExplorerExpand each section to reveal the structure inside itTOKENIZATION1.2Chapter-1-Tokenizer1.Chapter 1.1 BPE2.Chapter 1.2 WordPieceEMBEDDINGS1.3Chapter-2-Token Embeddings1.Chapter 2.1 Learned EmbeddingsCHAPTER 31.4Chapter-3-Positional Encoding1.Chapter 3.1 Sinusoidal2.Chapter 3.2 RoPE3.Chapter 3.3 ALiBiCHAPTER 41.5Chapter-4-Layer Normalization1.Chapter 4.1 Standard LayerNorm2.Chapter 4.2 RMSNormSELF ATTENTION1.6Chapter-5-Self Attention1.Chapter 5.1 Multi Head Attention2.Chapter 5.2 Grouped Query Attention3.Chapter 5.3 Multi Query AttentionCHAPTER 61.7Chapter-6-Residual Connections1.Chapter 8.1 Pre Norm vs Post NormCHAPTER 71.8Chapter-7-Activation Functions1.Chapter 6.1 ReLU2.Chapter 6.2 GELU3.Chapter 6.3 SwiGLUCHAPTER 81.9Chapter-8-Feed Forward Network1.Chapter 7.1 Standard FFNCHAPTER 91.10Chapter-9-Output and Decoding1.Chapter 9.1 Vocabulary Projection2.Chapter 9.2 Softmax3.Chapter 9.3 Greedy Search4.Chapter 9.4 Nucleus Sampling
ARCHITECTURE1.1Chapter 0.1 - LLM Architecture ExplorerExpand each section to reveal the structure inside it
CHAPTER 31.4Chapter-3-Positional Encoding1.Chapter 3.1 Sinusoidal2.Chapter 3.2 RoPE3.Chapter 3.3 ALiBi
SELF ATTENTION1.6Chapter-5-Self Attention1.Chapter 5.1 Multi Head Attention2.Chapter 5.2 Grouped Query Attention3.Chapter 5.3 Multi Query Attention
CHAPTER 91.10Chapter-9-Output and Decoding1.Chapter 9.1 Vocabulary Projection2.Chapter 9.2 Softmax3.Chapter 9.3 Greedy Search4.Chapter 9.4 Nucleus Sampling