Frontier Research Engineering

PyTorch in Practice

Socratic Tutor

Tensors, autograd, nn.Module, the training loop, and debugging the bugs interviewers plant.

Tensors & Autograd

Tensors: Shapes, Dtypes, Devices, Views and Copies
12 min
Autograd: The Graph, backward(), and Where Gradients GoCore
12 min

Models & Training

nn.Module: Parameters, Buffers, state_dict, train() and eval()
11 min
The Training Loop, Line by Line
13 min
Data: Dataset, DataLoader, Collate and Padding Masks
12 min
Losses in PyTorch: Logits, Targets, Reductions and ignore_index
12 min

Debugging & Performance

Debugging a Broken Training LoopCore
15 min
Mixed Precision and Measuring SpeedCore
12 min
StackSweep | Engineering practice