Manuscript Offprint

arXiv:2610.18451

FastEEP: Fast Intra-Instance Elastic Scaling for Expert-Parallel MoE Serving

Yunfei Feng, Jingkai He, Shiqi Liu, Cheng Zhang, Dong Du, Erhu Feng

Abstract

Large-scale expert parallelism (EP) has become the standard deployment configuration for Mixture-of-Experts (MoE) models in production. Meanwhile, the highly dynamic nature of LLM workloads requires providers to continuously adjust serving capacity to match fluctuating demand. Scaling MoE serving cannot be efficiently achieved by simply adding or removing serving instances; instead, it often requires resizing the EP group within an existing instance, which we refer to as intra-instance scaling. Existing inference engines primarily rely on instance-level scaling, which destroys and reconstructs entire serving instances, incurring substantial scaling overhead.

We present FastEEP (Fast Elastic Expert Parallel), a fast intra-instance scaling system for MoE serving based on the principle of Partial Reuse. FastEEP reuses existing runtime state across worker execution, GPU memory, and communication by separating reusable execution structures from the resources activated by the current EP configuration. This separation enables coordinated resource reclamation and reconfiguration while preserving costly-to-reconstruct state, allowing fast EP scaling without full instance tear-down and reconstruction. Our evaluation shows that FastEEP achieves 4.5×−11.7×4.5\times-11.7\times faster scaling than the existing vLLM-based approach across different models, enabling efficient, fine-grained scaling of MoE serving.

1 Introduction

Mixture-of-Experts (MoE) models have become the dominant paradigm for large language models (LLMs), scaling from billions to trillions of parameters [1–3]. By selectively activating experts, MoE balances model capacity with per-token computation overhead.

Consequently, Expert Parallelism (EP) [4, 5] has emerged as the primary deployment strategy for MoE models. Under EP, experts are partitioned across multiple GPUs, tokens are dispatched to their routed experts for computation, and the resulting outputs are subsequently aggregated. In distributed inference clusters, increasing the EP degree effectively reduces redundant expert weights, which leaves more GPU memory available for KV caches and runtime execution. As a result, real-world MoE deployments scale EP across tens

(a)

Figure

(b)

(c)

Figure 1. Fine-grained EP scaling. (a) A wide-EP instance occupies tens of GPUs, so instance-level scaling moves resources in units far coarser than demand changes. (b) A new model need not evict the MoE instance: the instance can give up some GPUs and keep serving. (c) ElasticMoE [8] pre-starts one instance per EP configuration but cannot change the EP degree of a running instance.

or even hundreds of GPUs [3]. Moreover, driven by continuous advances in interconnect and network fabrics (e.g., the CloudMatrix384 superpod [6] and NVL72/144 [7]), the EP scale continues to expand.

However, while a large EP degree reduces serving costs, it compromises scaling elasticity. Dynamic auto-scaling is essential for handling fluctuating compute demands in modern inference systems, e.g., per-model request spikes in Model-as-a-Service (MaaS) [9], dynamic sample completion and entry during offline RL rollouts [10], and the volatile availability of spot instances and opportunistic resources [11]. Although extensive research [12–16] has explored dynamic scaling for LLM inference, prior approaches fundamentally treat an entire model instance as the minimum scaling granularity. While this instance-level scaling suffices for early dense models, where a single instance typically fits within a handful of GPUs, it becomes highly impractical for large-scale Expert Parallelism (EP) deployments spanning hundreds of GPUs and creates a severe dilemma. Deploying with a large EP degree restricts scaling elasticity, inevitably leading to compute resource over-provisioning during low-demand periods. Conversely, opting for a smaller EP degree improves scaling elasticity, but incurs a heavy memory penalty due to the redundant replication of model weights.

To break this dilemma, this paper advocates for intra-instance elasticity via dynamic EP scaling, which en-

*Yunfei Feng and Jingkai He contributed equally to this work and are co-first authors.

†^{\dagger}Correspond to: fengerhu1@sjtu.edu.cn ables fine-grained elastic scaling by dynamically adjusting the EP degree at runtime. During periods of surging compute demand, the system expands the EP degree to handle higher loads. When demand decreases, FastEEP reduces the EP group size to release idle compute resources while keeping the serving instance active, thereby avoiding instance tear-down and reconstruction. Intra-instance EP scaling pushes scaling granularity down to the single-GPU level, ensuring that provisioned compute resources precisely match highly dynamic workload demands.

However, enabling dynamic EP scaling is non-trivial. An MoE inference instance operates as a stateful, tightly coupled system rather than a collection of independent workers. As a result, scaling the EP degree up/down requires reconstructing global cluster state. Existing implementations trigger instance-wide execution stalls lasting from several seconds to tens of seconds, leaving GPU resources idle and causing severe Service Level Objective (SLO) violations for requests.

Our key insight is partial state reuse. We divide serving state into persistent and reconfigurable components. Reusing persistent structures, such as per-GPU runtimes and pre-negotiated collective communicators, avoids expensive distributed re-initialization. Asynchronous online reconfiguration updates the remaining state while serving continues, leaving only a brief coordinated transition.

To this end, we present FastEEP, an elastic MoE inference system that operationalizes partial state reuse. Specifically, FastEEP addresses the following three challenges.

Challenge-1 (Network): Immutable communication groups. EP inference relies on Data Parallel (DP) collectives and EP All-to-All communication, both of which operate over pre-established communicators (e.g., NCCL groups [17]). Under the Single Program, Multiple Data (SPMD) paradigm, these collective operations mandate that every rank enters the call before execution can proceed. Existing communication groups cannot dynamically accommodate changing membership. Every EP scale-up/down forces the cluster to tear down active communicators and perform distributed re-initialization for new ones, which takes several to tens of seconds and incurs a cluster-wide stop-the-world pause.

Challenge-2 (Memory): Memory reclamation destroys execution contexts. Scaling down must aggressively release GPU memory. Although model weights and KV caches consume a large share of memory capacity, our empirical analysis reveals that transferring/reloading them is not the primary latency bottleneck. Instead, rebuilding components of the execution context, such as computation graph [18] buffers, kernel workspaces, and communication buffers, accounts for the vast majority of scaling latency. Purging these runtime states destroys persistent execution structures and forces costly network handshakes and graph recapture during scale-up.

Challenge-3 (Runtime): Safe worker retention and reuse. To eliminate GPU worker creation and initialization overheads during scale-up, the system retains scaled-down workers so they can be recycled. A target worker must stop GPU computation and remain alive, while active workers continue serving outside a brief coordinated transition. However, a worker's execution is tightly coupled with the rest of the cluster: it computes attention for its local requests and executes expert layers for tokens dispatched from remote ranks. Even if a worker drains its local requests, remote GPUs may still route tokens to its hosted experts. The system must therefore toggle a worker's participation safely without discarding its initialized state.

To solve the challenges, we propose the following designs.

Design-1: Reusing communicators through flexible group splitting. FastEEP creates a parent NCCL communicator over the maximum worker set and retains its rank identities and bootstrap state. Each resize derives a subgroup containing only active workers, so collectives do not wait for inactive ranks. For expert dispatch and combine, a NIXL mask hides the same inactive ranks while connections among active peers remain in place. Switching the subgroup and mask together changes who communicates without rebuilding the distributed instance. Because every subgroup comes from the parent, later scale-up can reintroduce previously inactive workers.

Design-2: Reusing GPU context with fine-grained offloading. FastEEP reclaims HBM from an inactive worker while preserving the runtime objects that are expensive to create. CUDA virtual memory lets it retain the device addresses of weights, KV-cache allocations, and graph buffers while releasing the physical pages behind them. Contents follow their use: data that must survive is backed up, replicated weights are fetched from active workers, and request-specific KV state is moved or reconstructed. Graph buffers return to the addresses recorded in captured CUDA Graphs, allowing replay without recapture. Communication buffers are reclaimed only after remote access has stopped, so their release does not invalidate the retained communication state.

Design-3: Safe worker retention and reuse through coordinated sleep. FastEEP drains or moves requests off a target worker while making its experts available on the remaining workers. At a safe point, it switches request routing, expert placement, and communication membership together. After in-flight work finishes, the target skips GPU execution but keeps its process, executor, and CPU control threads alive; peers no longer send it tokens. On scale-up, the same worker rejoins only after its memory and connections are restored, avoiding reinitialization.

We implement FastEEP on vLLM and evaluate it across EP sizes from 2 to 16. Across six transitions on each measured model, FastEEP scales in 4.2–13.4 s, achieving geometric-mean speedups of 7.0×7.0\times over vLLM Elastic EP and 22.0×22.0\times over restart. FastEEP also preserves steady-state throughput and enables colocated services to release and reassign GPUs without instance reconstruction.

Figure

(b) Time since process start (s)

(c) per rank, GiB

Figure

Figure 2. Bringing one DeepSeek-V2-Lite rank online (DP=8, EP=8). (a) Runtime state reaches 6.32 GiB before weights are accounted for. (b) The rank reaches steady state after 126 s in six phases, of which only weight load moves model data. (c) The resulting 10.90 GiB of runtime state exceeds the 9.62 GiB of model weights on the rank.

References (20)