Pixel art generation using discrete diffusion
Training a small transformer to generate 16x16 pixel art characters by de-masking pixels step by step.
Side quests in machine learning — derived, coded and plotted from first principles.
Experiments · derivations · visualizations
Training a small transformer to generate 16x16 pixel art characters by de-masking pixels step by step.
BatchNorm, LayerNorm and GroupNorm implemented from scratch in PyTorch and compared on MNIST: what each normalizes over, when to use which, and how they affect training and dead neurons.
Building a discrete diffusion transformer (DiT) from scratch and training it to generate Shakespeare-like text, one denoising jump at a time.
How classifier-free guidance works: derived from Bayes’ rule, implemented in a few lines of PyTorch, with label dropout during training and what the guidance scale w does to samples.
A trimmed, annotated companion to the 2-D diffusion notebook — with an ODE-vs-SDE sampling comparison.