Unweight: how we compressed an LLM 22% without sacrificing quality
Quick Answer
Cloudflare's Unweight compresses LLM model weights by 15-22% without quality loss, enhancing GPU memory efficiency and enabling faster inference.
Quick Take
Initial tests on Llama-3.1-8B show ~30% compression of MLP weights, resulting in ~3 GB VRAM savings.
Key Points
- Unweight achieves lossless compression of model weights, crucial for GPU memory efficiency.
- The system selectively compresses only the exponent bytes of weights, leaving others intact.
- Initial results indicate a 15-22% reduction in overall model size and VRAM savings.
- Huffman coding is used to exploit redundancy in exponent values for effective compression.
- Unweight enables more models to run simultaneously on a single GPU, reducing inference costs.
Source Excerpt
Running across Cloudflare’s network requires us to be smarter and more efficient about GPU memory bandwidth. That’s why we developed Unweight, a lossless inference-time compression system that achieves up to a 22% model footprint reduction, so that we can deliver faster and cheaper inference than ever before.
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Cloudflare AI
See more →
Temporary Cloudflare Accounts for AI agents
Cloudflare introduces Temporary Accounts on Cloudflare Workers, enabling AI agents to deploy live Workers instantly using 'wrangler deploy --temporary'. This feature removes barriers for AI agents, allowing them to operate more efficiently in real-time environments.




