Tideway:面向消费级设备上 MoE 推理的阶段感知分层内存管理

·

研究论文 · 2026/11/19

TIDEWAY 是一个面向内存受限消费级设备的大规模 MoE 模型推理系统。它针对 GPU VRAM 和主机 RAM 容量紧张导致 MoE 权重在 VRAM、RAM 和 SSD 间溢出的问题,将主机 RAM 与 GPU VRAM 统一为单一内存池管理,并结合适应预填充和解码不同访问模式的阶段感知内存布局,以及在专家分页下优化 CUDA Graph 执行的执行引擎。在代表性消费硬件上的评估表明,TIDEWAY 平均实现端到端延迟 1.97 倍加速、首令牌时间(TTFT)2.40 倍加速,解码吞吐比最快基线高 1.61 倍。

该论文针对在消费级设备上本地部署大规模 MoE 模型时内存严重受限的实际问题,提出了统一内存池和阶段感知布局等创新方法,并在真实硬件上取得了显著的性能提升,对推动 MoE 模型在边缘设备上的应用具有重要价值。

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 .

阅读原文

参与讨论