Manuscript Offprint
arXiv:2610.40305Rimuru: Unified Memory Management for Modern LLM Serving via Elastic Expert Offloading
Zhiyuan Fang
Sun Yat-sen University
Zhuhai, China
Bin Wang
Independent Researcher
Shanghai, China
Zicong Hong
EPFL
Lausanne, Switzerland
Dingyang Li
Sun Yat-sen University
Zhuhai, China
Weixi Zhu
Independent Researcher
Shanghai, China
Wuhui Chen
Sun Yat-sen University
Zhuhai, China
Peng Cheng Laboratory
Shenzhen, China
Jianfeng Zhong
Sun Yat-sen University
Zhuhai, China
Cunshu Ni
Independent Researcher
Hangzhou, China
Zibin Zheng
Sun Yat-sen University
Zhuhai, China
Abstract
Modern LLMs strain device memory through large model weights and attention states, particularly in resource-constrained scenarios. Existing systems separately provision memory for model weights and attention states, imposing fixed fixed boundaries that cannot adapt to the changing memory demands of workloads. Under heavy workloads, insufficient state capacity limits request concurrency and reduces throughput; under light workloads, idle memory in one region cannot be reallocated to another, wasting device memory. Meanwhile, modern LLM architectures introduce heterogeneous tensors with diverse layouts and lifetimes, further complicating memory management. These problems motivate unified memory management for heterogeneous tensors. However, a shared pool alone does not make memory directly reusable across tensors with different allocation granularities and execution layouts.
This paper presents Rimuru, a modern LLM serving system that unifies memory management through elastic expert offloading. Rimuru establishes a shared page pool to enables elastic memory sharing across heterogeneous tensors. To accommodate different allocation granularities, Rimuru introduces memory views that allow each tensor type to interpret the shared memory space using its own page size and page table. Furthermore, Rimuru combines huge-page alignment with a multi-level page allocator that splits and merges pages on demand, enabling cross-type capacity reuse while minimizing fragmentation. A page-table-aware fused MoE kernel directly accesses non-contiguous expert weights, avoiding copies into contiguous execution buffers. Building on these mechanisms, Rimuru employs a workload-aware adjuster that dynamically reallocates pages across tensor types according to runtime demands, while coordinating changes in expert residency with the prefetching and execution pipeline. Implemented on top of vLLM, Rimuru remains compatible with modern LLMs. Evaluations show that Rimuru achieves up to baseline throughput and reduces TTFT by 98.1% on average.
Keywords
LLM Serving; Memory Management; MoE; Offloading
However, due to cost constraints, limited device memory remains a critical bottleneck [3, 28, 29]. Conventional serving systems keep the complete model weights on the devices, which can exhaust the available memory. What's worse, this affects more than whether a model can be loaded. Serving requests retain intermediate states across forward steps, and batching multiple requests requires substantial device memory, especially for modern applications with long context lengths of up to 1M tokens [35]. As shown in Figure 1(a), the remaining memory space for attention states is limited, making it difficult to support large-batch inference and resulting in low throughput. This issue is particularly pronounced as most modern large-scale models adopt the MoE architecture, which provides strong performance but incurs substantial memory demands. For example, deploying DeepSeek-V4-Flash [38] on eight NVIDIA A100 GPUs leaves only about 7 GB of device memory per GPU for attention states, sufficient to support just two concurrent requests with 1M-token contexts.
To address memory constraints, expert offloading provides an effective solution [5, 10, 39, 42]. These approaches leverage the sparse
Dense Experts KV SSM Conv Free
(a) Conventional serving systems

Figure 1: Different memory management. (a) Conventional serving systems leave little memory for attention states. (b) Expert offloading creates headroom but still exist a fixed boundary between the expert cache and attention states. (c) Rimuru with unified memory management.
activation property of experts, retain a subset of experts on the device and keep the remaining experts in host memory. Then through expert caching, prediction, or CPU-GPU co-execution, they reduce or hide on-demand loading overhead. As a result, as shown in Figure 1(b), the reduced weight footprint creates additional capacity for larger batch sizes and can improve serving throughput. However, existing approaches still lack sufficient elasticity. Modern LLM serving systems commonly adopt PagedAttention, which manages KV caches through paged allocation within a dedicated memory region while keeping model weights outside the managed memory pool [18, 43, 44]. Such memory isolation fails to accommodate the dynamic memory demands of serving workloads [30], resulting in low memory utilization. As illustrated in Figure 1(b), this design maintains a predefined fixed boundary between different tensor types. During workload bursts, attention states cannot reclaim capacity held by cached experts that could otherwise be evicted, restricting request admission. Under light workload, idle state-pool capacity cannot retain additional experts to reduce weight transfers. We further investigate the impact of this limitation on serving performance in Section 2.3, where our case study shows that elastic memory sharing further reduces total workload completion step by approximately 30%. This situation thus reveals a broader problem: heterogeneous tensors should share device memory elastically under dynamic workloads.
More broadly, this problem intensifies as modern LLM architectures become increasingly heterogeneous. Recent models combine MoE layers [11, 16], shared and fine-grained experts [6, 23, 40], and linear-attention or Mamba layers [14, 20, 33]. Consequently, memory management for modern LLMs must accommodate tensors with increasingly diverse layouts, lifetimes, and access patterns, rather than one dominant state such as the KV cache.
A natural way to break this isolation and improve memory utilization is to manage heterogeneous tensors in a unified memory space, dynamically adjusting capacity for each tensor type. Memory released by one tensor type must be directly reusable by another without costly tensor reorganization. However, enabling such sharing introduces three key challenges. First, heterogeneous tensors require different allocation granularities and indexing schemes. Small pages support fine-grained attention-state allocation but increase mapping overhead for large experts, whereas large pages waste capacity on small states. Second, page-based storage can distribute cached experts across separate pages, whereas conventional fused MoE kernels expect a regular, contiguous expert-weight layout. Gathering their weights into contiguous execution buffers restores the expected layout but adds local copies overhead. The execution path must therefore locate each routed expert across these pages without repeatedly repacking weights. Third, adjusting the expert cache requires not only adapting to changing workload demands but also balancing request concurrency against weight-loading overhead. Increasing concurrency requires reclaiming memory from cached experts, but excessive expert eviction incurs substantial I/O overhead. Moreover, page reclamation and expert residency updates must be coordinated with asynchronous prefetching and execution to avoid cache oscillation, redundant data transfers, and I/O contention.
To address these challenges, we present Rimuru, a modern LLM serving system with unified memory management designed to improve throughput in resource-constrained environments. The key idea of Rimuru is to manage device memory in a shared pool across heterogeneous tensors and dynamically adjust memory allocation through elastic expert offloading, maximizing the utilization of expensive device memory.
Specifically, Rimuru introduces memory views to decouple shared physical memory from tensor-specific allocation and addressing. Each tensor type interprets the underlying storage through its own memory view, with a dedicated page size and page table. This multi-view memory layout accommodates different tensor shapes and sizes without imposing a uniform allocation granularity. Rimuru further defines a huge-page size as the least common multiple of the page sizes across expert and SSM, providing aligned boundaries that prevent overlap between pages of different tensor types. To enable memory sharing, Rimuru employs a multi-level page allocator that organizes pages by size and supports on-demand allocation and reclamation. This design avoids assigning unnecessarily large pages to fine-grained tensors, thereby reducing internal fragmentation. To preserve execution efficiency, Rimuru extends the fused MoE kernel with page-table indirection, allowing it to access expert weights directly from cache pages or loading buffers without copying them into contiguous execution buffers. Building on unified memory management, Rimuru employs a workload-aware expert cache adjuster that dynamically changes the expert cache size in response to workload demands. During request bursts, it reduces expert residency to free memory for additional concurrent requests, improving throughput. As memory becomes available, it restores cached experts to reduce CPU-GPU data transfers and serving latency. As illustrated in Figure 1(c), Rimuru elastically reallocates memory across heterogeneous tensors to adapt to changing workloads, improving memory utilization and serving performance.
To summarize, we make the following contributions:

(a) Classic.
(b) Modern LLM.
Figure 2: A comparison of the architecture of a classic transformer-based LLM and a representative modern LLM.
-
We identify growing tensor heterogeneity, and a fundamental mismatch between dynamic memory demand and static memory isolation in modern LLM serving systems.
-
We design and implement Rimuru, which combines tensor-specific memory views, multi-level page allocation, and page-table-aware expert execution to support efficient cross-type memory reuse. Building on this unified memory substrate, Rimuru elastically adjusts expert residency according to runtime memory demands while coordinating asynchronous expert loading and execution.
-
We conduct comprehensive experiments across diverse platform scale, models and workloads. Compared with baselines, Rimuru achieves up to throughput and reduces TTFT by 98.1% on average.
2 Background and Motivation
2.1 Modern LLM Architectures and Tensor Heterogeneity
The conventional dense Transformer architecture consists of repeated blocks of self-attention and dense FFN modules, as illustrated in Figure 2(a). Its primary dynamically managed state during inference is the KV cache. To scale model capacity without proportionally increasing computation, modern LLMs increasingly adopt MoE layers [11, 16]. Recent architectures further incorporate shared experts and fine-grained expert partitioning to improve expert specialization [6, 23, 40]. Meanwhile, the demand for long-context inference has driven the adoption of linear attention and Mamba layers, which introduce persistent runtime states beyond the KV cache, including State Space Model (SSM) and convolution states [14, 20, 33]. As a result, modern LLMs increasingly combine heterogeneous layers rather than relying on a uniform Transformer architecture, as illustrated in Figure 2(b). This architectural evolution introduces tensors with diverse memory requirements, making efficient memory management increasingly challenging, particularly in resource-constrained environments.
2.2 Memory Management in LLM Serving Systems
Attention-State-centric Memory Management. We use attention states to refer to all persistent, per-request states maintained during inference, including the KV cache, as well as the SSM and convolution states in Mamba or hybrid attention models [20, 33]. Mainstream serving systems target large-scale distributed deployment, where attention states dominate device memory under high concurrency. Their memory management thus centers on attention states. To improve efficiency, modern frameworks adopt PagedAttention, which organizes attention states into pages allocated on demand from a global pool [18, 43], thereby largely eliminating fragmentation. Building on this, RadixAttention [44] exploits prefix sharing across requests by organizing KV cache in a radix tree, enabling efficient reuse and reducing redundant computation. PD-disaggregation frameworks [26, 27, 37, 45] further externalize attention states storage into a disaggregated memory pool accessible across prefill and decode stages, allowing KV cache to be managed, placed, and reused independently across stages and devices. Clearly, existing serving systems place strong emphasis on paged management of attention states. At the same time, they seldom explicitly manage the memory of model weights, which leads to suboptimal performance in resource-constrained environments, where model weights dominate GPU memory.
Expert-centric Memory Management. Expert offloading systems [10, 39, 42] are designed to serve MoE models in resource-constrained environments, where the large memory footprint of expert weights poses a major bottleneck. These systems therefore focus on expert memory management, primarily employing expert caching and prediction to reduce GPU-CPU data transfer overhead. Because expert activation patterns are often skewed, frequently activated experts are preferentially retained in GPU memory, with many systems adopting LRU-based policies for cache replacement. In contrast to caching, expert prediction is more challenging because expert activation depends on gating decisions that are difficult to predict [15, 31]. Nevertheless, prior studies have made substantial progress in improving prediction accuracy and reducing offloading overhead. Despite these advances, existing offloading systems primarily optimize expert memory management without jointly managing expert weights and attention states. This separation prevents memory capacity from being dynamically shared across tensor types, leading to inefficient device memory utilization. Unlike these systems, Rimuru enables unified memory management across heterogeneous tensors, allowing device memory to be dynamically reallocated according to workload demands. This is the key difference between Rimuru and prior work.
2.3 A Fundamental Mismatch: Dynamic Memory Demand vs. Static Memory Isolation
During MoE inference, memory demand is dynamic [30, 34]. First, workloads change over time, and both request arrival patterns and

(a) Dynamism of request arrival.
(b) Dynamism of request length. pN means the lengths of N% requests the corresponding y-axis value.
Figure 3: Request arrival rate and sequence length vary over time in a production workload.
sequence lengths can vary widely in practice [41, 45]. Figure 3 illustrates a representative example from a real production environment, where bursty traffic and long requests can abruptly increase memory demand [36]. Second, the memory requirements of different tensor types vary across inference phases. During the prefill stage, the model processes many tokens and activates nearly all experts, dominating memory usage, while the KV cache grows rapidly. During decoding, the number of active experts decreases, while the KV cache persists and continues to grow. These dynamics indicate that optimal device memory allocation must adapt continuously over time.
However, existing serving systems still manage expert caches and attention states in isolated memory regions, which fails to accommodate their dynamic memory demands. First, modern serving systems commonly adopt PagedAttention, which reserves a dedicated memory region for attention states and manages it through fine-grained page allocation. Although this design reduces fragmentation, it prevents memory sharing across tensor types, leading to memory underutilization. Second, existing expert offloading strategies typically employ fixed offloading ratios, lacking the flexibility to adapt to changing workloads. Under light workloads, unused memory in the attention-state pool cannot be used to cache additional experts and reduce weight-loading overhead. Under heavy workloads, the attention-state pool cannot expand by evicting cached experts, forcing requests to wait even when some expert-cache could be evicted. This inefficiency is particularly pronounced in resource-constrained environments, where device memory is scarce. These limitations motivate breaking memory isolation and enabling elastic memory allocation across heterogeneous tensors to improve memory utilization.
Case study. To quantify this mismatch, Figure 4 compares three progressively enhanced designs under the same model, memory budget, and request stream. Case (a) is vLLM [18], which is a representative conventional in-GPU serving system with PagedAttention. Case (b) represents an expert offloading system that implements the state-of-the-art offloading strategy of Fate [10] on top of vLLM. Case (c) represents Rimuru, which further enables unified memory management by elastic expert offloading.

(a) vLLM: resident model weights leave limited capacity for the KV cache. The maximum request concurrency is limited.

(b) Expert offloading on vLLM: a fixed expert cache leaves more, but still bounded, capacity for the KV cache.

(c) Rimuru: pages are allocated dynamically between the KV cache and experts.
Figure 4: GPU-memory usage and request concurrency while serving Qwen1.5-MoE-14B on one NVIDIA RTX 5090. All configurations serve the same ShareGPT requests [7], submitted at 10 requests/s, with GPU memory utilization capped at 0.9. Stacked areas show memory attributed to model weights and the KV cache; the line shows running-request concurrency. The horizontal axis reports forward steps.
In Figure 4(a), resident model weights occupy most of the GPU memory budget, leaving limited capacity for the KV cache. Peak concurrency reaches only 34 requests, and completing the workload requires approximately 2100 forward steps. Although some experts remain inactive during many of these steps, their occupied memory cannot be reclaimed to increase batch size due to the predefined memory boundary. In Figure 4(b), expert offloading frees GPU memory for a larger KV-cache pool, increasing peak concurrency to 74 requests and reducing the required forward steps to approximately 1300. However, the expert-cache capacity remains fixed regardless of workload changes. Under high workload, the KV-cache pool cannot expand by reclaiming memory from cached experts. Under low workload, unused KV-cache capacity cannot be used to retain additional experts and reduce weight-loading overhead. Thus, expert offloading alleviates the memory pressure from model weights but retains the rigid memory boundary between expert caches and attention states, limiting memory utilization.
Table 1: Tensor heterogeneity in representative modern LLMs. Shapes are reported for each expert's three projection matrix, the key and value tensors for one token, and an individual SSM or convolutional state.
| Tensor Type | Tensor Shape (single) | ||
|---|---|---|---|
| Qwen3-30B-A3B | Qwen3.5-35B-A3B | ||
| Expert | w1, w3 | [2048, 768] | [2048, 512] |
| w2 | [768, 2048] | [512, 2048] | |
| KV cache | [2, 4, 128] | [2, 2, 256] | |
| Mamba state | conv | / | [3, 8192] |
| SSM | / | [32, 128, 128] | |
In Figure 4(c), Rimuru adjusts expert residency to accommodate changing KV-cache demand. As concurrency grows, the expert-cache footprint contracts, releasing capacity for the KV cache. As requests complete and KV pages are freed, Rimuru restores cached experts using the returned capacity. The observed peak concurrency reaches 90, and the workload spans about 1000 forward steps. The changing boundary between cached experts and the KV cache in figure shows how shared capacity follows attention-state demand.
This case study reveals the memory waste caused by static memory isolation and its impact on serving performance. It also highlights the distinction between freeing device memory and enabling its dynamic reuse across heterogeneous tensors. Expert offloading provides additional capacity for attention states, whereas elastic sharing allows the division between expert caching and the KV cache to change with demand. In this workload, Rimuru supports higher peak concurrency and processes the request stream in fewer forward steps.
3 Challenges
Breaking static memory isolation requires more than placing expert weights and attention states in a shared memory pool. Released capacity must be reusable across tensor types with different allocation and addressing requirements, expert computation must remain efficient as residency changes, and cache resizing must be coordinated with ongoing execution. These requirements introduce three challenges.
-
Allocation Granularities and Capacity Reuse. Expert weights and attention states differ in both storage structure and allocation granularity, as illustrated by the tensor shapes in Table 1. Expert weights comprise large matrices, KV-cache capacity is allocated incrementally as sequences grow, and SSM and convolutional states require differently shaped per-request storage. A uniform small page size increases mapping and management overhead for large weights, whereas a large page size wastes capacity on small states. Allowing different page sizes addresses this tension but introduces another requirement: capacity released in one granularity must become allocatable in another without overlapping live allocations or leaving free space stranded in incompatible units. The memory manager must therefore preserve tensor-specific allocation and indexing while supporting capacity reuse across tensor types.
-
Efficient Expert Execution under Changing Residency. Conventional fused MoE kernels typically address routed experts

Figure 5: System overview of Rimuru.
through a regularly packed expert-weight layout. With shared allocation, cached experts can occupy separate page locations, and their mappings change as experts enter or leave the cache. Gathering these weights into a contiguous execution buffer restores the expected layout but adds local device-to-device copies and requires staging capacity, weakening the benefit of caching. The execution path must locate each routed expert in cache pages or loading buffers and consume its weights directly, while preserving the matrix layout required for efficient computation.
- Workload-aware and Execution-safe Cache Resizing. Expert-cache capacity determines a trade-off between request concurrency and weight-loading overhead. Reclaiming cached experts creates room for attention states, but excessive eviction increases subsequent transfers; retaining too many experts can restrict request admission. Resizing decisions must respond to memory pressure without repeatedly evicting and reloading experts as demand fluctuates. Applying these decisions also requires coordination with asynchronous prefetching and execution. Cache expansion can duplicate or contend with pending prefetches, while newly loaded weights must be ready before their mappings become visible to computation. When shrinking the cache, pages cannot be reassigned while an ongoing forward pass may still access them. Cache resizing must therefore coordinate capacity decisions, data transfers, mapping updates, and safe page reclamation.
4 System Overview
To address the above challenges, we present Rimuru, an MoE offloading serving system with unified memory management designed to maximize memory utilization. Rimuru combines unified memory management with workload-aware expert-cache adjustment, as shown in Figure 5. The logical and physical page managers coordinate tensor-specific allocation over a unified shared page pool,

Figure 6: Multi-view memory layout of Rimuru. Each tensor type has its own tensor-specific view over the shared storage.
while the model runner accesses tensors through page-table mappings. The adjuster determines changes in expert residency, and the backend expert manager integrates these changes with expert caching and asynchronous prefetching.
Specifically, upon request arrival, each request enters the queues managed by the scheduler (1). At each scheduling iteration, the logical page manager allocates attention-state pages, and the adjuster determines whether to expand or shrink the expert cache based on page availability and scheduling demand (2). The scheduler dispatches the scheduled requests, page allocations, and cache-adjustment deltas to the workers (3). The physical page manager maintains the corresponding mappings, which the model runner uses to access managed tensors during execution (4). The backend expert manager combines predicted expert prefetches with cache-expansion deltas (5), transfers the required weights from CPU memory (6), and places newly cached experts in their assigned pages (7). New cache mappings become visible only after loading completes; pages selected for eviction are reclaimed after the ongoing forward pass finishes. Execution results return to the scheduler (8), which streams generated tokens to the user (9).
5 Unified Memory Management
5.1 Multi-view Memory Layout
Rimuru allocates the available contiguous device memory as a shared page pool for heterogeneous tensors, and exposes tensor-specific memory views over this storage, as illustrated in Figure 6. Each view defines the layout and indexing of pages for a tensor type without reserving a separate memory region. Expert weights use different shape interpretations for the and matrices; attention states use KV, SSM, and convolutional-state views as required by the model. These views are different interpretations of the same shared pages. Once an allocation is safely reclaimed, its storage can be reassigned through another view.
To coordinate memory allocation across different tensor views, Rimuru aligns their page boundaries using a common huge page size. Since expert weights and SSM states typically require larger

Figure 7: Multi-level page allocation and subdivision in Rimuru.
allocation units than other tensor types, Rimuru sets the huge page size to the least common multiple of their page sizes, denoted as . For models without SSM states, Rimuru simply uses . The page sizes of the KV cache and convolution states must also divide . Convolutional states require special handling because the size of a complete state may not divide the parent-page size. For example, in Qwen3.5-35B-A3B, each convolution state has a shape of [3, 8192]. Therefore, for a convolutional state of shape , Rimuru uses a row of shape as the page allocation unit and allocates consecutive pages to store each convolution state, ensuring that individual pages can be aligned within huge pages. For the KV cache, Rimuru follows PagedAttention, where each page stores KV entries, typically 16. The memory footprint of each page depends on the corresponding tensor shape, data type, and tensor-parallel configuration.
Based on this design, the front-end logical page manager consists of multiple specialized managers. Each manager is responsible for page allocation and reclamation for a specific memory view, and supplies page identifiers to the workers. These identifiers index the corresponding memory views, allowing computation to locate allocated tensor storage without repacking it into a separate layout. The mappings for expert and SSM views are straightforward. The KV cache mapping follows the existing design of paged attention. In contrast, the conv page table stores the start position of each allocation. A complete conv state is typically represented by a contiguous range of pages, such as indexed as [start_pos, start_pos + m].
5.2 Multi-level Page Allocation
Rimuru implements a multi-level page allocator that supports memory reuse across tensor types through on-demand splitting and reclamation while minimizing fragmentation, as illustrated in Figure 7. At the top level, the page pool maintains a queue of huge pages (L1 pages). Each huge page can be further partitioned into L2 pages, including expert pages and SSM pages, and L3 pages, including KV cache pages and conv pages. In addition, when the expert page size is an integer multiple of the SSM page size, , and SSM pages can be allocated as sub-pages of expert pages, which simplifies management. The allocator supports two primary operations, allocation and reclamation.
Allocation proceeds through on-demand splitting. For expert and SSM requests, the system allocates the required number of pages from huge pages, and places the remaining pages into the free queue of L2 pages for future reuse. For KV and convolutional allocations, the system first reuses available sub-pages of the corresponding type and subdivides free L2 pages when necessary. If insufficient L2 pages remains, it splits a free huge page into L2 pages, typically expert pages, and then allocates one of these L2 pages as L3 pages. This design avoids directly partitioning L1 pages into L3 pages, since L1 pages are much larger than L3 pages and such direct splitting may lead to fragmentation. As a result, the same physical storage can serve different tensor types over time, enabling elastic utilization across categories. Across different requests, their L3 pages can be allocated from the same L2 page. However, Rimuru attempts to assign sub-pages from a single L2 page to the same request whenever possible to simplify reclamation.
Reclamation follows the reverse path of allocation. When an L3 page is released, the allocator updates the state of its parent page. Once all sub-pages of a parent page are freed, the allocator removes the entire sub-page range from the corresponding free set and restores the parent page as a free expert page or SSM page. A huge page returns to the global pool only when all intermediate pages derived from it have been fully reclaimed.
Through multi-level allocation and the merging of fully reclaimed sub-pages into larger allocation units, Rimuru prevents memory capacity from becoming stranded across tensor-specific regions. Internal fragmentation may still arise from partially utilized KV pages and unused tail space in convolution-state allocations. However, such fragmentation is bounded by the corresponding allocation granularities and remains small due to the fine-grained allocations for KV caches and convolution states. Therefore, memory fragmentation is negligible in Rimuru.
5.3 Execution with Discrete Pages
The computation of KV cache and Mamba states is already well described in prior systems [18, 43]. Here, we focus on the execution of experts. Rimuru prepares expert weights through a dual-buffer design to overlap expert prefetching with execution, and extends the fused MoE kernel to access weights directly from cache pages or loading buffers.
Dual buffer. Rimuru preallocates reusable loading buffers for non-resident experts, avoiding repeated page allocation and reclamation for temporary weight loading. However, reusing the same buffer for current-layer execution and next-layer prefetching creates a read-write conflict: new transfers must wait for computation to finish, or weights must be staged elsewhere and copied through an additional local device-to-device transfer before execution. To address this issue, Rimuru introduces a dual-buffer design, as illustrated in Figure 8. It maintains two expert buffers, while one buffer supplies weights for the current layer, the other receives prefetched weights for the next layer. Their roles alternate across layers. This design introduces a fixed memory overhead, which is twice the size of the expert layer. Rimuru therefore leverages the expert_offload_limit (see Section 6) to bound the buffer size. Since the number of experts that need to be prefetched or temporarily loaded at any time does not exceed this limit.
Single Buffer

Dual Buffer
Comp. flow
Comm. flow
Buff 1
Comp.
Comp.
Comm.
Comp.
...
Buff 2
Comp.
Comm.
Comp.
Comm.
...
Figure 8: Single buffer vs. Dual buffers. Design for overlapping expert prefetch and execution, avoiding local DtoD copy.
Page-table-aware fused MoE kernel. Conventional fused MoE operators index a contiguous expert-weight array. In Rimuru, cached weights occupy separate pages, while non-resident experts are loaded into temporary buffers. Gathering these weights into a packed array would add device-to-device copies. Rimuru instead uses expert-location metadata to compute directly from cache pages or loading buffers.
The operator takes input activations, routing results, and metadata identifying each expert's weight source and location. Cached projections are located through page identifiers, while buffered projections are located through buffer slots. For the joint projection, output columns select their corresponding projection pages without physically concatenating the weights. Let and denote the local hidden and intermediate dimensions. Each cached projection occupies a dense page. For expert , output column and reduction offset address the weight element as
where is the page-pool base and and are the projection-page identifiers; offsets count stored weight elements. Routed token-expert assignments are grouped by expert, and each GPU program computes an output tile while reusing its weight tile across input rows. Page lookup and source selection occur before the GEMM reduction loop, which loads dense tiles and advances pointers using fixed strides. The additional indirection is therefore resolved per output tile rather than at every reduction step. After activation and the projection, expert outputs are combined using routing weights.
For execution chunks with at most 32 assignments and no expert remapping, the GEMMs form expert groups internally, avoiding separate alignment launches and intermediate alignment metadata. Assignments to each expert are ordered by occurrence; every -th occurrence, starting at rank zero, owns up to matching rows, while other candidates return before loading weights. Larger workloads use explicit alignment to avoid repeated local grouping. The final reduction writes directly into the output tensor, avoiding a preliminary zero fill and a workspace-to-output copy.
Support for piecewise CUDA graph. This layout is compatible with piecewise CUDA Graph execution for expert computation, since steady-state data structures have fixed shapes and stable memory addresses. The original page storage, expert page table, dual buffers, and auxiliary metadata tensors are allocated once and reused across steps. At runtime, only tensor contents are updated. As a result, the captured graph reflects a stable tensor topology, while page residency and request-dependent routing remain dynamic via indirection tables.
6 Workload-aware Expert Cache Adjuster
To flexibly utilize unified memory, Rimuru further introduces a workload-aware expert cache adjuster. The adjuster balances attention-state capacity against expert-loading overhead. It shrinks the expert cache when attention-state allocation requires additional pages and expands it when sufficient capacity becomes available, while limiting excessive eviction and repeated loading. The adjuster separates control from execution. The front-end logical expert page manager determines whether the cache should expand or shrink based on the current page availability and sends the resulting cache delta to the worker. On the worker side, the expert manager incorporates this delta into the existing prefetch path and updates page table.
Hotset-guided Cache Layout. Given that MoE models exhibit skewed expert access patterns and that online statistics introduce extra overhead, the adjuster relies on an offline expert hotset profile. For each MoE layer, this profile stores a complete ordering of experts together with their empirical routing probabilities. Rimuru uses this ordering as a prefix-based cache policy. During both initialization and cache resizing, experts are selected according to this order. The empirical routing probabilities are further used to compare priorities across layers when adjusting cache sizes.
At initialization, the first MoE layer has no prefetch window and therefore caches all experts. Subsequent MoE layers, referred to as adjustable layers, cache only a prefix of their hotset ordering. By default, Rimuru initializes a large expert cache within the available page budget. During adjustment, each layer enforces a unified expert_offload_limit as a bound on the number of offloaded experts, which prevents excessive offloading and avoids latency degradation.
6.1 CPU-side Adjustment Policy
On the CPU side, the control logic consists of two main decisions, whether to resize the cache and which experts to load or evict. This decision is made after the scheduler completes request scheduling, since the remaining available pages reflect the current short-term memory pressure. Then, the adjuster constructs an ExpertCacheDelta, which includes cache delta set, and the reserved page identifiers for newly loaded experts, and sends it to the worker by scheduler. The high-level workflow of the CPU-side adjustment policy is shown in Algorithm 1.
Specifically, the trigger for cache resizing is based on the remaining capacity of expert pages, including those that can be obtained by splitting huge pages. When waiting requests exist, the system
Algorithm 1 Control-side expert cache adjustment
Input: Adjustable layers , hotset rankings , routing probabilities , cache sizes , expert_offload_limit , free expert blocks , required shrink blocks
Output: ExpertCacheDelta or
1: if then 2: return 3: end if 4: if then 5: 6: 7: return EXPERTCACHEDELTA([ ], ) 8: else if then 9: 10: return EXPERTCACHEDELTA([ ], ) 11: else 12: 13: 14: return EXPERTCACHEDELTA(, [ ]) 15: end if
prioritizes shrinking according to demand. Let denote the number of currently free expert pages, and let denote the number of additional expert pages required by the scheduler to satisfy the current scheduling result. If , the adjuster converts this shortage into the number of experts to shrink: , where the divisor of 3 accounts for the three expert pages occupied by each expert, one for each projection matrix. It then attempts to select up to experts, subject to the per-layer cache lower bound, and generates the corresponding shrink delta (Line 4-7). The additional page in the numerator provides a small buffer for the next adjustment. If no explicit shortage exists but , the adjuster still attempts to shrink one expert (Line 8-10). Otherwise, the adjuster considers expansion.
During expansion, the system reserves capacity for three experts. Since each expert occupies three pages for its weights, expansion is triggered when . This gap between the shrink threshold (2) and the expand threshold (9) is intended to reduce frequent reversals as memory availability fluctuates. The expansion budget is computed as . The cap of five experts bounds the expansion per forward pass, limiting the additional loading work introduced into the prefetch pipeline (Line 11-14).
Target selection for cache resizing follows a greedy policy guided by the hotset prefix (Line 6, 9, 13). For GREEDYEXPAND, each adjustable layer proposes the next uncached expert in its hotset ordering . The adjuster selects the experts with the highest routing probabilities . GREEDYSHRINK decisions follow a symmetric rule. Each layer proposes the last expert in its current prefix. Layers whose cached prefix length has reached are excluded from shrinking. The cost of removing an expert is defined by its routing probability , and the adjuster selects one or experts with the smallest cost.
6.2 GPU-side Delta Application
On the GPU side, the expert manager applies the cache delta within the forward pipeline. Expanded experts are merged into the prefetch queue of the next layer. Before layer l begins execution of experts, the expert manager schedules asynchronous prefetching for layer . The prefetch queue contains both predicted experts and the expand delta associated with layer . The manager explicitly removes duplicates between these two sources to avoid redundant copies. Experts from the expand delta are issued with higher priority and must be completed before execution. When execution reaches layer , the manager checks whether there are pending expand deltas for that layer. If so, it waits for the corresponding copy events and then updates the page table. This ordering, where copies are completed before page table updates, ensures correctness.
Shrink is simpler and only requires invalidating the corresponding page table entries while controlling the timing. When the GPU receives a cache delta with experts to evict, it does not immediately free their pages, but waits until the current forward pass completes. The backend manager keeps these experts visible during the ongoing forward pass to increase reuse. After the forward pass, the manager commits updates to the page table. The frontend then reclaims the old pages and returns them to the page pool.
7 Implementation
Rimuru is implemented on top of vLLM with approximately 4,400 lines of Python code and 800 lines of C++ code. The control logic and memory management are implemented in Python, the page-table-aware expert GEMM kernels in Triton, and the expert-loading functionality through C++ extensions. By building on vLLM, Rimuru supports a broad range of modern LLMs compatible with vLLM.
Memory views and integration. Rimuru allocates the shared page pool as a contiguous device byte buffer. It uses .view(dtype) to reinterpret the element type and .view(shape) to construct tensor-specific layouts over the same storage without copying data. The block manager returns typed page identifiers that index these views on each worker. For attention states, Rimuru adapts vLLM's block tables and state indices to the shared layout while retaining the underlying attention and state-update computations. Convolutional-state mappings additionally record the starting row-page index of each consecutive allocation. These adaptations connect the shared allocator to the existing computation interfaces.
Expert management and prefetching. The backend expert manager maintains host-resident weights, device cache mappings, loading buffers, and prefetch state. Host weights are stored in pinned memory for asynchronous transfers. Rimuru adopts the expert-prediction strategy from Fate [10] and passes predicted expert identifiers to a background prefetch worker. The worker filters cached experts and coordinates predicted loads with cache-expansion targets. Actual routing results determine the weights required for execution, with unavailable experts loaded before computation. The model runner supplies their locations to the page-table-aware fused MoE operator. Moreover, most expert prediction strategies developed in other expert offloading systems remain orthogonal to Rimuru.
Extensibility. The shared storage abstraction accommodates weight formats such as BF16 and INT8 through dtype-specific views. Adapting the memory manager to another format primarily requires updating the view's element interpretation and mapping calculations. Models composed of supported tensor types reuse the existing views. New model or heterogeneous tensor types can be incorporated into the unified memory manager by adding views that define their storage layouts, allocation units, and index mappings.
Tensor Parallelism. For multi-device execution, Rimuru adopts tensor parallelism to balance memory occupancy and expert-weight transfers. Under identical per-rank configurations, workers retain the same expert-residency layout and load equal-sized shards of the same selected experts. Each adjustment therefore releases or consumes the same capacity on every device and introduces the same expert I/O volume. This symmetry allows the shared allocation and cache-adjustment policy to operate consistently across workers without introducing uneven expert-loading pressure.
8 Evaluation
8.1 Evaluation Setup
Hardware. We evaluate Rimuru and baselines on two hardware configurations, and conduct a comprehensive evaluation across single-, dual-, and eight-GPU settings to demonstrate that the effectiveness of Rimuru scales with system size. One server is equipped with eight NVIDIA RTX 5090 GPUs (32 GB each), two Intel Xeon Platinum 8470Q CPU, and 720 GB of host memory, with PCIe 5.0 ×16 interconnects between CPU and GPU. The other server is equipped with two NVIDIA RTX 4090D GPUs (24 GB each), one Intel Xeon Platinum 8368Q CPU, and 256 GB of host memory, with PCIe 4.0 ×16 interconnects between CPU and GPU.
Models. We use MoE models from the Qwen family, which provide a range of models at different scales with strong performance. The Qwen-3 series consists of full-attention models, while the Qwen-3.5 series adopts hybrid attention. Specifically, we evaluate Qwen3-30B-A3B, Qwen3.5-35B-A3B, and Qwen3.5-122B-A10B.
Workload. To simulate real-world serving workloads, we sample inputs from ShareGPT [7], a widely used dataset of real user interactions with ChatGPT. As such, it serves as a representative benchmark for LLM serving, capturing practical usage scenarios, workload diversity, and variability in request patterns.
Baselines. We evaluate Rimuru under two resource-limited settings: one where GPU memory accommodates all model weights with little headroom, and one where memory is insufficient, requiring partial expert offloading. In the former setting, we compare Rimuru with the following popular serving systems to show that Rimuru improves throughput by enabling transient concurrency:
• vLLM [18]: a high-throughput LLM serving engine that mitigates memory fragmentation via paged attention.
• SGLang [44]: a structured generation framework that leverages RadixAttention to reuse KV cache.
In the latter setting, we compare Rimuru with following offloading systems to highlight the benefit of dynamically adjusting the expert cache over static configurations:
• KTransformers [5]: a flexible framework for heterogeneous LLM inference that leverages Intel AMX instructions to accelerate CPU-side matrix computation.
Fate
llama.cpp
KT-Full
KT
Rimuru

(a) Qwen3.5-35B (1x 5090)
(b) Qwen3-30B (1x 5090)
(c) Qwen3.5-35B (2x 4090D)
(d) Qwen3-30B (2x 4090D)
Figure 9: Comprehensive serving evaluation of expert offloading. Columns show the four model and hardware configurations, and rows report TTFT, TPOT, and output-token throughput as request rate increases.
• Fate [10]: an MoE offloading system that reduces I/O overhead through high-hit-rate expert prefetching and caching. We modify Fate to adapt it to Qwen models.
• llama.cpp [13]: a lightweight C/C++ implementation for running LLMs on CPUs or resource-constrained devices.
Note that most existing offloading systems do not support CUDA Graph. Since the performance gains from CUDA Graph may bias the comparison of system designs, we disable CUDA Graph in all systems when supported.
Metrics. The primary metric targeted by Rimuru is output token throughput (tokens/s), which reflect overall generation speed. In addition, as a serving system, we also consider TTFT and TPOT.
8.2 End-to-end Performance
Compare with offloading systems. Figure 9 shows the evaluation of KTransformers, Fate, llama.cpp, and Rimuru. We serve Qwen3-30B and Qwen3.5-35B on a single 5090 GPU and two 4090D GPUs. Rimuru achieves up to throughput and reduces TTFT by up to 99% compared with most baselines, except for a smaller gap with KT. Although Rimuru exhibits higher TTFT in some cases, it supports higher concurrency through the expert cache adjuster, which leads to superior overall throughput.
Fate represents typical MoE offloading systems on edge devices, which focus on expert prediction and caching to hide I/O overhead. However, they overlook conflicts when integrating with modern serving engines. Strict memory isolation leads to underutilization of GPU memory. Rimuru addresses this issue by breaking memory isolation and adopting a flexible cache adjustment strategy, which enables switching between high throughput and low latency. Finally, Rimuru achieves up to the throughput of Fate.
In contrast, KTransformers and llama.cpp avoid expert movement and instead execute MoE computation on CPU using optimized kernels. KTransformers outperforms llama.cpp due to its MoE kernel based on Intel AMX instructions. Rimuru also consistently outperforms llama.cpp, achieving up to its throughput and reducing TTFT by 90.50%-99.7%. Since llama.cpp only supports single-GPU execution, it is not included in (c) and (d).
On the 4090D platform, the Intel Xeon Platinum 8368Q CPU does not support AMX instructions, so we configure KTransformers to use AVX2 for CPU-side expert computation. As a result, its performance is significantly degraded. Under high workload, Rimuru achieves up to the throughput of KTransformers on the 4090D platform. On the 5090 platform, which supports AMX instructions, KTransformers shows strong performance on Qwen3. Since KTransformers uses a fixed, manually configured expert cache size, we evaluate two settings: KT-Full, where the expert cache

(a) Qwen3.5-122B (8x 5090)
(b) Qwen3-30B (2x 5090)
Figure 10: Serving evaluation of SGLang, vLLM, and Rimuru.
fully occupies GPU memory, and KT, where some memory is reserved for KV cache and Mamba states. KT-Full exhibits worse performance due to excessive expert caching that reduces KV cache capacity, limits concurrency, and causes request accumulation. In contrast, Rimuru dynamically adjusts the expert cache and reallocates memory to the KV cache, which increases concurrency and improves throughput. On the other hand, KT achieves lower TTFT and TPOT than Rimuru on Qwen3 by leveraging high-performance CPU kernels without transferring expert weights. However, Rimuru achieves higher throughput by supporting greater request concurrency through elastic expert caching. Results across two platforms also show that KTransformers relies heavily on advanced CPU instruction sets, which are often unavailable on older servers and PCs in resource-constrained environments. For Qwen3.5, the expert size is one-third smaller than that of Qwen3, reducing the I/O pressure. As a result, Rimuru significantly outperforms KTransformers. Overall, Rimuru achieves up to the throughput of KTransformers on the 5090 platform.
Compare with serving systems. Figure 10 shows the evaluation of SGLang, vLLM, and Rimuru when serving Qwen3.5-122B on eight 5090 GPUs and Qwen3-30B on two 5090 GPUs. Rimuru achieves throughput compared with SGLang and vLLM. And Rimuru reduces TTFT by 63%-99%. These results demonstrate the effectiveness of Rimuru and highlight the necessity of expert offloading when deploying MoE models under resource constraints.
The improvement stems from better handling of high workload under limited memory. By admitting more concurrent requests under memory pressure, Rimuru alleviates request accumulation and reduces queueing delays, which contributes substantially to

(a) Qwen3.5-35B (2x 5090)
(b) Qwen3-30B (2x 5090)
Figure 11: Ablation study of Rimuru. UMM: Unified Memory Management, CA: Cache Adjuster, DF: Discrete FusedMoE.
the observed TTFT improvements. Under low workload, Rimuru shows limited degradation. It dynamically increases the number of cached experts, which reduces I/O overhead. For example, Rimuru achieves roughly half the TPOT under low workload compared to high workload. Although Rimuru has higher TPOT than the baselines, the overall request completion time remains lower.
We omit vLLM from panel (a) because the evaluated configuration encounters an OOM error during Triton GDN kernel autotuning. This limitation highlights the necessity of offloading systems, which provide flexibility across limited deployment environments. Since Rimuru is built on top of vLLM, it is also affected. Nevertheless, Rimuru still demonstrates strong performance.
8.3 Ablation Study
To validate the effectiveness of each component in Rimuru, we conduct an ablation study. Starting from Fate as baseline, we progressively add unified memory management, expert cache adjustment, and the page-table-aware fused MoE kernel. The experiments are conducted on Qwen3.5-35B and Qwen3-30B using two 5090 GPUs, which correspond to the cases where offloading is required and not required, respectively. The results are shown in Figure 11.
Specifically, unified memory management provides the underlying mechanism of memory sharing rather than directly improving serving performance. Consequently, its performance remains comparable to the baseline. The benefit of unified allocation emerges when combined with the workload-aware cache adjuster. By elastically adjusting expert residency in response to memory pressure to improve memory utilization, the adjuster increases throughput to approximately that of the baseline and reduces TTFT by 83.9%. Finally, the page-table-aware FusedMoE kernel eliminates copying cached experts into contiguous execution buffers, further increasing throughput to and reducing TTFT by approximately 97.8%. During prefill, parallel processing of many tokens activates most experts, making weight copying particularly expensive. Our kernel avoids these copies by directly accessing expert

Input tokens
Figure 12: Comparison of FusedMoE kernels.
weights from the shared page pool. During decoding, fewer experts are activated, reducing device-to-device copy overhead and thus yielding smaller TPOT improvements.
8.4 FusedMoE Kernel Efficiency
We compare the page-table-aware FusedMoE kernel with the original contiguous-weight kernel of vLLM. We evaluate the two models' expert configurations on both GPU platforms, using small token batches ( ) and large token batches ( ) to represent decoding- and prefill-sized inputs, respectively. Both kernels use identical inputs, routing decisions, and weights.
Across all results in Figure 12, our kernel increases operator latency by 0.83% on average, indicating that our design keeps the net cost of non-contiguous execution small. For large token batches ( ), the mean paired overhead remains within 1.31% in every tested configuration, consistent with address-mapping costs being better amortized by batched expert computation. Small token batches show greater relative variation, with a maximum increase of 9.63% in the single-token case. However, the absolute latency increase remains small, reaching at most 3.38 s. These results show that our kernel preserves near-baseline resident-compute performance while directly consuming weights from the shared page pool. Moreover, all activated experts reside in the page pool. We also evaluate mixed expert placements across the page pool and loading buffer. Varying the fraction of page-resident experts from 50% to 100% changes the mean overhead by at most 0.22%. We omit these results for brevity.
8.5 Sensitivity Analysis
In Rimuru, the optimal value of expert_offload_limit (denoted as EOL) is difficult to determine, as it varies with model architecture, GPU memory capacity, and workload. We therefore analyze the impact of EOL on different metrics, as shown in Figure 13. The starting point of the x-axis in each subfigure indicates the minimum number of experts offloaded.

(a) Qwen3.5-122B (8x 5090)
(b) Qwen3-30B-A3B (2x 5090)

(c) Qwen3.5-35B (1x 5090)
(d) Qwen3-30B (1x 5090)
Figure 13: Impact of expert_offload_limit.
Overall, across GPU memory capacities and model sizes, throughput, TTFT, and TPOT show consistent trends with respect to EOL. At the minimum EOL, Rimuru degenerates to a fixed-expert offloading system similar to Fate. Cached experts occupy most GPU memory, leaving little space for KV cache and Mamba states. Moreover, the EOL constraint prevents further offloading to release memory, leading to request accumulation, very high TTFT, and low throughput. However, slightly increasing EOL, for example by about ten experts, significantly improves throughput and reduces TTFT. Peak throughput and the best EOL are typically achieved in this range. This is because expert weights are large, and offloading about ten experts frees enough memory to substantially increase concurrency. Further increasing EOL can still yield good performance, but excessively large values are suboptimal, as shown in (a) and (b). Under bursty workloads, many experts may be offloaded, and when load decreases, the system requires a long recovery period to reload them, degrading throughput. In contrast, TPOT remains largely unaffected. Due to the fine-grained expert structure, only a small fraction of parameters is activated during decoding, and most accesses are covered by prefetching and the hotset-based cache policy. As a result, TPOT stays stable across EOL settings.
9 Related Work
Memory management for LLM serving. High-throughput serving systems have invested heavily in managing the growing KV cache, because it often dominates GPU memory at scale [2, 12, 27]. Early LLM serving systems such as Orca [41] highlighted the importance of iteration-level scheduling and continuous batching for autoregressive decoding. vLLM [18] then introduce PagedAttention, which can substantially improve memory efficiency and throughput. This design underpins many production engines. SGLang [44] expands the design space with structured multi-call programs and reuse KV via RadixAttention. More recently, Jenga [43] addresses heterogeneity across layers and embedding layouts with attention-aware allocation layered on top of paged KV management. These lines of work substantially improve KV efficiency, but for model weights, they typically follow parallelism strategies to place them in device memory without additional management. In contrast, Rimuru eliminates memory isolation in MoE serving by jointly managing cached expert weights and attention states within a unified memory framework, enabling dynamic memory sharing between expert residency and attention-state allocations.
MoE inference and expert offloading. Most existing MoE offloading systems focus on expert prediction and caching [15, 31]. MoE-Infinity [39] proposes activation-aware prefetching and caching, while Fate [10] improves expert hit rate through cross-layer prediction and a shallow-favoring expert cache. Similar designs are adopted in Mixtral-offloading [8] and fMoE [42]. These systems are largely complementary to ours. Furthermore, Fiddler [17] and KTransformers [5] explore CPU-GPU co-execution. Another line of work targets offline workloads. MoE-Lightning [4] and Klotski [9] improve throughput by reshaping execution to better overlap communication and computation. In contrast, Rimuru focuses on how much capacity expert caching should retain as request-state demand changes and how the released capacity becomes reusable. Rimuru unifies experts and attention states and dynamically adjusts the expert cache online. Expert prediction and prefetching provide complementary mechanisms for reducing the loading overhead.
10 Conclusion
In this paper, we presented Rimuru, a modern LLM serving system that employs unified memory management to improve throughput in resource-constrained environments. Rimuru introduces tensor-specific memory views and a multi-level allocator to support memory allocation and reuse across different granularities. A page-table-aware fused MoE operator directly consumes cached and buffered weights, avoiding copies into a packed expert array. A workload-aware adjuster changes expert residency in response to attention-state pressure and coordinates these changes with asynchronous loading and execution. Together, these mechanisms allow memory capacity to follow changing serving demands while accounting for expert-loading overhead. Implemented on vLLM, Rimuru achieves up to the throughput of the baselines.
References
[1] Hermes Agent. Retrieved April, 2026. Hermes Agent: The agent that grows with you. https://github.com/nousresearch/hermes-agent
[2] Amey Agrawal, Nitin Kedia, Ashish Panwar, Jayashree Mohan, Nipun Kwatra, Bhargav Gulavani, Alexey Tumanov, and Ramachandran Ramjee. 2024. Taming {Throughput-Latency} tradeoff in {LLM} inference with {Sarathi-Serve}. In 18th USENIX symposium on operating systems design and implementation (OSDI 24). 117–134.
[3] Keivan Alizadeh, Seyed Iman Mirzadeh, Dmitry Belenko, S. Khatamifard, Minsik Cho, Carlo C Del Mundo, Mohammad Rastegari, and Mehrdad Farajtabar. 2024. LLM in a flash: Efficient Large Language Model Inference with Limited Memory. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 12562–12584. https://doi.org/10.18653/v1/2024.acl-long.678
[4] Shiyi Cao, Shu Liu, Tyler Griggs, Peter Schafhalter, Xiaoxuan Liu, Ying Sheng, Joseph E Gonzalez, Matei Zaharia, and Ion Stoica. 2025. Moe-lightning: High-throughput moe inference on memory-constrained gpus. In Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1. 715–730.
[5] Hongtao Chen, Weiyu Xie, Boxin Zhang, Jingqi Tang, Jiahao Wang, Jianwei Dong, Shaoyuan Chen, Ziwei Yuan, Chen Lin, Chengyu Qiu, et al. 2025. Ktransformers: Unleashing the full potential of cpu/gpu hybrid inference for moe models. In Proceedings of the ACM SIGOPS 31st Symposium on Operating Systems Principles. 1014–1029.
[6] Damai Dai, Chengqi Deng, Chenggang Zhao, RX Xu, Huazuo Gao, Deli Chen, Jiashi Li, Wangding Zeng, Xingkai Yu, Y Wu, et al. 2024. Deepseekmoe: Towards ultimate expert specialization in mixture-of-experts language models. arXiv preprint arXiv:2401.06066 (2024).
[7] Hugging Face Dataset. 2023. ShareGPT. https://huggingface.co/datasets/anon8231489123/ShareGPT_Vicuna_unfiltered
[8] Artyom Eliseev and Denis Mazur. 2023. Fast inference of mixture-of-experts language models with offloading. arXiv preprint arXiv:2312.17238 (2023).
[9] Zhiyuan Fang, Yuegui Huang, Zicong Hong, Yufeng Lyu, Wuhui Chen, Yue Yu, Fan Yu, and Zibin Zheng. 2025. Klotski: Efficient Mixture-of-Expert Inference via Expert-Aware Multi-Batch Pipeline. In Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2. 574–588.
[10] Zhiyuan Fang, Xingfan Yu, Yuegui Huang, Zicong Hong, Yufeng Lyu, Wuhui Chen, Yue Yu, and Fan Yu. 2026. Fate: Fast Edge Inference of Mixture-of-Experts Models via Cross-Layer Gate. In Proceedings of the ACM Web Conference 2026. 5537–5546.
[11] William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research 23, 120 (2022), 1–39.
[12] Shihong Gao, Xin Zhang, Yanyan Shen, and Lei Chen. 2025. Apt-serve: Adaptive request scheduling on hybrid cache for scalable llm inference serving. Proceedings of the ACM on Management of Data 3, 3 (2025), 1–28.
[13] Georgi Gerganov. Retrieved April, 2026. llama.cpp: LLM inference in C/C++. https://github.com/ggml-org/llama.cpp
[14] Albert Gu and Tri Dao. 2023. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752 (2023).
[15] Ranggi Hwang, Jianyu Wei, Shijie Cao, Changho Hwang, Xiaohu Tang, Ting Cao, and Mao Yang. 2024. Pre-gated moe: An algorithm-system co-design for fast and scalable mixture-of-expert inference. In 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA). IEEE, 1018–1031.
[16] Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088 (2024).
[17] Keisuke Kamahori, Tian Tang, Yile Gu, Kan Zhu, and Baris Kasikci. 2025. Fiddler: CPU-GPU Orchestration for Fast Inference of Mixture-of-Experts Models. In The Thirteenth International Conference on Learning Representations.
[18] Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th symposium on operating systems principles. 611–626.
[19] Jiamin Li, Yimin Jiang, Yibo Zhu, Cong Wang, and Hong Xu. 2023. Accelerating distributed {MoE} training and inference with lina. In 2023 USENIX Annual Technical Conference (USENIX ATC 23). 945–959.
[20] Opher Lieber, Barak Lenz, Hofit Bata, Gal Cohen, Jhonathan Osin, Itay Dalmedigos, Erez Safahi, Shaked Meirom, Yonatan Belinkov, Shai Shalev-Shwartz, et al. 2024. Jamba: A hybrid transformer-mamba language model. arXiv preprint arXiv:2403.19887 (2024).
[21] Aixin Liu, Aoxue Mei, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, et al. 2025. Deepseek-v3. 2: Pushing the frontier of open large language models. arXiv preprint arXiv:2512.02556 (2025).
[22] Minimax. 2025. MiniMax M2 and Agent: Ingenious in Simplicity. https://www.minimax.io/news/minimax-m2
[23] Niklas Muennighoff, Luca Soldaini, Dirk Groeneveld, Kyle Lo, Jacob Morrison, Sewon Min, Weijia Shi, Pete Walsh, Oyvind Tafjord, Nathan Lambert, et al. 2024. OLMoE: Open Mixture-of-Experts Language Models. arXiv preprint arXiv:2409.02060 (2024).
[24] OpenClaw. Retrieved April, 2026. Open-source personal AI assistant. https://github.com/openclaw/openclaw
[25] Melissa Z Pan, Negar Arabzadeh, Riccardo Cogo, Yuxuan Zhu, Alexander Xiong, Lakshya A Agrawal, Huanzhi Mao, Emma Shen, Sid Pallerla, Liana Patel, et al. 2025. Measuring agents in production. arXiv preprint arXiv:2512.04123 (2025).
[26] Pratyush Patel, Esha Choukse, Chaojie Zhang, Aashaka Shah, Iñigo Goiri, Saeed Maleki, and Ricardo Bianchini. 2024. Splitwise: Efficient generative llm inference using phase splitting. In 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA). IEEE, 118–132.
[27] Ruoyu Qin, Zheming Li, Weiran He, Jialei Cui, Heyi Tang, Feng Ren, Teng Ma, Shangming Cai, Yineng Zhang, Mingxing Zhang, et al. 2026. Mooncake: A kvcache-centric disaggregated architecture for llm serving. ACM Transactions on Storage 22, 4 (2026), 1–38.
[28] Ying Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li, Max Ryabinin, Beidi Chen, Percy Liang, Christopher Ré, Ion Stoica, and Ce Zhang. 2023. Flexgen: High-throughput generative inference of large language models with a single gpu. In International Conference on Machine Learning. PMLR, 31094–31116.
[29] Yixin Song, Zeyu Mi, Haotong Xie, and Haibo Chen. 2024. Powerinfer: Fast large language model serving with a consumer-grade gpu. In Proceedings of the ACM SIGOPS 30th Symposium on Operating Systems Principles. 590–606.
[30] Biao Sun, Ziming Huang, Hanyu Zhao, Wencong Xiao, Xinyi Zhang, Yong Li, and Wei Lin. 2024. Llumnix: Dynamic scheduling for large language model serving. In 18th USENIX symposium on operating systems design and implementation (OSDI 24). 173–191.
[31] Peng Tang, Jiacheng Liu, Xiaofeng Hou, Yifei Pu, Jing Wang, Pheng-Ann Heng, Chao Li, and Minyi Guo. 2026. MoE-APEX: An Efficient MoE Inference System with Adaptive Precision Expert Offloading. In Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2. 1185–1200.
[32] Kimi Team, Yifan Bai, Yiping Bao, Guanduo Chen, Jiahao Chen, Ningxin Chen, Ruijue Chen, Yanru Chen, Yuankun Chen, Yutian Chen, et al. 2025. Kimi k2: Open agentic intelligence. arXiv preprint arXiv:2507.20534 (2025).
[33] Qwen Team. 2026. Qwen3.5: Accelerating Productivity with Native Multimodal Agents. https://qwen.ai/blog?id=qwen3.5
[34] Yuxin Wang, Yuhan Chen, Zeyu Li, Xueze Kang, Yuchu Fang, Yeju Zhou, Yang Zheng, Zhenheng Tang, Xin He, Rui Guo, Xin Wang, Qiang Wang, Amelie Chi Zhou, and Xiaowen Chu. 2025. BurstGPT: A Real-World Workload Dataset to Optimize LLM Serving Systems. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2 (Toronto ON, Canada) (KDD '25). Association for Computing Machinery, New York, NY, USA, 5831–5841. https://doi.org/10.1145/3711896.3737413
[35] Bingyang Wu, Shengyu Liu, Yinmin Zhong, Peng Sun, Xuanzhe Liu, and Xin Jin. 2024. LoongServe: Efficiently Serving Long-Context Large Language Models with Elastic Sequence Parallelism. In Proceedings of the ACM SIGOPS 30th Symposium on Operating Systems Principles (Austin, TX, USA) (SOSP '24). Association for Computing Machinery, New York, NY, USA, 640–654. https://doi.org/10.1145/3694715.3695948
[36] Yuxing Xiang, Xue Li, Kun Qian, Yan Zhang, Wenyuan Yu, Ennan Zhai, Xin Jin, and Jingren Zhou. 2026. {ServeGen}: Workload Characterization and Generation of Large Language Model Serving in Production. In 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI 26). 1845–1859.
[37] Zhiqiang Xie, Ziyi Xu, Mark Zhao, Yuwei An, Vikram Sharma Mailthody, Scott Mahlke, Michael Garland, and Christos Kozyrakis. 2026. Strata: Hierarchical context caching for long context language model serving. In 20th USENIX Symposium on Operating Systems Design and Implementation (OSDI 26). 1–16.
[38] Anyi Xu, B Li, Bangcai Lin, Bing Xue, BingCheng Xian, Bingzheng Xu, Bochao Wu, Bowei Zhang, Boyi Deng, CC Yu, et al. 2026. Deepseek-v4. 1-flash: Pushing the limits of kv cache compression. arXiv preprint arXiv:2609.19969 (2026).
[39] Leyang Xue, Yao Fu, Zhan Lu, Luo Mai, and Mahesh Marina. 2024. Moe-infinity: Offloading-efficient moe model serving. arXiv e-prints (2024), arXiv-2401.
[40] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388 (2025).
[41] Gyeong-In Yu, Joo Seong Jeong, Geon-Woo Kim, Soojeong Kim, and Byung-Gon Chun. 2022. Orca: A distributed serving system for {Transformer-Based} generative models. In 16th USENIX symposium on operating systems design and implementation (OSDI 22). 521–538.
[42] Hanfei Yu, Xingqi Cui, Hong Zhang, Hao Wang, and Hao Wang. 2025. fMoE: fine-grained expert offloading for large mixture-of-experts serving. arXiv e-prints (2025), arXiv-2502.
[43] Chen Zhang, Kuntai Du, Shu Liu, Woosuk Kwon, Xiangxi Mo, Yufeng Wang, Xiaoxuan Liu, Kaichao You, Zhuohan Li, Mingsheng Long, et al. 2025. JENGA: Effective memory management for serving LLM with heterogeneity. In Proceedings of the ACM SIGOPS 31st Symposium on Operating Systems Principles. 446–461.
[44] Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun, Jeff Huang, Cody H Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E Gonzalez, et al. 2024. Sglang: Efficient execution of structured language model programs. Advances in neural information processing systems 37 (2024), 62557–62583.
[45] Yinmin Zhong, Shengyu Liu, Junda Chen, Jianbo Hu, Yibo Zhu, Xuanzhe Liu, Xin Jin, and Hao Zhang. 2024. {DistServe}: Disaggregating prefill and decoding for goodput-optimized large language model serving. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24). 193–210.