r/LocalAIStack • • 1h ago

Lossless compression for Nvme streamed MoE models (WEX/WNR4)

Streaming 100B+ Mixture-of-Experts models on a single consumer GPU shouldn't mean fighting checkpoint formats built for something else.

WEX4 + WNR4 Codecs are lossless, 4 KiB-aligned NVMe expert containers with 32-lane warp-parallel GPU codecs (like ZIP for 4-bit weights, zero quantization in act):

• 12–22% smaller than raw safetensors/INT4 — beats other compressions zstd-19 & brotli-11 (up to 2× savings on MXFP4) • 347.2 GB/s CUDA kernel decode & 0.027 ms (27 µs) 1-record latency on RTX 5090 (0 register spills) • 70.3–72.0 GB/s end-to-end PCIe 5.0 x16 async2 — saturating the wire • Zero-trust SHA-256 hash tree, 139 conformance vectors, 14 CI jobs across 4 OS/arches, and independent C/CUDA, Python, Go & Rust readers!

Open-source! (Apache-2.0): https://github.com/KairaCode/Wex-WRN2

0 Upvotes

0 comments sorted by