Cyber Week-25%
Through December 6-25%
Кибернеделя-25%
Through December 6-25%
Cyber Week-25%
Through December 6-25%
Кибернеделя-25%
Through December 6-25%
Cyber Week-25%
Through December 6-25%
Кибернеделя-25%
Through December 6-25%
Cyber Week-25%
Through December 6-25%
Кибернеделя-25%
Through December 6-25%
Cyber Week-25%
Through December 6-25%
Кибернеделя-25%
Through December 6-25%
Cyber Week-25%
Through December 6-25%
Кибернеделя-25%
Through December 6-25%
LLM Foundations
Starts December 5

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.

Startup incubator

Co-found a project while you study

How to take part

The incubator is open only to Guide DAO students on the All Courses + Incubator plan. Pitch your idea or join an existing team as a co-founder. Together you agree on ownership and how to share any future profits.

How students launched Everstrat

Everstrat spreads a single ETH deposit across several DeFi strategies. The team launched the protocol on Ethereum mainnet and used AI to build its internal dashboards.

Everstrat website

Student reviews

Learning and building together at Guide DAO

“Without clear acceptance criteria, the agent invents scope. You end up reviewing code that was never requested.”
Alina Aseeva
XTranslated from Russian
“A good learning platform, with materials that are constantly updated. Interesting guest lecturers.”
Ramon
Learning HubTranslated from Russian
“If you miss something, there’s always a recording of every stream.”
Shelma

Course FAQ

What maths do I need to train my first model?

School-level maths and basic Python are enough. You’ll start with a single function and see how changing a parameter changes the error. Then you’ll write a class that calculates gradients for a whole series of operations.

Which parts of GPT will I implement myself?

You’ll write a BPE tokenizer, automatic differentiation, an attention head and a transformer block in plain Python. You’ll be able to follow a string of text through your own code all the way to the probabilities for the next token.

Can I train the model on a text of my choice?

Yes. The exercises use a novel by Proust so you can compare different models on the same material. For the final project you’ll put your GPT in a single file and train it on a text you choose.

How can I tell whether my model is just memorising the book?

You’ll look at the model’s error when predicting the next token and at the text it generates. With the Proust example you’ll measure how many recognisable words it produces and check which passages it copies verbatim from the novel.

Will I learn how a model that completes text becomes a chat assistant?

Yes. Once you’ve built your GPT, you’ll study how models learn from example conversations and feedback. In one exercise you’ll define a rule for scoring responses and see how a model can earn a high score by repeating itself.