Rustlab LLM
28 notebooks
- rustlab_llm — Lesson Site
- Lesson 00: The LLM as a System
- Lesson 01: Tokens & Text Encoding
- Lesson 02: Probability & Softmax
- Lesson 03: Cross-Entropy Loss
- Lesson 04: Embeddings & Similarity
- Lesson 05: The Bigram Language Model
- Lesson 06: Linear Layers & Gradient Descent
- Lesson 07: Context and Naive Averaging
- Lesson 08: Scaled Dot-Product Attention
- Lesson 09: Multi-Head Attention
- Lesson 10: Positional Encoding
- Lesson 11: Feed-Forward Block (MLP)
- Lesson 12: LayerNorm & Residual Connections
- Lesson 13: The Transformer Block
- Lesson 14: Full GPT Architecture
- Lesson 15: Backpropagation
- Lesson 16: The AdamW Optimizer
- Lesson 17: Learning Rate Scheduling
- Lesson 18: The Training Loop
- Lesson 19: Byte-Pair Encoding (BPE)
- Lesson 20: Perplexity and Evaluation
- Lesson 21: Sampling and Generation
- Lesson 22: Full Backprop Through the Block
- Lesson 23: Putting It All Together
- Lesson 24: Modern Architectural Variants
- Lesson 25: Fine-Tuning — SFT and DPO
- Lesson 26: Quantization and Fixed-Point Inference