The goal F AI engineering
Fine-tune and run your own models
PEFT and QLoRA, dataset design, distributed training, catastrophic forgetting, export, and a capstone where you fine-tune and evaluate for real.
- Knowledge nodes
- 89
- From zero
- about 78 h
- Labs
- 6
See what you already know — no account
The diagnostic removes what you already know, so your path is usually much shorter.
What you can do afterwards
- DFine-tuning — an overview for upper secondary
- FDistributed training
- GFSDP, ZeRO and DeepSpeed
- FDataset design for fine-tuning
- FKnowledge distillation
- EInstruction fine-tuning (SFT)
- FCatastrophic forgetting
- FMerging adapters and exporting models
- FParameter-efficient fine-tuning: adapters, prefix, LoRA
- FQLoRA
- FPre-training in practice
- FContinued pre-training on domain data
- FScaling laws
- FSynthetic data
- FTarget modules and rank in LoRA
- FProject F: fine-tune and evaluate a language model
- FTraining data for language models: filtering and dedup
Labs along the way
You write the code. Tests you cannot see decide whether it holds up.
Project 4: Fine-tune a model with LoRAFa sandbox · about 180 minLab: LoRA on a small network — train only the adaptersFa sandbox · about 75 minLab: build an eval harnessEa sandbox · about 60 minLab: a neural network in pure NumPy — forward, backprop, gradient checkDa sandbox · about 75 minLab: dot product, norm and cosine similarityDin the browser · about 40 minLab: gradient descent from scratchDin the browser · about 50 min
The whole path
Everything the goal builds on, grouped by level and in the order it builds on itself. Show on the map
AExplorer4 knowledge nodes
BInvestigator11 knowledge nodes
- Data in everyday life
- Algorithmic thinking
- Rule-based systems and machine learning
- Source criticism and responsibility in AI use
- Fractions, decimals, and percentages
- Coordinates: positions on a grid
- Negative numbers in everyday life and AI
- Training data, features and labels
- Classification: how a model sorts information
- Generative AI: how it creates content
- Language models and probabilities
CBuilder19 knowledge nodes
- Functions and coordinate systems
- Programming logic — variables, conditions, loops
- Python — the basics
- Python — lists, loops and dictionaries
- Python — strings and text processing
- Python — files, CSV and JSON
- Statistics — mean, median and spread
- Probability — the basics
- Manual data labelling
- Linear regression: fitting a straight line to data
- Neural networks — the intuition
- Prompting — steering a language model
- Experiment: biased training data and its consequences
- Project: train an image classifier in the browser
- Retraining the model with your own examples
- Attention: how words influence each other
- Words as points: similar words close together
- Variables and algebraic expressions
- Powers and roots
DAI developer26 knowledge nodes
- Derivatives and optimisation
- Python — functions, scope and exceptions
- APIs and HTTP
- Regular expressions
- Licences and open data
- Loss functions
- Testing with pytest
- Tokenisation
- Gradient descent
- The transformer — an overview without formulas
- How a language model is trained — at upper-secondary level
- Fine-tuning — an overview for upper secondary
- Logarithms
- Vectors
- Matrices and matrix multiplication
- Linear regression with several features
- Neural networks — the forward pass with matrices
- Backpropagation
- Embeddings — words as vectors
- Attention
- Overfitting and generalisation
- PyTorch — tensors and autograd
- Retrieval — finding the right text
- Training, validation and test
- Train a neural network in PyTorch
- Transformers — the architecture
EUniversity10 knowledge nodes
- Information theory: entropy and KL divergence
- Matrix factorisation and low-rank approximation
- Optimisers: momentum, Adam, scheduling
- Language models — training and generation
- Model evaluation
- Build an eval harness
- Fine-tuning language models
- Instruction fine-tuning (SFT)
- RAG — retrieval-augmented generation
- Web scraping — the technique and the rules
FAI engineering18 knowledge nodes
- Quantisation
- Distributed training
- Dataset design for fine-tuning
- Knowledge distillation
- Catastrophic forgetting
- LoRA — Low-Rank Adaptation
- Merging adapters and exporting models
- Parameter-efficient fine-tuning: adapters, prefix, LoRA
- QLoRA
- Evals for language models and agents
- Regression tests for models
- Pre-training in practice
- Continued pre-training on domain data
- Scaling laws
- Synthetic data
- Target modules and rank in LoRA
- Project F: fine-tune and evaluate a language model
- Training data for language models: filtering and dedup