retrANSMIT: lossless BF16 weight compression cuts llama.cpp VRAM use by ~30%
mossy_troll_84 · reddit · 2026-12-03
A developer released retrANSMIT 0.1.0 (MIT), a lossless BF16 weight compression codec with custom CUDA kernels for llama.cpp — no quantization, no GGUF changes, 30% VRAM savings.
- How it works: BF16 exponent distributions are highly non-uniform, so exponents are compressed pairwise with rANS entropy coding (plus a single-exponent model for rare pairs); sign and mantissa bits are stored unchanged.
- Pipeline: compression happens on-GPU during model loading in small chunks, no offline conversion. Token generation decodes weights inside the CUDA matrix-vector kernel without writing decompressed matrices to global memory; prompt processing decodes into a 64 MiB-capped buffer followed by cuBLAS. Both paths reconstruct weights bit for bit.
- Results (RTX 5090): Qwen3.5-4B 8.4→5.8 GB (-31%), Apertus-8B -32%, Gemma 4 12B -32%, Mellum 2.1 12B (MoE) -29%.
- Cost: generation at 66-72% of uncompressed BF16 speed; prompt processing retains 84-93% throughput for 2048-token prompts; slower loading.
Enable with --compression on; repo includes the codec, kernels, tests, and an integration patch for llama.cpp b12900, plus prebuilt Linux binaries for RTX 50-series.
More from Infra
- MiniCPM5 hits 52 tok/s on a phone — but 30 tok/s once squeezed to 3GB — AIFlow_ML · 2026-12-04
- Baseten raises $3B Series G at $30B valuation with NDR over 400% — saranormous · 2026-12-04
- Huang testimony clash: Megaspeed no-sell listing vs. 'counted every GPU' claim — ShakeelHashim · 2026-12-04
- Predicting the PQC rollout: OS updates, free cloud certificates, insecure-crypto toggles — kingslyj · 2026-12-04
- MiniMax details 78-page compute-constrained scaling report: 3T params, 66B active — xeophon · 2026-12-03
- Global Phone Shipments Plunge 22% as AI Memory Crisis Reshapes Industry — 智东西 · 2026-12-03