In a new educational video, developer CJ takes viewers through the process of building a large language model (LLM) from the ground up. The tutorial covers fundamental concepts including chatbots, neural networks, tokenization, embeddings, and transformers, all accompanied by real, working code.
CJ begins with a historical overview of chatbots, tracing their evolution from early rule-based systems to modern neural approaches. He then dives into the mathematics and implementation of neural networks, using the classic XOR problem as a hands-on example.
The video also explains tokenization—the process of breaking text into smaller pieces that models can process—and how embeddings convert those tokens into numerical representations. Finally, CJ introduces the transformer architecture, the backbone of today's LLMs.
All code is available on GitHub, making this a practical resource for developers who want to understand how LLMs work under the hood. The video is part of the Syntax channel's ongoing series on web development and machine learning.