NeurIPS 2026 · Live demo

FTerViT.

A fully ternary Vision Transformer: every weight, including patch embedding, LayerNorm and classifier head, is −1, 0 or +1. It runs right here in your browser. No server, and your image never leaves the page.

Quantization
W2A8
int8 activations
Ternary coverage
100%
incl. norms, head
Compression
15.2×
vs. FP32
ImageNet-1K
82.43%
DeiT-III-Small 384
CIFAR-10
97.43%
DeiT-Tiny
Runs in
Browser
WASM, no server
01 /

Classify an image

Or try an ImageNet-1K val image
Top-5 predictions

Pick an example or upload an image.

02 /

What gets compressed

Loading weights…
Weights
+1 0, skipped −1 stays FP32 Drag to rotate · hover a cell

Every cell is a real weight from the DeiT-Small checkpoint above: every 48th row and column of each matrix. Cell height is bits per weight, 32 for FP32 and 2 for ternary, so the flattening is the compression. The moving cubes are one token's activations: blue while float, dark while int8 or integer sums. FP32 colours are the latent weights over their absmean scale before rounding. Not shown in full: the position embedding, RMSNorm gains, patch-embedding bias and channel scale stay FP32 ( in total).