Developer open-sources nf12: lossless 12-bit compression for BF16 models

Developer AlpinDale has open-sourced the nf12 library, which losslessly compresses BF16 model weights into fixed-length 12-bit encodings. The approach is based on Together Compute's NyoomFloat12 paper (authors Liberman, Fang, Zhang, Dao, Fu, 2026) and supports GPUs from Ampere through Blackwell. Notably, the compression is fully lossless: decoded weights are bit-for-bit identical to the original BF16 values, and model outputs are exactly the same under an identical execution pipeline.

Confirmed

Why it matters

Quantization usually trades accuracy for memory and speed, but NF12 offers bit-exact lossless compression, giving users roughly a quarter of memory savings plus corresponding bandwidth gains at no precision cost. If the vLLM integration merges, mainstream inference stacks will be able to load NF12-format models directly — a practical win for LLM deployment costs.

2026-11-07 ~ 2026-11-07 · 10 related posts

Primary sources