Deep Learning
Own neural mechanisms, PyTorch execution, training diagnosis, major architectures, representation learning and reliable measurement on compact models.
8 sections · 60 units · about 244 hours
- Affine maps, nonlinearities and logits4h
- Stable softmax, cross-entropy and loss reductions5h
- Computation graphs and reverse accumulation5h
- Branches, broadcasting and saved values in backward5h
- Gradient checks with finite differences3h
- Tensor layout: shape, stride, views and copies3h
- Aliasing, mutation and module ownership3h
- PyTorch tensors: creation, indexing, storage and strides3h
- Autograd state: views, in-place ops, leaves and accumulation4h
- Modules, parameters, buffers and initialization4h
- Backward, `zero_grad`, `gradcheck` and evaluation modes3h
- Custom autograd functions3h
- Datasets, data loaders and samplers4h
- Explicit training and evaluation loops with correct metrics4h
- Checkpoints, configuration and reproducibility5h
- Initialization and signal scale across depth5h
- Dead, saturated and exploding units, and residual paths4h
- Batch, layer, group and RMS normalization4h
- Regularization: dropout, label smoothing, augmentation and weight decay4h
- Optimizers from SGD to AdamW5h
- Schedules, gradient accumulation and clipping5h
- Objective checks, tiny-set overfit and shuffled-label controls3h
- Diagnosing failed runs: divergence, stale state, slices and seeds5h
- Convolution shapes: channels, padding, stride, dilation and groups5h
- Pooling, transposed convolution, receptive fields and cost4h
- Equivariance, residual CNN blocks and resolution cost5h
- Recurrent cells, unrolling and backpropagation through time5h
- Recurrent gradients, GRU and LSTM gates5h
- Hidden state, encoder-decoder models and teacher forcing4h
- Decoding, variable-length batches and leak tests5h
- Embedding geometry and contrastive logits3h
- Temperature, negatives and positive construction4h
- Augmentation shortcuts, false negatives and collapse5h
- Linear probes, transfer evaluation and pair leakage5h
- Patch embeddings and positional information3h
- Paired modalities: projector heads, alignment and zero-shot retrieval4h
- Graph message passing and oversmoothing2h
- Autoencoders and latent-variable models3h
- The ELBO and reparameterized sampling4h
- Posterior collapse and decoder capacity3h
- GAN objectives, alternating updates and mode collapse4h
- Diffusion: forward corruption, reverse denoising and prediction targets5h
- Diffusion sampling schedules, cost and guidance3h
- Evaluating and comparing generative model families3h
- Queries, keys, values and scaled dot-product attention4h
- Causal masks, padding masks and fully masked rows3h
- Self-attention, cross-attention and multi-head shapes4h
- Positional information and position offsets3h
- Transformer blocks: residual stream, normalization and feed-forward5h
- Parameter, FLOP and memory accounting for attention4h
- Architecture trade-offs and attention correctness tests5h
- Eager execution, autograd nodes and saved tensors3h
- Streams, asynchronous copies and honest timing4h
- GPU memory: allocated, reserved, peak and memory models5h
- Precision formats, autocast and gradient scaling5h
- Overflow, underflow and finding the first invalid value4h
- Activation checkpointing and recomputation4h
- Complete checkpoints, atomic writes and reproducibility boundaries5h
- `torch.compile`: capture, guards, graph breaks and dynamic shapes4h
- Profiling training phases and verifying optimizations5h
Final project: Neural Mechanisms & Training Evidence Pack
Review the stage through three compact artifacts that prove mechanism fluency, PyTorch ownership and diagnosis. Keep every model and dataset small enough to rerun locally or in a free notebook runtime.
- Neural core proof pack - branched tensor autodiff with tests, stable cross-entropy, one tensor MLP, finite-difference and PyTorch differential checks, and one saved-value or broadcast defect with its regression test
- Reproducible PyTorch training run - one small CNN, recurrent, VAE or attention model with explicit loops, configuration and split provenance, tiny-set and shuffled-label controls, complete checkpoint state and a stated resume-equivalence result
- Diagnosis and profile casebook - three seeded-fault postmortems across objective or data, numerical or state, and performance or compile behavior, each with hypotheses, a discriminating control, repair, regression guard, measured evidence and one limitation
How it's graded · about 10 to 16 hours
Neural core proof pack
Pass: The section 1 mini-project meets Pass on every criterion.
Great: It meets Strong on gradient correctness and on saved values, and one command runs every differential check.
Reproducible PyTorch training run
Pass: One small CNN, recurrent, VAE or attention model trains in the section 2 trainer with config and split provenance, tiny-set and shuffled-label controls, complete checkpoint state and a stated resume-equivalence result.
Great: Resume is exact on CPU, and a fresh clone reproduces the reported metrics within the stated tolerance.
Diagnosis and profile casebook
Pass: Three seeded-fault postmortems, one each for objective or data, numerical or state, and performance or compile behavior, each with hypotheses, a discriminating control, repair, regression guard, measured evidence and one limitation.
Great: Each regression guard fails on its fault and passes on its repair in one test command.
Rebuild from a clean clone
Pass: A README lists the commands that rebuild each artifact.
Great: One script rebuilds every reported number on a CPU or a free notebook GPU, with its run time stated.
Honest limits
Pass: Each artifact states what its compact model and data cannot show.
Great: Each limit names the later stage or track that addresses it.