Shrink an AI model 7.6×.
Then run it without unpacking it.
AI is limited by memory, not by math: every answer means moving the whole model through the chip. Drop a real model file below. Your browser compresses it, runs the compressed model next to the original, and lets you check that they give the same answers. Nothing leaves this tab.
- 1Drop the modelTinyStories, 51 million weights, 198 MB
- 2Compress it hereabout a minute, inside this tab
- 3Same answers?original vs compressed, word by word
- 4Compute on compressed weightsno unpacking, ever
Drop the original model. Watch it shrink.
Waiting for the model file.
Does the compressed model give the same answers?
Both models read the same real story. At every word, each one predicts the next word. Highlighted words: both models predicted the same word. Outlined: they disagreed. Click any word to see what each model predicted.
| top-5 word | compressed | original |
|---|
| Compression setting | Smaller | KL vs original (lower = closer) | Perplexity change |
|---|---|---|---|
| Plain 3-bit grid (E1M2), for reference | 7.12× | — | +0.1715 |
| Best quality (register + frontier, window 4) | 7.59× | 0.0194 | +0.0138 |
| Closest to the original (register + pentagon, window 16) | 7.60× | 0.0169 | +0.0316 |
| Smallest (register + Witt + pentagon, window 16) | 7.64× | 0.0203 | +0.0161 |
The math runs directly on the compressed weights.
Compression tools shrink a model on disk and unpack it before running it. Here the multiplication reads the compressed codes themselves: the 32-bit weights are never rebuilt. Pick a layer of the model and run one real step.
Input: the real input of this layer while the model reads a story.
| output | on compressed codes | unpacked, then computed | original model |
|---|
> For engineers: inside the compressed weights (tile x-ray, error-feedback predictor, O(N) scaling, number inspector)
| column | value entering | stored value | error pushed forward |
|---|