10/29
Part 2 of 5 · The blockWatch
Watch · 12 min

Raschka assembles the same block in PyTorch: a LayerNorm before attention and another before the feed-forward network, each step added back through a shortcut, with two LayerNorm objects because each has its own weights.

Build an LLM from Scratch 4: Implementing a GPT model from Scratch To Generate Text · Sebastian Raschka · Mar 2025YouTube