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.

630.1 GB/s
RTX 2080 Ti CUDA (616 GB/s bus, 1.06x stock PyTorch transformers)
68.95%
Qwen2.5-7B fine-tune lineage (15.23 -> 4.73 GB, 4.97 bpw, 4/4 SHA-256)
-1.36 GB
Granite-3.2-2B fits losslessly (63 tok/s) where raw 5.07 GB BF16 OOMs
221.5 GB/s
Apple M2 Pro Metal 3 peak (200 GB/s bus, up to 1.47x chat, 41.4x TTFT)

Decode trace

Recorded on Apple M2 Pro Metal 3 at true token cadence with live on-GPU KV25 compression and 0 token differences.

Speed: -- RAM: -- Token diffs: 0 / 96 Disk: --
Raw BF16 -- tok/s
RAM
-- MB
Ready 0 tok
Korthil SP-WIN3 v2 DONE FIRST-- tok/s
RAM
-- MB
Ready 0 tok

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.

Sign (1b) Exponent (8b -> 3b window) Mantissa (7b)
Bits per weight (lossless)
Standalone weights hit a 10.56 bpw Shannon floor. KV-caches and fine-tunes go further via history and parent correlation.
Raw BF1616.00 bpw
SP-WIN3 v2 (GPU weights)11.37 bpw (-28.9%)
Standalone Shannon floor10.56 bpw (-34.0%)
CKV6 v2 (2K KV-cache)9.10 bpw (-43.1%)
Fine-tune lineage (Qwen2.5-7B)4.97 bpw (-68.9%)

Benchmarks

Measured locally with isolated timings and SHA-256 or bit-exact GPU unpack verification.

NVIDIA RTX 2080 Ti (CUDA sm_75)
Ubuntu 22.04 x86_64 · 616 GB/s GDDR6 bus
Raw BF16 (DeepSeek-R1-1.5B)6.75 ms
526.4 GB/s
Korthil CUDA (Qwen3-0.6B)2.57 ms · 1.17x
584.5 GB/s
Korthil CUDA (DeepSeek-R1-1.5B, B=1)5.64 ms · 1.19x
630.1 GB/s
Red line: 616 GB/s physical GDDR6 bus (axis max 700).
Apple M2 Pro (Metal 3)
macOS 15.7.3 ARM64 · 200 GB/s unified bus
Raw BF16 (SmolLM2 16K KV)1.00x
173.8 GB/s
Korthil KV25 (DeepSeek 16K KV)1.23x · -27.8% RAM
213.2 GB/s
Korthil KV25 (SmolLM2 16K KV)1.27x · -27.7% RAM
221.5 GB/s
Red line: 200 GB/s physical LPDDR5 bus (axis max 240).
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.

# Cross-OS recovery test: packed on macOS ARM64, restored on Ubuntu 22.04 x86_64 $ ls -lh bin/korthil-recover && ldd bin/korthil-recover -rwxr-xr-x 1 rob rob 47K bin/korthil-recover libstdc++.so.6, libm.so.6, libgcc_s.so.1, libc.so.6 $ PATH="" ./bin/korthil-recover recover smollm2_360m.korthil restored.safetensors && sha256sum restored.safetensors e6bffe7435d7ddc10fd3b9a9efd429dafbacb1cb17015fb5562664e7532bf86e restored.safetensors

Limits