# Device-Independent Neural Compression

> Source: <https://nathan.rs/posts/tunazip/>
> Published: 2026-11-22 18:00:00+00:00

**Key takeaway:** Tufazip's 163M-parameter transformer compressed 1 GB of Wikipedia to 105 MB losslessly, 2-3x better than zip or xz, but its output decodes only on the exact hardware and software stack used to encode it — two NVIDIA B200s with specific PyTorch, CUDA and cuDNN versions.

A few days ago Tufa Labs [tweeted](https://x.com/tufalabs/status/2123350647273631907) that they’d compressed 1 GB of Wikipedia to 105 MB, losslessly, beating other compressors like zip or xz by 2-3x. Their compressor, **tufazip**, isn’t an algorithm in the usual sense. It’s a 163M-parameter transformer that trains on the file as it compresses it, with an arithmetic coder turning its predictions into bits.[1](#fn:1)

Compressing with a neural network has one problem: the output only decodes on the machine that encoded it. Floating-point results differ from one GPU to the next, and a neural compressor is one long floating-point computation. Tufazip’s launcher checks for exactly two NVIDIA B200s and exact versions of PyTorch, CUDA and cuDNN, and refuses to run otherwise. A file that only opens on one model of GPU isn’t much of an archive.
