LazyWeights: Decode-on-Demand Edge LLMs
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 mm2 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).
Create a lesson
Metadata
- Categories
- cs.LG, cs.AR, cs.CL, cs.IT, math.IT
- Comments
- 6 pages, 1 reference page, 5 figures, 6 tables
Related papers
EEG Decoding in Context: A Framework for Tuning-Free EEG Foundation Models
Shared title terminologycs.LGHao-Run Cai, Si-Yang Liu, Han-Jia Ye et al.
NeuroMotion: Aligning EEG to Discrete Motion Primitives for Continuous Motion Decoding
Shared title terminologycs.LGYi Liu, Qi Zhang, HaoLin Li et al.
Near-Far Attention: Region-Aware Sparse Retrieval for Long-Context LLM Decoding
Shared title terminologycs.LGYuanShuo Wang, Jianchao Tan, Lei Gong et al.
PackLoop: Row-Packed Self-Speculative Decoding for Looped Language Models under Concurrency
Shared title terminologycs.LGRunguo Li, Dezhen Lu
Fast 4-bit KV-Cache Decoding on Hopper GPUs: Why Existing Kernels Are Slow and How to Fix Them
Shared title terminologycs.LGJian Zhang
LoopFill: Pipelined Multi-Token Speculative Decoding for Looped Transformers
Shared title terminologycs.LGSiqi Zhu, Suozhi Huang, Yi Zhao et al.