danny22.com

Labs

DL Lab

Train neural networks yourself and measure how much of the machine's GPU and memory that training takes. You write the training loop by hand, choose structures that fit images, sound and time series, and check with numbers when a neural network beats a classical model on the same data and when it loses. Rather than memorizing architectures, you build the habit of knowing what to suspect first when training fails and measuring where GPU time leaks away.

Status
Updated 2026-11-17 KST · 1 of 1 units written. A one-page plan is written. The parts, data and tools are not yet agreed and may change; the full unit list and the material are written just before writing begins
Size
8 parts, about 36 units (33 core, 3 advanced), each 60–90 minutes of lecture. Units are numbered volume-part-chapter (V00-P01-C03); from V00-P01 on, the first unit of each part (C00) is that part's map. The unit count may change when the full unit list is written
Audience
People who have finished ML Lab or are at the same level. You are assumed to know how to split data, set a baseline and suspect leakage. Calculus goes as far as the chain rule and linear algebra as far as matrix multiplication, and formulas are shown as code first
Cases
Questions asked by the business units of danny22.com, a fictional holding company. The core questions are the factory's "can inspection photos tell defects apart", the media unit's "can we tag a song's genre from its sound", the energy unit's "does a neural network forecast the next 24 hours of demand better" and finance and retail's "are neural networks better on tabular data too". The companies and people are made up and have nothing to do with real companies
Data
Small standard datasets (Fashion-MNIST, CIFAR-10) for practice and public data for the cases. Candidates are the factory's texture defect images (DAGM 2007) and inspection photos (VisA), the media unit's songs licensed for commercial use and modification (FMA), the energy unit's hourly electricity demand (EIA-930), and finance's credit card default and retail's repeat purchase data (UCI). Which to use, and how far, is still being decided
Hardware
Every training run is done and measured on one NVIDIA DGX Spark
Access
dl-lab.danny22.com, open to signed-in readers. Get in touch to request access
Language
The course material is written in Korean

What you learn

  • The foundations of training: check tensors and automatic differentiation against hand calculation, then cover backpropagation, optimization and generalization. You also learn to find faults by deliberately overfitting a single batch.
  • Structures that fit the data: CNNs and transfer learning for images, attention and transformers for time series and sound, each compared with a classical baseline on the same data.
  • Deciding whether to use a neural network: compare neural networks and boosting on the same split, look at how results swing across several seeds, and only then decide.
  • Making the most of the GPU: measure bottlenecks with a profiler and see how mixed precision, batch size, gradient checkpointing and the number of data loader workers change throughput and memory.
  • Running long training jobs: start training under a memory limit, resume from checkpoints, get an alert when it finishes, and record results and peak memory in the experiment log.

What a unit contains

  • Theory: concepts and the reasons behind them. Formulas are shown as code first and used only as far as needed.
  • Hands-on notebook: check cells judge whether hand-computed gradients match automatic differentiation, whether two runs with the same seed agree, and whether training beats the baseline by a margin set in advance.
  • Training script: GPU training longer than a minute runs as a script, not in the notebook, and starts under a memory limit. By the end of the course you have a training script template with seeds, a GPU limit, checkpoints and experiment logging.

Parts

PartWhat you learnUnits
V00-P00 Getting startedThe syllabus, where this lab sits on the common skeleton and what it leaves behind, and how to work (memory and GPU limits, seeds and determinism, experiment logging)3
V00-P01 A thin first passAnswer "can inspection photos tell defects apart" with one class of texture defect images. Set a pixel logistic regression as the baseline, train a small CNN, and record its AUROC, how it swings across seeds, and peak memory4
V00-P02 Foundations of trainingTensors and automatic differentiation, neural networks and backpropagation, optimization (SGD, momentum, AdamW, learning rate schedules), generalization and training tricks (regularization, dropout, initialization, finding faults by overfitting one batch)5
V00-P03 CNNsConvolution and pooling, deep CNNs (batch normalization, residual connections, ResNet), augmentation and transfer learning, evaluation and thresholds on imbalanced defect data5
V00-P04 Sequences and transformersTime series and baselines, attention, transformer blocks, time series transformers, sound (spectrograms and splitting by song). One advanced unit covers graph neural networks7
V00-P05 GPU training efficiencyMeasuring bottlenecks (profiler, data loader), mixed precision, memory (batch size, gradient checkpointing, unified memory), running long jobs (saving and resuming checkpoints, alerts). One advanced unit covers torch.compile and attention kernels6
V00-P06 Deep learning on tabular dataComparing an MLP and boosting on the same split, and when to use a neural network. One advanced unit covers structures built for tables (categorical embeddings, the FT-Transformer family)4
V00-P07 What it leaves behindWrite up the GPU training conventions and look back over the training records from the course2