Tideway: Phase-Aware Tiered Memory Management for MoE Inference on Consumer Devices
Yifei Wang, Tsun-yu Yang, Yechen Xu, Hancheng Ye, Qinsi Wang, Baijun Zhou, Tingjun Chen, Hai "Helen" Li, Danyang Zhuo, Yiran Chen
Abstract
Large language model (LLM) agents are rapidly becoming a dominant paradigm for AI applications. Recently, there is a growing demand to deploy large-scale Mixture-of-Experts (MoE) models locally on consumer PCs to balance data privacy, API costs, and inference efficiency. However, unlike datacenter servers with abundant DRAM, consumer devices are tightly constrained in both GPU VRAM and host RAM, forcing massive MoE weights to spill across VRAM, host RAM, and SSD. Under such spilling, we observe that existing systems fail to fully utilize this memory hierarchy, treating the tiers as independent caches and thrashing in inference. We present TIDEWAY, a system for efficient inference of large MoE models on memory-constrained consumer devices. Our core insight is to manage host RAM and GPU VRAM as a unified memory pool. Within this pool, TIDEWAY couples phase-aware memory layouts, which adapt to the distinct access patterns of prefill and decode, with an execution engine that optimizes CUDA Graph execution under expert paging. Our evaluations on representative consumer hardware with frontier MoE models demonstrate that TIDEWAY significantly outperforms state-of-the-art systems. On average, TIDEWAY achieves speedups of 1.97x in end-to-end latency and 2.40x in Time-to-First-Token (TTFT), along with 1.61x higher decode throughput against the fastest baseline. Our source code is publicly available at https://github.com/Afterglow231/Tideway .
Create a lesson
Metadata
- Comments
- 12 pages, 11 figures. Preprint
Related papers
EngineAgent: Agentizing On-Device LLM Inference Engines with Inference Stack Hierarchy Awareness and Hardware Abilities
Shared title terminologycs.OSZhengxiang Huang, Yujie Sun, Shengheng Chen et al.
mzCache: On-Device LLM Memory Management under Multitasking
Shared title terminologycs.OSHongseung Yu, Minsung Kim, Jongseok Park et al.
Who Should Own the Expert Cache? Kernel-Managed Tiering for Trillion-Parameter MoE Inference
Shared title terminologycs.OSYuan Si, Yufeng Lin, Daming Li et al.
MobiInfer: Accelerating On-Device GUI Agents with Workload-Aware Inference
Shared title terminologycs.OSSiming Chen, Erhu Feng, Dahu Feng et al.
MemSpec: Memory-Aware Runtime for Adaptive Draft Scheduling in Speculative Decoding on Edge Devices
Shared title terminologycs.OSEunjeong Kim, Yeong Jun Jeon, Myeonggyun Han
CapBuddy: Efficient Physical Memory Management for Capability-based Resource-controlling Microkernel
Shared title terminologycs.OSZhuang Lu, Guangtao Zhu, Shijun Zhao et al.