kate.
AIR-GAPPED ENGINE: STARTING | NETWORK CALLS: 0
> Live demo · a real language model · runs entirely in your browser

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.

Smaller 7.59× 4.21 bits per weight instead of 32
Quality change +0.0138 perplexity 4.680 → 4.694 (0.3%)
Unpacking None math runs on the compressed weights
demo_progress
WebAssembly · offline
  1. 1
    Drop the model
    TinyStories, 51 million weights, 198 MB
  2. 2
    Compress it here
    about a minute, inside this tab
  3. 3
    Same answers?
    original vs compressed, word by word
  4. 4
    Compute on compressed weights
    no unpacking, ever
STEP 1 & 2

Drop the original model. Watch it shrink.

Numbers measured on all 1,000 validation stories. Changing it recompresses the dropped file.

Waiting for the model file.

Original model198.3 MB
Compressed model—
STEP 3

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.

The story appears here after compression.
Same next word — of the words in this story
// SELECTED WORD
Context—
Original predicts—
Compressed predicts—
top-5 wordcompressedoriginal
QUALITY ON MORE STORIES — PERPLEXITY (LOWER IS BETTER) Runs after compression, one block of 512 words at a time.
WORDS CHECKED0
ORIGINAL—
COMPRESSED—
SAME NEXT WORD—
// FULL RESULT, ALL 1,000 VALIDATION STORIES (190,464 WORDS), FROM THE COMPILER LOGS
Compression settingSmallerKL vs original (lower = closer)Perplexity change
Plain 3-bit grid (E1M2), for reference7.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
TRY IT — BOTH MODELS CONTINUE THE SAME STORY Each model writes on its own. Once one word differs, the two stories go their own way.
BEGINNING OF THE STORY
—
ORIGINAL MODEL (32 BITS / WEIGHT)
COMPRESSED MODEL (4.21 BITS / WEIGHT)
STEP 4 — WHY THIS IS A PROCESSOR, NOT A ZIP FILE

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.

MEMORY READ— 
32-BIT WEIGHTS REBUILT0codes + one scale per 16 weights
SAME RESULT AS UNPACK-THEN-COMPUTE— 
outputon compressed codesunpacked, then computedoriginal model
> For engineers: inside the compressed weights (tile x-ray, error-feedback predictor, O(N) scaling, number inspector)
// TILE X-RAY — 16 WEIGHTS = 16 SMALL INTEGER CODES + 1 SHARED POWER-OF-TWO SCALEUses the layer selected in step 4. Click a tile.
// INTEGER CODES k
Layer / row / tile:—
Shared scale g:—
Codes:—
Same 16 weights in FP32:512 bits
Weight value = k · 2g, exact IEEE-754 (the scale is the exponent field).
// FRONTIER PREDICTOR — EACH ROUNDING ERROR IS PUSHED INTO THE NEXT 64 COLUMNS, O(N)Replays the compressor on one real row of a layer compressed in this page.
REPLAY = COMPRESSED FILE—
WINDOW—
ROW TIME—
COST—
column committed ↓   columns of the window →colour = correction pushed forward
columnvalue enteringstored valueerror pushed forward
// O(N) — COMPRESSION AND LOADING TIME OF EVERY LAYER VS ITS SIZEFilled after compression.
—
02 // NUMBER_COMPRESSOR_XRAY

Exact IEEE-754 decomposition on PG(3,2) ⊂ 𝔽24

// CYCLOTOMIC_SIGN & SIGNIFICAND_CASCADE
Sign Phase ζ12060s:s = 1 (−1)
Dyadic Exponent e:-22 (field = 128)
Significand M = 120w + r:13,176,795
Winding w (≤ 4 atoms):109,806 [4 atoms]
Residue r (≤ 2 atoms):75 [2 atoms]
Clock 120 × Shadow 127:(75, 111)
IEEE-754 Bit-Exact Replay: PASS // 0xC0490FDB
// PG(3,2) ACTIVE 8 AXES & 15-LANE MONSTER CRT BUS
15 MONSTER PRIMES CRT RESIDUES [8, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 41, 47, 59, 71]