Skip to content

Track T38

Training, Adaptation & Compression

Optimizers, transfer, LoRA, preference tuning, distillation, quantization and memory.

Unit 1Training in practice

· 2 lessons
  1. 1A training recipe you can defendThe optimizer, schedule, clipping and weight averaging are part of the model. Set them in a network's Training options, read what each run reports, and compare two recipes fairly.Applied · 14 min
  2. 2Frozen, adapted or fine-tuned: transfer on equal termsReuse a pretrained network three ways - frozen features with a new head, a few adapted weights, or fine-tuning its layers - and compare them fairly, with the same rows, folds and budget.Applied · 15 min

Unit 2Parameter-efficient adaptation

· 2 lessons
  1. 3LoRA and its relatives: QLoRA, DoRA and AdaLoRAAdapt a frozen weight matrix with a low-rank update, count what it saves, and see what QLoRA (a 4-bit base), DoRA (magnitude and direction) and AdaLoRA (rank where it matters) change.Advanced · 16 min
  2. 4Adapters, prefixes, rescaling and biases: other small ways to adaptFour more ways to adapt a frozen network - bottleneck adapters, learned prefixes, IA3 rescaling vectors and bias-only BitFit - compared by what they train, what they cost at prediction time, and whether they can be merged away.Advanced · 14 min

Unit 3Instruction and preference tuning

· 3 lessons
  1. 5Instruction tuning: teaching a model to follow tasks it hasn't seenHow FLAN-style instruction tuning and T0-style prompted multitask training turn a text predictor into a model that follows instructions, why the task mixture and templates matter, and how to test it honestly.Advanced · 12 min
  2. 6RLHF and Constitutional AI: learning from preferencesThe InstructGPT pipeline (supervised tuning, a reward model fitted to preference pairs, then RL held near the start by a KL penalty) and Constitutional AI, which swaps human raters for written principles.Advanced · 15 min
  3. 7DPO and ORPO: preference tuning without a reward modelDirect preference optimization turns the KL-penalized RLHF objective into a classification loss on preference pairs. ORPO folds preferences into supervised tuning with an odds-ratio term and no reference model.Advanced · 14 min

Unit 4Compression

· 3 lessons
  1. 8Knowledge distillation: a small student copies a teacherTrain a small network to reproduce a larger model's softened predictions. See what the temperature and the T² factor do, distill any CodeSplash model into a network, and compare student and teacher on the same rows.Applied · 13 min
  2. 9Pruning: removing weights, and what it costsZero the smallest weights or remove whole units, fine-tune what's left, and measure the result on rows the model didn't train on. Know when pruning saves memory and when it saves time.Applied · 12 min
  3. 10Quantization: fewer bits per weightStore weights as small integers with a scale and zero point, see where rounding and clipping errors come from, how GPTQ, AWQ and SmoothQuant reduce them, and when quantization-aware training pays.Advanced · 16 min

Unit 5Keeping and moving knowledge

· 3 lessons
  1. 11Continual learning: training on new rows without forgettingKeep training a network as new rows arrive without erasing what it learned. Replay old rows, anchor the weights with EWC or L2-SP, and measure old and new performance together.Advanced · 14 min
  2. 12When the inputs shift: adapt during training or at test timeTwo answers to a shifted target domain. A domain-adversarial network learns features that hide the domain while training; Tent adjusts a deployed network on unlabeled test batches. Both need labeled target rows to prove they helped.Advanced · 13 min
  3. 13Semi-supervised learning: Mean Teacher and FixMatchUse unlabeled rows next to a few labeled ones. Mean Teacher asks a student to agree with a weight-averaged teacher; FixMatch turns confident predictions on weakly changed rows into labels for strongly changed ones.Advanced · 14 min

Unit 6Privacy and many devices

· 2 lessons
  1. 14DP-SGD in depth: clipping, noise and the privacy budgetFollow one DP-SGD step - clip each row's gradient, add noise, take the step - then see how the noise multiplier, sampling rate and number of steps set ε, what costs accuracy, and what the guarantee leaves out.Advanced · 15 min
  2. 15Federated averaging: training where the data livesClients train on their own data and a server averages their weights. See how the average is weighted, why different clients drift apart, and why keeping data on the client is not the same as privacy.Advanced · 11 min

Unit 7Memory and systems

· 2 lessons
  1. 16FlashAttention and activation checkpointing: trading work for memoryTwo exact tricks that make big networks fit. FlashAttention computes attention in tiles with an online softmax and never stores the score matrix; activation checkpointing keeps a few activations and recomputes the rest.Advanced · 13 min
  2. 17Memory accounting, and sharding it across devicesAdd up what training and serving need (weights, gradients, optimizer state, activations, KV cache), see how ZeRO and FSDP split the big parts across devices, and read CodeSplash's Resources estimate.Advanced · 16 min