In a recent deep dive, Sebastian Raschka argues that the best way to truly understand large language models (LLMs) is to build them from the ground up. Using Python and PyTorch, he demonstrates how coding these systems manually reveals subtle design choices—such as specific normalization techniques—that are often glossed over in academic papers.
The session outlines a systematic workflow for reverse-engineering open-weight models by comparing custom implementations against reference code from the Hugging Face ecosystem. A key industry trend highlighted is the reduction of KV cache memory, with techniques like grouped query attention and sliding window attention enabling longer context windows.
Raschka also explores the rise of reasoning models and agentic harnesses, which use iterative loops to solve complex problems more effectively. For learners, he provides a structured roadmap ranging from foundational scratch-built projects to professional-grade tools like Torch Titan and TRL.