Lossless BF16 compression that executes directly on the GPU.
Korthil compresses BF16 weights, KV-caches, and fine-tune deltas without quantization, then unpacks inside Apple Metal 3 and NVIDIA CUDA registers. The 47 KB recovery binary is open-source under MIT so every archive restores the exact original Hugging Face .safetensors SHA-256 with zero lock-in.
Decode trace
Recorded on Apple M2 Pro Metal 3 at true token cadence with live on-GPU KV25 compression and 0 token differences.
BF16 bit layout
Measured across 2.89B real weights, the 7-bit mantissa is near-random (6.972 bits of entropy) while the 8-bit exponent clusters around 2.630 bits.
Benchmarks
Measured locally with isolated timings and SHA-256 or bit-exact GPU unpack verification.
| Workload | Hardware | Size | Throughput / Speed | Check |
|---|---|---|---|---|
| Qwen2.5-7B 4-shard lineage | Ubuntu x86_64 | 15.23 -> 4.73 GB (-68.95%) | 4.97 bpw (3.22x lossless) | 4/4 shards SHA-256 exact (47 KB) |
| DeepSeek-R1-1.5B PyTorch CUDA | RTX 2080 Ti | 3,556 -> 2,685 MB (-871 MB) | 100.7 vs 95.0 tok/s (1.06x) | 64/64 exact tokens, 0.0 logit diff |
| Granite-3.2-2B OOM vs. Fits | RTX 2080 Ti (4.59 GB free) | Raw 5.07 GB OOM -> 3.71 GB (-26.9%) | 63.0 tok/s live (5.6s pack) | 280/280 layers bit-exact unpack |
| DeepSeek-R1-1.5B CUDA GEMM | RTX 2080 Ti | 3,554 -> 2,525 MB (-28.9%) | 630.1 GB/s (B=1 1.19x, B=2 1.05x) | Bit-exact unpack, cos=1.0 |
| DeepSeek-R1-1.5B (4K / 16K) | Apple M2 Pro | 3,554 -> 2,526 MB (-28.9%) | 1.22x at 4K (200.5 GB/s), 1.10x at 16K | 0 diffs, -1.05 to -1.27 GB (32K) |
| Qwen3-0.6B (4K / 16K / 32K) | Apple M2 Pro | 1,503 -> 1,073 MB (-28.6%) | 1.15x (4K), 1.10x (16K), 1.14x (32K) | 0 diffs, -1.38 GB RAM at 32K |
| CKV6 v2 KV (SmolLM2 2K) | RTX 2080 Ti | 83.9 -> 50.3 MB (-40.1%) | 13.74 GB/s (19,840 threads) | GPU SHA-256 exact |
| Prefix cache resume (2K doc) | Apple M2 Pro | 83.9 -> 54.4 MB (-35.2% vs Zstd 24.8%) | 11.2 ms GPU restore (41.4x TTFT) | SHA-256 exact, 0 token diffs |
Open-core recovery and engine access
The recovery binary is MIT open-source and compiles with standard Apple Clang or GCC (zero dependencies). The GPU execution engine (Metal 3, CUDA, PyTorch, KV25, CKV6, and lineage packer) is available via commercial early access.
Limits
- Standalone BF16 entropy floor: Random low mantissa bits cap lossless single-model savings near 34.0% (10.56 bpw). The 40% to 69% ratios apply to KV-caches and fine-tune lineages, not standalone weights.
- KV cross-layer speed tradeoff: Zero-calibration
kv26-tokdecodes all layers in parallel (7.61 GB/s Metal 3, 13.74 GB/s CUDA). Adding cross-layer prediction (kv26-xlayer) saves ~3% more space but runs sequentially across layers (0.137 GB/s). - Small matrices, batch scaling, and extreme context: On RTX 2080 Ti, batched CUDA beats raw BF16 at B=1 (1.19x / 630.1 GB/s DeepSeek, 1.14x Qwen3) and B=2 (1.05x / 1.03x) before compute-bound B=4,8 runs 0.82x to 0.97x while keeping -28.9% VRAM; tiny SmolLM2-360M matrices (320x960) ran 0.97x. On M2 Pro, all three models run 1.14x to 1.22x faster at 4K and Qwen3 stays 1.10x to 1.14x faster through 32K (-1.38 GB); SmolLM2 16K/32K runs 0.96x and DeepSeek 32K runs 0.98x while cutting RAM by 26% to 29%.
- Accumulation order and H100 estimates: Archived weights and KV pages are SHA-256 bit-exact across all 65,536 BF16 bit patterns; deferred sparse escape addition in fused matmuls shifts FP32 reduction order by 4e-7 to 4e-5 (0 greedy token diffs, 0.0 max logit diff in PyTorch). H100 TCO figures in internal docs are modeled projections, not H100 measurements.