- 71lessons
- 5guided projects
- 10module checkpoints
- 2.7hours of video
What you'll learn
- Create and reshape tensors and predict shapes, dtypes, views and broadcasting results before running code.
- Build map-style datasets and DataLoaders with reproducible shuffling and leak-free splits.
- Write, test and debug a training loop, evaluation loop, early stopping and resumable checkpoints.
- Manage devices, memory and timing on a CPU and record reproducible runs with stated limits.
- Deliver a trained model with checkpoints, a one-shot test, an error analysis and a model card.
Skills you'll gain
- Tensors: shapes
- dtypes
- views
- broadcasting
- Autograd: computing
- controlling gradients
- Datasets
- Models
- losses: nn.Module
- layers
- loss functions
- Validation
- early stopping
- checkpoints
Tools you'll use
- PyTorch
- Python
- autograd and gradcheck
- DataLoader
- nn.Module
Details to know
- Certificate on completionIssued after your final project is reviewed
- 10 module checkpointsA quiz and a practical task close each module
- Self-pacedStudy any time; your progress is saved
How every lesson works
Each lesson follows the same four steps, so you always know what comes next.
- 01
Watch & Learn
A short animated video explains one idea at a time.
- 02
Guided Practice
Work through an example step by step and check the result.
- 03
Quiz & Challenge
Short questions check the idea has landed before you move on.
- 04
Mini Project
Build something useful from a project brief.
Learn at your own pace
This is a self-paced course. There are no live classes and no fixed timetable.
- Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
- Pick up where you left offYour progress is saved to your account.
- Ask when you're stuckUse Ask Mentor inside the learning platform.
Your path in 3 phases
Each phase ends with something you have built and checked.
- 01
Modules 1 to 3
Tensors, gradients and data
Predict tensor shapes and broadcasting, compute and verify gradients, and build reproducible datasets and loaders.
You build: Guided project: Tensor and autograd toolkit; Data pipeline with leak-free splits.
- 02
Modules 4 to 6
Models, loops and checkpoints
Define nn.Module models and losses, write and test a training loop, and add validation, early stopping and resumable checkpoints.
You build: Guided project: Model and loss fixtures with sanity gates; Trainer with validation, early stopping and resumable checkpoints.
- 03
Modules 7 to 10
Optimisation, devices and the project
Tune optimisers and regularisation, manage devices and memory on a CPU, study common architectures, and deliver a reproducible trained model.
You build: Guided project: Optimisation lab and reproducible resource report.
Full curriculum
10 modules and 71 lessons, 39 to 65 hours of study
01Tensors: shapes, dtypes, views and broadcasting6 lessons, 3 to 4 hours
Lessons
- Tensor creation and the shape, dtype and device attributes
- Indexing, slicing and views that share memory
- view versus reshape and the contiguity condition
- Broadcasting: aligning shapes from the right
- Reductions along a dimension with keepdim
- Matrix multiplication shapes: matmul, the @ operator and batched products
After this module you can
- Create tensors from nested lists and factory functions and report shape, dtype and device for each, predicting the dtype PyTorch infers.
- Select rows, columns and boolean masks from a tensor and state which operations return views that change the original when written to.
- Predict the output shape of matmul for 2-D and batched operands, and distinguish the matrix product from the elementwise product.
02Autograd: computing and controlling gradients7 lessons, 3 to 5 hours
Lessons
- requires_grad and backward() on a scalar with hand-checked gradients
- The computation graph: grad_fn, leaf and non-leaf tensors, retain_grad
- Gradient accumulation and zeroing .grad
- detach, no_grad and inference_mode: turning recording off
- In-place operations and the version counter error
- Hand-derived gradients of a linear model with mean squared error
- Checking gradients numerically with gradcheck
After this module you can
- Call backward() on a scalar built from two inputs and match the resulting .grad values to a hand-derived partial derivative.
- Identify leaf and non-leaf tensors in a small expression, read grad_fn names, and retrieve an intermediate gradient with retain_grad.
- Use torch.autograd.gradcheck in float64 to confirm that a custom function's analytical gradient matches finite differences.
03Datasets and loaders: from tensors to batches8 lessons, 4 to 6 hours
Lessons
- A map-style Dataset with __len__ and __getitem__
- Synthetic datasets with a seeded torch.Generator
- DataLoader batching: batch_size, drop_last and batch-count arithmetic
- Shuffling reproducibly with a seeded generator argument
- Splitting with random_split and a seeded generator, without leakage
- Normalising features with statistics from the training split only
- collate_fn and padding variable-length samples
- Iterable-style datasets and worker seeding
After this module you can
- Write a Dataset subclass that returns a (features, label) pair per index and verify its length and indexing contract.
- Generate a reproducible labelled dataset from a seeded generator and show that equal seeds yield identical tensors.
- Explain when an IterableDataset is needed and why num_workers greater than zero duplicates data unless each worker is told which share to read.
04Models and losses: nn.Module, layers and loss functions8 lessons, 4 to 6 hours
Lessons
- Subclassing nn.Module: __init__, forward and parameter registration
- nn.Linear: weight and bias shapes, parameter counts and the shape contract
- Why nonlinearity matters: a hand-built XOR network
- nn.Sequential, named_parameters and state_dict keys
- MSELoss for regression and its reduction modes
- CrossEntropyLoss: logits in, class indices out
- BCEWithLogitsLoss for binary and multi-label outputs, with pos_weight
- Initial loss sanity check and parameter initialisation
After this module you can
- Write an nn.Module subclass, explain which attributes register parameters, and show that a layer hidden inside a plain Python list is not registered.
- Compute the parameter count and output shape of a Linear layer and a small MLP by hand, and verify with code.
- Predict the expected initial cross-entropy of an untrained classifier as ln of the class count, check it on a seeded model, and diagnose when it is far off.
05The training loop: step by step7 lessons, 3 to 5 hours
Lessons
- Anatomy of one training step: zero_grad, forward, loss, backward, step
- A hand-written SGD step equals optimizer.step()
- The forgotten zero_grad bug and how to detect it
- Epochs and batches: averaging the epoch loss correctly
- Overfitting one small batch as a pipeline sanity check
- train() and eval() modes: Dropout and BatchNorm behave differently
- A loss-decrease test with fixed seeds and stated bounds
After this module you can
- Write the five-line training step in the correct order and say what breaks when two lines are swapped.
- Compute one SGD update by hand with the gradient formula and show torch.optim.SGD gives the same parameters within tolerance.
- Write an automated test that trains logistic regression on a seeded two-cluster dataset and asserts the loss falls by a stated factor.
06Validation, early stopping and checkpoints7 lessons, 3 to 5 hours
Lessons
- The evaluation loop: model.eval, no_grad and accuracy
- Reading training and validation curves: the generalisation gap
- Early stopping with patience and best-state restore
- state_dict contents and load_state_dict strictness
- Checkpoints that resume training exactly: model, optimizer and epoch
- Loading checkpoints safely: torch.load and weights_only
- Confusion matrices and per-class recall for diagnosing errors
After this module you can
- Write an evaluate function that sets eval mode, disables gradient recording, and returns loss and accuracy weighted by sample count.
- Classify a pair of loss histories as underfitting, a good fit or overfitting from numbers, and name the epoch where validation loss is lowest.
- Build a confusion matrix with torch.bincount and read per-class recall and precision from it for a small three-class result.
07Optimization: optimisers, learning rates and regularisation8 lessons, 4 to 6 hours
Lessons
- SGD with momentum: the velocity buffer worked by hand
- Adam: defaults and the scale-free first step
- Weight decay: coupled L2 in SGD versus decoupled AdamW
- Learning-rate sensitivity: too small, right and too large
- Learning-rate schedules: StepLR and the order of step calls
- Gradient clipping with clip_grad_norm_
- Regularising with dropout and weight decay: a controlled comparison
- Debugging stalled or NaN training: gradient norms, dead units and unstable losses
After this module you can
- Compute two SGD-with-momentum steps by hand using the documented update rule and match torch.optim.SGD.
- State Adam's default hyperparameters and show that its first step has size about lr regardless of gradient scale.
- Diagnose a flat loss or NaN from per-layer gradient norms and finite checks, and fix a dead-ReLU and a naive-sigmoid overflow case.
08Devices, memory and reproducible runs7 lessons, 3 to 5 hours
Lessons
- Device-agnostic code: torch.device, .to and where tensors live
- dtype and memory arithmetic: bytes per element
- Batch size, steps per epoch and the memory trade-off
- CPU threads and fair timing: warm-up, repeats and medians
- DataLoader num_workers on a laptop: cost versus benefit
- Seeds, deterministic algorithms and a run record
- Optional GPU: the same script with a different device argument
After this module you can
- Write a training script that takes a device argument defaulting to cpu and moves the model and every batch consistently.
- Compute the bytes used by tensors and by a model's parameters from shape and dtype, and verify with nbytes.
- Explain how the CPU-first script would run on a GPU by changing only the device argument, and what to verify in the current docs first.
09Common architectures at concept level7 lessons, 3 to 5 hours
Lessons
- Convolution layers: Conv2d weight shape, parameter count and output size
- Embedding layers: an index lookup equals a one-hot matrix product
- Recurrent layers: GRU input and output shapes and parameter count
- Scaled dot-product attention computed by hand
- Residual connections: why y = x + f(x) keeps gradients alive
- Freezing a backbone: requires_grad_ and trainable parameter counts
- Choosing an architecture family from the data shape
After this module you can
- Compute a Conv2d layer's parameter count and output spatial size from the documented formula and verify on a zero tensor.
- Show that nn.Embedding returns rows of its weight matrix and equals a one-hot times weight product, and compute its parameter count.
- Map four described datasets to an input tensor shape and a reasonable architecture family, and state what would make the choice wrong.
10Model project: a reproducible trained model with error analysis6 lessons, 3 to 4 hours
Lessons
- Scoping the model project: question, success rule and baseline
- Dataset assembly with a lineage and licence manifest
- Pre-training gates: initial loss, one-batch overfit and a learning-rate probe
- The recorded training run: logging, early stopping and checkpoints
- One-shot test evaluation and an error analysis table
- Model card, limitations and a clean-environment reproduction
After this module you can
- Write a one-page project brief that states the prediction question, a numeric success rule fixed before training, and the classical baseline from the earlier course the network must beat.
- Generate or load the project dataset deterministically and write a manifest recording its source, licence, seed, shapes and a checksum.
- Write a model card with scope, limitations and evidence links, and reproduce the reported test metric from the checkpoint and manifest in a fresh virtual environment.
What you'll build
5 guided projects along the way, then a final project.
Tensor and autograd toolkit
after module 2Data pipeline with leak-free splits
after module 3Model and loss fixtures with sanity gates
after module 4Trainer with validation, early stopping and resumable checkpoints
after module 6Optimisation lab and reproducible resource report
after module 8
Final project
Trained PyTorch model with reproducible checkpoints and error analysis. Choose one option: Noisy-rings classifier | Sensor-fault classifier | Tiny sequence tagger
What you submit
Source and artefact submission: project repository with brief, config.json, data manifest, scripts, gates.json, run_record.json, best.pt, last.pt, test_report.json, errors.csv and MODEL_CARD.md.
How it's reviewed
Trainer-reviewed demonstration: the learner regenerates the data, loads the checkpoint, reruns the evaluation live, explains the error table and states the limitations from the model card. Marked against the course project review rubric.
Where you'll use it
- Debug training that stalls or produces NaN by checking gradients, learning rate and loss pairing.
- Save and resume a training run that reproduces the same history.
Roles that use these skills
- Machine learning engineer
- Deep learning engineer
- Data scientist
Earn the certificate by building, not watching
- Complete the lessons and pass each module checkpoint.
- Build your final project and demonstrate it.
- OUTLEARN reviews your project and issues your certificate. It is not issued automatically.
Frequently asked questions
Do I need a GPU?
No GPU or prior PyTorch knowledge is needed.
What should I finish first?
Machine Learning Foundations. Mathematics for Programmers and NumPy experience help.
How is Deep Learning with PyTorch structured, and is it open now?
It has 10 modules and 71 lessons. It is not yet released to learners.
Be first in when Deep Learning with PyTorch opens
Email us and we will tell you as soon as enrolment opens.
Notify me when it opens
