AIToday
Large Language ModelsAI Coding AssistantsGIGAZINE AIPublished: Nov 17, 2026, 01:00 JST

microgpt-lesson: free 11-chapter GPT course in Google Colab

Send on LINE
microgpt-lesson: free 11-chapter GPT course in Google Colab

3 Key Points

  1. What happened

    GitHub user GrEarl published microgpt-lesson, a free 11-chapter Japanese course built on Andrej Karpathy's roughly 200-line microgpt, covering tokenization through name generation and runnable in-browser via Google Colab.

  2. Why it matters

    It packages concepts that usually require prior background into a free, interactive walkthrough with sliders and animations, letting a complete beginner trace how a tiny GPT learns and generates names.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The course is built on Andrej Karpathy's microgpt, a roughly 200-line Python implementation of GPT's basic processing. GrEarl restructured that code into a step-by-step format that starts from the basics of high-school math rather than assuming prior background. Training uses the public japanese-personal-name-dataset, graphs are rendered in Japanese with IBM Plex Sans JP, and calculations are animated with Manim.

The 11 chapters run from tokenization and probability to softmax, computation graphs and backpropagation, embeddings, MLP and ReLU, Attention, RMSNorm and residual connections, and Adam parameter updates. Interactive elements include a learning-rate slider that shows how step size changes the path toward a minimum, and an Attention visualization where moving the Query changes the weights on Keys, shown as a heatmap for four heads on a name like "Sakura."

Rather than treating AI calculations as a black box, the material lets learners follow character conversion, probability prediction, math-based learning, and name generation in sequence. The ability to manipulate graphs and confirm how calculations change is presented as a distinguishing feature.

FAQ
Do I need to install anything to use it?
No. It runs in Google Colab in the browser, so Windows users do not need to install Python locally. An internet connection is needed to fetch data and execute code.
What math level does the course assume?
It starts from Japanese high-school first-year math (roughly Math I-A level). Derivatives and vectors, which go beyond that range, are also explained.
What does the final chapter produce?
Chapter 11 generates 20 Japanese names from the trained model and shows whether each appeared in the training data. A temperature slider changes how varied the generated names are.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAI safety said to overinvest in the inside game