AIAIshala.
AKAndrej Karpathy

Let's Build GPT from Scratch

Karpathy builds a GPT model from scratch in code — the canonical hands-on intro to transformer training.

FreeAdvanced2 hrsvideo-series

About this course

In this hands-on course, Andrej Karpathy—a leading figure in deep learning and AI education—walks you through building a GPT model entirely from scratch in code. Rather than treating transformers as a black box, you'll understand exactly how they work by implementing them yourself. This is the gold standard introduction to transformer training, perfect for anyone serious about moving beyond theory into practical understanding.

What you'll learn

  • Build a working GPT model from first principles, understanding every component
  • Implement transformer architecture: attention mechanisms, multi-head attention, and feed-forward layers
  • Train a neural network on real data and debug training loops like a professional
  • Understand tokenization, embedding, and positional encoding in depth
  • Generate text with your own trained model and improve output quality
  • Grasp the mathematical foundations behind modern large language models
  • Read and interpret research papers on transformers with confidence

Who this is for

You're ready for this course if you already know Python and have studied machine learning basics. You should be comfortable reading code and thinking mathematically, because you'll be writing the transformer from scratch—not just using a library.

  • AI researchers and engineers — build deep technical mastery of transformers before specializing further
  • Engineering students — get hands-on experience with cutting-edge AI that will set you apart in placements and internships

Prerequisites

Strong Python programming skills, basic understanding of neural networks (backpropagation, gradient descent), and comfort with linear algebra and calculus. This is an advanced course—it assumes you've already learned the fundamentals of deep learning.

Why this matters for Indian learners

India's AI job market is exploding. Major Indian tech companies (TCS, Infosys, Wipro) and startups across Bangalore, Hyderabad, and Mumbai are desperately hiring AI engineers who understand transformer models deeply. This course gives you the rare, genuine expertise that separates candidates who can *build* AI from those who just use off-the-shelf tools. For placements, freelancing, or starting your own AI venture, this knowledge is a major differentiator.

Frequently asked questions

Is this course really free?

Yes, completely free. Andrej Karpathy uploaded this to YouTube as a gift to the AI community. No hidden paywalls or premium versions.

How long will it take to complete?

The video is 2 hours, but expect to spend 3–4 weeks total if you're coding along (which you should). Plan for 1.5–2 hours per week of focused, uninterrupted work. You'll pause, rewind, and experiment—that's the whole point.

Will I get a certificate?

No official certificate comes with this course. But you'll have something better: a fully working GPT model you built yourself, which you can show employers and include in a portfolio.

At a glance

Provider
Andrej Karpathy
Level
Advanced
Duration
2 hrs
Format
Recorded
Certificate
No
Price
Free
Enroll on Andrej Karpathy

More free courses

Other AIshala-vetted free courses

Cyber Month dealIBIBM

Machine Learning with Python: A Practical Introduction

Suits beginners who know basic Python and want a short, practical first course in machine learning with a low-cost certificate. Cyber Month deal: 15% off verified courses, Professional Certificates, MicroBachelors and MicroMasters programs with code CYBERMONTH2026, until 26 November 2026.PaidCertificateBeginner
Black Friday dealZTZero To Mastery

AI Engineering: Building AI Applications (LangChain, LLM APIs + more)

Suits learners with basic Python who want to build real apps on top of LLM APIs and LangChain. Black Friday deal: 66% off the ZTM Academy annual membership with code BFCM26.PaidCertificate18.5 hrsIntermediate
Black Friday dealZTZero To Mastery

Prompt Engineering Bootcamp (Working With AI & LLMs): Zero to Mastery

Suits beginners and professionals who want to get reliably good results from ChatGPT-style tools and understand how LLMs behave. Black Friday deal: 66% off the ZTM Academy annual membership with code BFCM26.PaidCertificate32 hrsBeginner
Black Friday dealZTZero To Mastery

Complete A.I. Machine Learning and Data Science: Zero to Mastery

Suits beginners with no prior experience who want one long, project-based course covering Python, data science and machine learning. Black Friday deal: 66% off the ZTM Academy annual membership with code BFCM26.PaidCertificate45 hrsBeginner
Black Friday dealBBrilliant

How AI Works

Suits curious beginners who want to understand prediction, probabilities and how language models generate text, step by step. Black Friday deal: 30% off Brilliant Premium annual plans for Black Friday.PaidBeginner
Black Friday dealDCDataCamp

Machine Learning Scientist in Python (career track)

Suits learners who already know basic Python and want a long, hands-on route through machine learning, from supervised learning to deep learning. Black Friday deal: 60% off an annual DataCamp Premium subscription (Teams and DataLab Premium are also included), until 29 November 2026.PaidCertificate85 hrsIntermediate
Made withhey levo