Skip to content
Tag

Everything tagged #training

3 articles, newest first.

Articles tagged #training

ResearchNov 19, 2026 · 4 min read

Why Loss Functions Use the Log, and KL Divergence

Multiplying probabilities across a dataset collapses to zero in float32, while raw exponentials blow up to infinity. Derive why logarithms turn probability products into sums, how the log-sum-exp trick prevents overflow, and how KL divergence compares full probability distributions.

124 min read
EngineeringSep 11, 2026 · 5 min read

Training for Real: GPUs, Mixed Precision, and Schedules

The five-line loop from Part 2 trains a toy. A real run adds a device, mixed precision for a near-free 2×, a learning-rate schedule, gradient clipping, and checkpoints you can actually resume from. Here's the whole thing.

15 min read
ExperimentsDec 18, 2024 · 3 min read

Fine-Tuning Large Language Models: PEFT, LoRA, and QLoRA in Practice

Full parameter training requires clusters of H100s. Parameter-Efficient Fine-Tuning (PEFT) with low-rank matrix decomposition brings specialized adaptation to a single GPU.

13 min read