LazyWeights: Making Edge Devices Run Huge AI Models Fast
Original paper: LazyWeights: Decode-on-Demand Edge LLMs
"Imagine an automated warehouse shipping system where items are tightly compressed for transit and then instantly unpacked by a specialized assembly station right at the doorway. Similarly, LazyWeights compresses AI model data during travel and uses a tiny dedicated hardware decoder to unpack it on demand just before the processor uses it."
This breakthrough shatters the hardware memory limits that currently prevent smartphones and edge devices from running powerful AI models locally. By drastically cutting energy consumption and latency, it paves the way for lightning-fast, highly private AI assistants running directly on everyday gadgets without cloud dependency.
- Compresses AI model weights tighter than existing formats without losing accuracy.
- A tiny custom hardware decoder unpacks data instantly right before processing.
- Cuts device energy usage and latency by up to half on edge hardware.
📑 Original arXiv Technical Abstract
Memory determines which large language models (LLMs) an edge device can run and how fast it runs them: capacity limits a 4 GB Jetson Nano, and bandwidth limits an 8 GB Jetson Orin Nano Super. Deployed weight formats (GPTQ, AWQ, and the GGUF K- and I-quants) spend the same number of bits on every integer code of a matrix, although the codes are far from uniform. We present LazyWeights, which keeps these formats, tunes GPTQ so the codes compress, Huffman-codes them losslessly in interleaved lanes, and decodes them on demand in a small unit between DRAM and L2, so GPU kernels run unchanged and DRAM moves only coded bytes. At 1% and 3.5% perplexity budgets, coded Phi-3-mini, Mistral-7B and SmolLM-1.7B are 5.7-31.4% smaller than the best GGUF format. A bit-exact 0.21 mm^2 ASIC decoder unit (1 GHz, 7 nm) cuts Orin latency and energy per token by up to 36% and 38% (54% and 44% with prompt-lookup speculation). On the Nano, LazyWeights needs 58-64% less time and 53-57% less energy per token than the GGUF runtime on the CPU, and runs a streamed Mistral-7B 6.6x faster at 3.89 bits per weight. A Huffman decoder beats an rANS decoder in rate and area at equal throughput, and the unit runs bit-exact on a Zynq UltraScale+ FPGA (AMD ZCU102).
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.