All Categories

How LLMs Work: From N-grams to Modern Architectures

This course runs for 1h 30m and is designed for beginner learners. It is taught by 神草 経知, published by Udemy, and was released on 2026-09-17. The course taught in en-US and includes exercise files.

How LLMs Work: From N-grams to Modern Architectures

Course Overview

This course explains the fundamental principles behind large language models (LLMs) like ChatGPT by tracing the evolution of language modeling techniques from 1913 to 2026. It covers key models and architectures such as N-grams, RNNs, LSTMs, Attention mechanisms, Transformers, Mamba, and Gated DeltaNet, focusing on the problems each innovation solved. The course uses minimal math and programming, relying on analogies and clear explanations to make complex concepts accessible.

Key Takeaways

  • Understand that language models predict the probability of the next word and that text generation is a repeated next-word guessing game.
  • Learn how N-grams, RNNs, LSTMs, Attention, Transformers, Mamba, and Gated DeltaNet each address specific challenges in language modeling.
  • Manually compute N-gram probabilities and Self-Attention with simple numbers to grasp their mechanics.
  • Comprehend terms like embedding, gate, KV cache, state space model, MoE, and attention sink through analogies.
  • Compare Transformer and Mamba architectures, understanding their strengths and weaknesses and the rationale for hybrid models.
  • Interpret the hybrid architecture of Qwen3-Next / 3.5 / 3.8 combining multiple Gated DeltaNet and Gated Attention layers.

Prerequisites

  • No prior math or programming knowledge required; basic addition, multiplication, and proportional reasoning suffice.
  • Experience using conversational AI tools like ChatGPT is helpful but not mandatory.
  • Access to a browser with Google Colab is useful for optional hands-on exercises.

Target Learners

  • Users of AI tools who want to understand the inner workings of language models.
  • Individuals intimidated by technical terms in LLM articles and news.
  • Beginners seeking a systematic, non-technical introduction to AI principles.
  • Those interested in reading and contextualizing specifications and research papers on modern language models.
The Next-Word Guessing Game: Course Map and 3 Promises 7:22
Access Files No pi required.
Free
Course files 1 file package

Discussions are closed

Comments are currently disabled for this course.