Summary
The paper targets local inference of large Mixture-of-Experts models on consumer PCs whose VRAM and host RAM together cannot hold the model, so expert weights spill to SSD. It argues that existing engines (FreeToken, llama.cpp, SSD-LLaMA, FlashMoE) manage VRAM and RAM as independent caches. Under that design, long-prompt prefill scans flush the RAM cache and paged decode loses CUDA Graph efficiency (§2, Figs 2–3).
Tideway manages VRAM and RAM as one deduplicated expert pool. It uses replica-aware replacement (free slot → reclaimable duplicate → LRU) and selective victim writeback (§4.3). It switches between a prefill layout, with RAM anchors plus a small SSD streaming window, and a decode layout (§4.2). The execution engine pipelines layer-wise expert delivery over a VRAM double buffer during prefill (§5.1) and splits each layer into three CUDA Graph segments so that host-side paging can run between replays during decode (§5.2–5.3).
On an RTX 5090 with 16–128 GiB of RAM budget, the evaluation covers Qwen3.6-35B-A3B, Gemma4-26B-A4B and DeepSeek-V4-Flash, 270 fixed-shape configurations and eight TraceLab coding-agent sessions. It reports average speedups over the fastest baseline of 1.97× end-to-end, 2.40× TTFT and 1.61× TPOT, with up to 3.18× end-to-end. A chunk-size sensitivity study (Fig 10) and a three-stage ablation (Fig 11) complete the evaluation.
Strengths
Problem is isolated with concrete measurements
§2.2, Figs 2–3
§2.2 separates two distinct bottlenecks on one model and hardware combination. Prefill SSD thrash: baselines get 86–99% of prefill expert traffic from SSD vs 52% for Tideway, against a 45% static oracle (Fig 3a). Decode orchestration overhead: Fig 3b breaks down per-token decode time. I recomputed every Fig 3 label from the vector bars (check 07), including llama.cpp's 92% CPU-compute share (91.6%). This decomposition gives a clear rationale for each of the two mechanisms.
Simple, well-illustrated replacement policy that matches the released code
§4.3, Fig 5; src/tideway/offload/runtime.py:85-127
Replica-aware replacement with lazy duplicate reclamation and selective victim writeback is easy to reason about, and Fig 5 walks through it clearly. I drove the released
RamTierclass (runtime.py:85-127) through the Fig 5 scenario. It reproduces the paper's 7 vs 9 distinct experts, the anchors {D,K,M,P}, and the README's 'SSD reads 9 → 6' (check 09). Static inspection confirms the free → duplicate → LRU order (check 10).Per-setting results are internally consistent
§6.1, Fig 7; §6.3, Fig 10; §6.4, Fig 11