How to Learn Machine Learning and AI for Free: A Realistic Roadmap
How to learn machine learning for free: a realistic path into AI, what to learn first, the best free courses and videos, the tools you need, standout projects.
Wondering how to learn machine learning without paying for a single course? You can learn machine learning for free, and learn it well. The best teaching material anywhere, from Stanford, MIT, Harvard, 3Blue1Brown and Andrej Karpathy, costs nothing online. What's hard is not finding resources but deciding what to learn, in which order, and what to leave out.
The Hamropedia AI & ML Roadmap solves exactly that: 8 phases and 98 complete lessons, in sequence. Each lesson comes with an animation, a diagram, worked code and four exercises with answers, plus a short list of free videos and readings if you'd like a second explanation. Here is how to get the most out of it.
The AI roadmap: 8 phases
| Phase | What you learn | Why it matters |
|---|---|---|
| 0. Your toolkit | Python, NumPy, Git, the command line | Every later phase uses them daily |
| 1. Math foundations | Linear algebra, calculus, probability | The language every model is written in |
| 2. Classical ML | Regression, trees, evaluation, built in NumPy | Understanding why models work and fail |
| 3. Deep learning | Neural networks, backprop, PyTorch | The engine behind modern AI |
| 4. Transformers & LLMs | Attention, tokenisers, building a small GPT | How ChatGPT-style models work inside |
| 5. AI engineering | RAG, evaluation, agents, deployment | The core of most AI engineer jobs |
| 6. Systems & scale | GPUs, memory, speed, multi-GPU training | Making models fast and cheap |
| 7. Generative models & RL | VAEs, diffusion, reinforcement learning | Image generators and RLHF |
Five rules that matter more than any course
- Follow the order. Skipping the maths to "reach the fun part" is the number one reason people get stuck at deep learning.
- Use one resource per topic. Piling up courses feels like progress and isn't. The roadmap marks one resource per topic as Worth it; begin with that one.
- Build it, then build it again. Code along with a video, then close it and rewrite the code from an empty file. The second attempt is where the learning happens.
- Say it out loud. If you can't explain gradient descent to a friend in two sentences, you haven't got it yet.
- Go back to old topics. Every two weeks or so, quiz yourself on earlier lessons and untick whatever you've forgotten. Each lesson's four checks (Explain, Derive, Build, Break) are stored in your browser for this purpose, and Download my progress saves a copy.
The best free resources (a starter set)
- Maths, visually: 3Blue1Brown: Essence of Linear Algebra and Essence of Calculus.
- Maths, written: Mathematics for Machine Learning (free book).
- Classical ML: StatQuest videos and An Introduction to Statistical Learning (free book, Python edition).
- Deep learning from scratch: Andrej Karpathy: Neural Networks: Zero to Hero.
- Deep learning book: Understanding Deep Learning by Simon Prince (free PDF).
- Transformers: The Illustrated Transformer and Karpathy's "Let's build GPT".
- AI engineering: Your AI Product Needs Evals by Hamel Husain.
Every lesson in the roadmap carries the complete list for its topic, sorted by type (video, interactive, reading, code, paper).
Want an AI engineer job? The interviews usually go beyond machine learning, and Hamropedia covers those parts for free as well: SQL with a query runner in your browser, DSA with the NeetCode 150 for the coding rounds, and System Design, including AI and ML system design. The Start here map suggests when to fit them in alongside the roadmap.
What you need
- An ordinary laptop. Phases 0 to 3 run comfortably on any recent computer.
- Python and a code editor such as VS Code, both free.
- Free GPU time for the heavier work: Google Colab and Kaggle notebooks both give free GPU hours, which covers the projects on this roadmap.
Projects that make you stand out
Employers and universities remember projects that tackle a real problem, especially ones built on local data. Some ideas:
- A Devanagari handwriting recogniser trained on the public Devanagari Handwritten Character Dataset (Phase 3).
- A Nepali news topic classifier: collect headlines, label a few hundred, then train and evaluate a model (Phases 2–3).
- A Romanized-to-Nepali typing model that learns from examples rather than rules, compared against our rule-based typing tool (Phase 4).
- A RAG assistant that answers questions on NOC or WES rules from official documents, tested against an evaluation set you wrote yourself (Phase 5).
Publish each one on GitHub with a short README covering the problem, the data, how you measured success, and what didn't work.
Frequently asked questions
Can I learn machine learning for free?
How do I teach myself machine learning?
How long does it take to learn machine learning?
Can I learn ML in 1 week?
Can I do machine learning without maths?
How do I become an AI engineer?
Python or C++ for AI?
Is ChatGPT AI or ML?
Do I need a computer science degree?
Should I start with ChatGPT-style apps (Phase 5) because that's where the jobs are?
Is AI going to replace programmers?
Start now: Phase 0: Your toolkit →