Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Learn ML

A 12-episode video series that teaches ML engineering by building real projects.

This isn't "here's how to write a for loop." This is "here's what you need to understand to build ML systems" -- the concepts, the intuition, and the hands-on experience that AI coding tools can't replace.

The Format

Every episode has two parts:

The Knowledge (5-10 min) -- Concept explanation, intuition, and mental models. Interactive slides you can follow along with in your browser.

The Work (10-15 min) -- Build something real. Step-by-step Python scripts where each one demonstrates a concept with clear input and output.

Episodes

#TopicProjectSlidesVideo
1PyTorchPokemon card price predictorSlidesComing soon
2TransformersBuild a mini-GPTSlidesComing soon
3Hugging FaceModel comparison tool
4EmbeddingsSearchable speech database
5Fine-tuning (SFT)Domain-specific assistant
6LoRA / QLoRA7B model on consumer GPU
7DPOAlign your fine-tuned model
8EvaluationDomain evaluation suite
9GPU Optimization2x training throughput
10Distributed TrainingScale beyond one GPU
11Reinforcement LearningGame AI agent
12Triton & KernelsUnderstand ML infrastructure

Series intro slides

Getting Started

Requirements

  • Python 3.11 or 3.12
  • An NVIDIA GPU with CUDA support (tested on RTX 3060)
  • ~2GB disk space for PyTorch

Setup

Create a virtual environment and install dependencies:

python -m venv .venv

# Windows
.venv\Scripts\activate

# Linux / Mac
source .venv/bin/activate

# Install PyTorch (with CUDA)
pip install torch --index-url https://download.pytorch.org/whl/cu124

# Install other dependencies
pip install pandas matplotlib scikit-learn pyarrow requests

Running an Episode

Each episode lives in its own directory under episodes/. Scripts are numbered and meant to be run in order -- each one builds on the previous.

cd episodes/01-price-predictor

# Step 1 produces output that Step 2 needs, and so on
python step1_tensors.py
python step2_model.py
python step3_training_step.py
python step4_train.py
python step5_evaluate.py

Viewing Slides

Open any .html file in the slides/ directory in your browser. Navigate with arrow keys, spacebar, or the buttons in the corner. Touch/swipe works on mobile.

Episode Details

Episode 1: PyTorch

Concepts: Tensors (shape, dtype, device), autograd, the training loop, nn.Module, DataLoader

Project: Train a neural network to predict Pokemon card market prices from card attributes (rarity, type, HP, etc.) using real data from the Pokemon TCG API.

ScriptWhat it doesOutput
fetch_data.pyPulls 2,000+ real Pokemon cards from the APIpokemon_cards.csv
step1_tensors.pyConvert CSV to tensors, inspect shape/dtype/devicecard_tensors.pt
step2_model.pyBuild the neural network, explore parameters--
step3_training_step.pyOne training step: forward, loss, backward, update--
step4_train.pyFull training loop, 100 epochstrained_model.pt
step5_evaluate.pyTest predictions, metrics, plotsresults.png

Episode 2: Transformers

Concepts: Attention (Q/K/V), multi-head attention, causal masking, positional encoding, the transformer block (feed-forward, residuals, layer norm), decoder-only generation

Project: Build a mini-GPT from scratch and train it to generate text. We trained ours on One Piece episode synopses.

Note: You need to provide your own training text. Place it in episodes/02-mini-gpt/input.txt. Any plain text works -- novels, articles, wiki pages. Aim for 500KB-3MB.

ScriptWhat it doesOutput
step1_attention.pyImplement attention from scratch, visualize weightsvocab.pt, input.txt
step2_multihead_mask.pyMulti-head attention + causal maskconfig.pt
step3_transformer_block.pyBuild the full model: blocks + embeddings + outputmodel_config.pt
step4_train.pyTrain on your text (~5-15 min on GPU)trained_minigpt.pt
step5_generate.pyGenerate text from prompts, temperature comparisontraining_loss.png

Philosophy

  1. Concepts over code -- Understand what's happening. AI writes the boilerplate.
  2. Real projects -- Not toy examples. Actual useful things.
  3. Step by step -- Each script demonstrates one concept with clear input and output.
  4. AI-resistant skills -- Systems understanding, debugging intuition, domain expertise.

License

MIT

关于 About

12-episode video series teaching ML engineering by building real projects

语言 Languages

HTML68.9%
Python31.1%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
1
Total Commits
峰值: 1次/周
Less
More

核心贡献者 Contributors