EDGE FDE

Intermediate

How an LLM is built

After this course you can explain each stage of an LLM, and you can start rebuilding the parts that are usually hidden behind an API call.

Walk seven public repos by Andrej Karpathy, in the order Hao Hoang recommends, and leave able to say how a network learns, how text becomes tokens, what a training loop does, what PyTorch is doing for you, what a full pipeline costs, and how an agent can run the experiments.

Inspiration

This course is inspired by a LinkedIn post by Hao Hoang, published 24 November 2026 at 23:20 Europe/London (UTC). Hao screens AI engineer candidates. The gap he sees most is between calling an LLM and knowing how one is built. He pointed to seven free repos by Andrej Karpathy and gave the order to take them in.

The ordering rule is Hao's: each stop answers the question the one before it leaves open. This course follows that rule. The repos, lectures, papers, and numbers cited below come from those primary sources, not from the post alone.

What you'll learn

Lessons

  1. How a network learns
  2. Eight lectures that reach GPT
  3. What the model actually reads
  4. What a full training loop looks like
  5. What PyTorch is doing for you
  6. What the whole pipeline costs now
  7. When an agent runs the loop

Key concepts

Takeaways

Agent briefs