PigeonColumba compressa

Field Guide

43 compression methods. 31 run in your browser and 3 in the YOLOv8n cockpit on your own machine, each shown with the source code that runs it. The other 9 are reference write-ups for kinds of models the lab doesn't have: 7 show the closest code that does run, and 2 have no code at all.

Small networks

Every method runs here on a toy 20-class problem with a known best-possible answer. Start here: the ideas are the same at every scale, and most runs finish in under a minute.

Language-model methods

Algorithms invented for large language models. The layer-by-layer ones (GPTQ, AWQ, SmoothQuant, Wanda, SparseGPT, QLoRA, ShortGPT) are pure linear algebra on one weight matrix at a time, so they run here on the same toy network. Methods that need text, tokens or a KV cache are explained but marked as reference.

Vision / detector (YOLOv8n cockpit)

What changes when the model is a convolutional detector like YOLOv8: channels instead of neurons, dependency groups, batch-norm. The cockpit methods run in the YOLOv8n cockpit's web UI (cockpit/server.py) on a real model; the rest are explained for reference.

Techniques not covered yet

Techniques this guide covers only in part, or not at all. Where the Coop applies the same number format to Pigeon's own weights, the line says how.

Covered with pages that run here: AWQ (activation-aware weight quantization), GPTQ, SmoothQuant (weights + activations); pruning followed by distillation (Magnitude pruning, Structured (neuron) pruning, Layer dropping and others in the families above); and quantization-aware distillation, the distillation option of Quantization-aware training.