SUPERINTELLIGENCE SALE-15%
Through November 20-15%
SUPERINTELLIGENCE SALE-15%
Through November 20-15%
SUPERINTELLIGENCE SALE-15%
Through November 20-15%
SUPERINTELLIGENCE SALE-15%
Through November 20-15%
SUPERINTELLIGENCE SALE-15%
Through November 20-15%
SUPERINTELLIGENCE SALE-15%
Through November 20-15%
LLM Foundations
Starts November 14

Build your own language model and understand LLMs from the inside

Course LLM Foundations

Build your own small language model in Python and learn how large models like ChatGPT write text, learn, and go wrong. Every module has practice right in the browser.
Private Discord community image
Private Discord community
Practice, quizzes, and a final project image
Practice, quizzes, and a final project
Mentors and checkpoints image
Mentors and checkpoints
Lifetime access and updates image
Lifetime access and updates
About the courseThe course builds a language model from scratch in pure Python on Proust's “Swann's Way”. The first model counts pairs of characters and writes nonsense. Then you add a BPE tokenizer, temperature sampling, gradient-descent training, your own autograd, embeddings, attention, and a transformer block until your own GPT starts writing Proust's words. You see every improvement in numbers: how many words in the text are real and how many are copied from the novel. Then you learn how such a model is trained for real, how it is turned into an assistant, and how ChatGPT and open models differ from it. In the final project, you put the whole GPT into one file and train it on your own text. You need basic Python and school-level math.
LLM Foundations

Who the course is for

Image of star
New
Python developers who want to understand how LLMs work inside
Image of star
Pro
People who finished “Python Basics” and want a first serious project
People who use ChatGPT and Claude and want to understand where errors, cost, and latency come from
People planning to read LLM code and books: microgpt, nanoGPT, Sebastian Raschka's books
Newcomers to machine learning: school math is enough, and the course explains derivatives with numbers
Have questions?
We’ll reply within 15 minutes

Curriculum

Twelve modules lead from a first counting model to your own GPT, and then to how large models and assistants work. Almost every module ends with Python practice in a browser editor and a short quiz.
01
How an LLM Writes Text
02
Tokens
03
Choosing the Next Token
04
How a Model Learns
05
Autograd
Show more

Learning Platform

Short lessons, practice, quizzes, and a glossary live on one platform. Sign in with an email link, no password.
  • Email Sign-in
    Enter your email and get a sign-in link; no password. Pick up where you stopped on a computer or a phone.
    Image in slide
  • Short Lessons
    Lessons are split into small blocks. Complete one in a short session, then resume from the same point later.
    Image in slide
  • Practice Throughout
    Assignments apply the material right after a lesson. In larger programs, separate outputs build toward a final project or capstone.
    Image in slide
  • One Workspace
    Lessons, quizzes, assignments, and course materials stay together. Technical tasks can use the editor and syntax highlighting.
    Image in slide
CommunityEach block ends with an assignment. Keep the intermediate results and assemble the final piece step by step.
Discord image
Streams and Community
01
Expert Streams
Every day there are streams with experts on many topics in Discord: ask your question on a stream, then message the expert directly.
02
News Breakdowns
03
Stream Library

What You Leave With

Finish the program with a verifiable result you can show to a team or use in your next project.
Final Project image
Final Project
Build the program's main result against clear criteria and take it to a state another person can verify.
Portfolio of Work image
Portfolio of Work
Keep intermediate artifacts, sources, and decisions so others can see how you worked and why you reached the result.
Next Step image
Next Step
Record the result's limits, open questions, and next actions for your own project, a team, or a new role.