The course
The project teaches you. The course makes you do it.
It is the difference between reading that backpropagation shares the gradient out backwards, and writing it yourself and watching the test go from red to green.
How it works
Each exercise is a file that checks itself. You open it, fill in the gap, run it, and it tells you whether you have it:
cd ~/Documents/Ia-desde-cero
.venv/bin/python curso/03_autograd/e1_backward.py
OK d(a+b)/da = 1
FALLA ACUMULACIÓN: y = a·a -> dy/da = 2a = 6
esperaba : 6.0 (±0.0001)
obtuve : 3.0
That message is telling you exactly where the bug is: you are assigning the gradient instead of accumulating it.
Your progress
.venv/bin/python curso/verificar.py # all of them, with progress
.venv/bin/python curso/verificar.py --pendientes # only the ones left
.venv/bin/python curso/verificar.py 05 # one stage only
The route
Each exercise says what to read first. Do not do them without having read and run the matching stage: this is not an exam, it is guided practice.
| # | Exercise | Difficulty | Read first |
|---|---|---|---|
| 1.1 | The BPE merge | ●○○○○ | etapas/01_tokenizador/bpe.py |
| 1.2 | Training BPE | ●●○○○ | all of stage 01 |
| 3.1 | Write backpropagation | ●●●○○ | stage 03 |
| 5.1 | Implement attention | ●●●○○ | stage 05 |
| 7.1 | Implement AdamW | ●●●○○ | mininn/optim.py |
| 8.1 | Temperature, top-k and top-p | ●●○○○ | stage 08 |
3.1 is the one that matters. If you solve it, you understand deep learning. The rest is scale.
If you get stuck
- Read the test message. It says what it expected and what it got. That is almost always enough.
- Try the smallest failing case by hand, on paper.
- Go back to the project file the exercise points at.
- guia-de-errores.md — the real failures, by symptom.
- The solutions, in
soluciones/. Use them when you are genuinely stuck, not when you are uncomfortable. All the value is in that uncomfortable stretch.
When you finish
proyecto-final.md — build something that was not already built. It is the only real proof that you understand it.
Nine projects across three levels, from a weekend to a month. None of them produces a useful model — on a laptop that does not happen. What they produce is knowing exactly why not.
To teach the course
video/guiones.md — 18 videos, ~6 hours. With running times, what to show on screen and the key moment of each one.
One principle above all the others: run it live, do not show screenshots. The value of this material is that everything really runs.
What the course will NOT give you
A good model. And it is worth saying so early.
The corpus is synthetic and the quality figures come out artificially high (perplexity 1.27 against 3-5 on real text). What is valid is the comparison between stages, not the absolute value.
The day you put a real book into datos/crudo/ you will see a worse model. And you will learn more, because that is when the real problems show up.