Norn: Context-Length-Aware Optimization of Weight and KV Cache Placement for Offloaded LLM Inference
Abstract
Offloading model weights and the key-value (KV) cache to host memory enables large language models (LLMs) to run on a single memory-constrained GPU. As the KV cache grows during decoding, GPU memory requirements and the costs of KV cache transfers and attention computation change. However, existing offloading methods generally use static computation assignments and placements of model weights and the KV cache, preventing them from adapting to these changes and degrading inference performance. We propose Norn, a context-length-aware offloaded LLM inference method. Based on offline profiling, Norn co-optimizes computation assignments and placements at the sublayer level, precomputing multiple execution plans and their switching points. During decoding, Norn switches plans as context length increases, overlapping computation and data transfers without knowing the output length in advance. For prefill, Norn employs operator-major chunked prefill to avoid repeated weight transfers and automatically selects the chunk size. Experiments with Qwen3-14B and Qwen3-32B on two single-GPU systems show up to a 16.8 speedup in end-to-end latency over Pipelined Sharding and a 4.2 speedup over its oracle variant with known input and output lengths.
Create a lesson
Metadata
- Comments
- Preprint
Related papers
CCAMoE: Cache-Conditioned Adaptive Inference for Offloaded MoE
Shared title terminologycs.DCXuan Zhang, Haisheng Tan, Han Tian et al.
Twindex: Index Cache Offloading with Coarse-to-Fine Selection for Long-Context Sparse-Attention Serving
Shared title terminologycs.DCYuxuan Xia, Jiakun Fan, Han Meng et al.
CGSpec: Consistency-Guided Speculative Decoding with Overlap-Aware Verification Scheduling for Edge-Cloud Inference
Shared title terminologycs.DCYuanbing Ouyang, Xiaoli Liu, Shirong Wei et al.
IsoMoE: Placement-Invariant Hybrid CPU-GPU MoE Inference with Lossless 12-bit Experts
Shared title terminologycs.DCHang Gu, Teng Wang, Zhendong Zheng et al.
IA-MoE: An Intensity-Aware Mixture of Experts for DNN Inference
Shared title terminologycs.DCMeiyan Zeng, Sasu Tarkoma, Xiaoli Liu
Asymmetric Speculative Decoding: Unlocking In-Context Learning in Draft Models
Shared title terminologycs.DCGuang Huang, Zeyi Wen