Ingot losslessly compresses BF16 LLM weights to 10.43 bits, bit-identical via sha256

Electrical_Ninja3805 · reddit · 2026-12-06

A developer released Ingot, an AGPL-3.0 C codec that losslessly compresses safetensors/GGUF model files and reconstructs the exact original (sha256-verified, no output change).

Measured results (whole-model, per-shard checks)

Comparisons: zstd -3 gives 12.46 bits, ZipNN 10.62, DFloat11 10.61 on the same weights (its paper reports 10.81-10.91). Ingot is best at 10.43.

How: sign+mantissa of BF16 weights has almost no entropy left, so Ingot predicts each weight from up to 8 "partner" weights in earlier layers/tensors (found by encoder search, exact integer arithmetic), then codes the residual with rANS. The gain over plain entropy coding is only 0.077 bits/weight; the floor for independent weights is 10.5.

Costs: storage/download format only, no inference speedup. Encoding is slow (17,319 s for 27B); decoding takes 4,683 s but streams, so files can rebuild while downloading.

Original post →

More from Infra

Infra channel →