Deploying Large-Scale MoE Models on Multi-Node Edge Compute Clusters: Practice and Performance Testing

    A hands-on guide to deploying very large MoE (Mixture of Experts) models on a four-node edge compute cluster with unified memory and 400G RoCE networking. This article covers the deployment architecture, memory tiering strategy with vLLM, multi-node tensor parallelism setup, and a four-dimension performance evaluation framework covering TTFT, token throughput, and P99 latency under concurrency.

    Deploying Large-Scale MoE Models on Multi-Node Edge Compute Clusters: Practice and Performance Testing

    Background and Problem Statement

    As large model parameter counts keep growing, private on-premises deployment faces a core challenge: a single node’s GPU memory or unified memory capacity is not enough to hold the full model weights and inference context. Take today’s mainstream large-scale MoE (Mixture of Experts) architecture: even with FP8 or FP4 mixed-precision quantization, model weights, KV Cache, and expert routing lookup tables combined often reach the hundreds-of-gigabytes scale—far beyond what a single inference card or node can handle.

    There are three common approaches in the industry:

    1. Stacking multiple GPUs in one machine: scalability hits a ceiling due to PCIe/on-board interconnect topology and chassis power limits;
    2. Relying on large cloud clusters: data leaves the private domain, creating privacy and compliance pressure, plus high long-term costs;
    3. Building a distributed inference cluster from multiple “small compute nodes”: using edge-class nodes with unified memory architecture as the basic unit, combined with high-speed switches and RDMA networking, to solve large model deployment at the rack scale.

    This article focuses on the third path. Using a reference architecture of “4 nodes + a 400G-class switch” as an example, it walks through the full process—from deployment architecture design and model loading strategy to performance benchmarking and scenario validation—and distills a reusable evaluation methodology.

    Deployment Architecture Design

    Hardware Topology

    The logical topology of the reference setup looks like this:

    1. ┌──────────────────┐
    2. │ 400G High-Speed Switch │
    3. └───┬────┬────┬───┘
    4. ┌──┴─┐┌─┴──┐┌──┴─┐
    5. │Node1││Node2│ ... │Node4│
    6. └────┘└────┘└────┘

    Each compute node uses an integrated design: “multi-core ARM CPU + Blackwell-architecture GPU + large-capacity LPDDR5X unified memory.” The key advantage of unified memory is that CPU and GPU share the same physical memory pool, eliminating the memory-copy overhead of traditional architectures—especially friendly to inference scenarios where model weights must be distributed across nodes.

    Key configuration summary:

    • Compute nodes: 4, each integrating roughly a 20-core ARM CPU and a Blackwell-architecture GPU;
    • Total shared memory: 512GB LPDDR5X with unified memory addressing;
    • Total theoretical compute: up to roughly 4 PFLOPS of FP4 sparse compute;
    • Storage: 8TB NVMe SSD in total, for model weight persistence and cold data offloading;
    • Networking: each node has a 200Gbps-class high-speed NIC, connected via a 400G-class switch using RoCE.

    Why a Switched Star Topology

    Two common networking options exist for multi-node inference clusters: direct node-to-node connections, or a star topology through a central switch. In practice, once you reach 4 or more nodes, direct connections grow at O(n²) in cabling, relay nodes take on extra forwarding load, and failure domains become hard to isolate. The switched star topology offers:

    • Clear topology: a unique communication path between any two nodes, making bottlenecks easy to locate;
    • Simple cabling and management: a single switch handles aggregation, and later expansion only requires adding ports;
    • Sufficient bandwidth guarantee: RoCE (RDMA over Converged Ethernet) delivers near-memory-bus latency and throughput, which is the foundation for all-reduce/all-gather collective communication in multi-node tensor parallelism.

    For actual deployment, enable PFC (Priority Flow Control) and ECN (Explicit Congestion Notification) to prevent packet loss under bursty traffic on the lossless network, which would otherwise trigger RDMA retransmissions and degrade latency.

    Model Deployment and Memory Tiering Strategy

    Resource Profile of MoE Models

    Although MoE models have very large total parameter counts, each forward pass activates only a subset of experts. Their resource profile is therefore characterized by “high memory footprint, relatively manageable compute density.” This means the deployment bottleneck lies mainly in memory capacity and inter-node weight distribution bandwidth—not in raw compute.

    Tiered Storage: Unified Memory + NVMe in Concert

    The reference setup uses a classic tiering strategy:

    • Hot tier (unified memory): model weights are sharded across nodes’ unified memory along the tensor-parallel dimension, keeping frequently used experts and activations readily accessible;
    • Warm/cold tier (NVMe SSD): large read-only data such as routing lookup tables and low-frequency expert weights are offloaded to local NVMe, with the inference engine prefetching on demand.

    This approach is well established in the industry (e.g., offline weight loading, expert offloading). The core trade-off is the prefetch hit rate: if routing distribution is long-tailed, combine request-level routing statistics to optimize hot-expert residency.

    Inference Engine and Management Plane

    For inference, use a mainstream open-source engine like vLLM that supports multi-node tensor parallelism and PagedAttention, specifying node roles through environment variables and parallel configuration:

    1. # Example: multi-node tensor parallel launch (parameters shown as generic examples)
    2. vllm serve ./model-dir \
    3. --tensor-parallel-size 4 \
    4. --pipeline-parallel-size 1 \
    5. --max-model-len 262144

    The management plane uses a unified console for model repository management, service orchestration, AI gateway routing, and monitoring/alerting, presenting the multi-node cluster externally as a single inference endpoint and hiding the underlying topology.

    Performance Benchmarking and Scenario Testing

    Build the evaluation matrix along four dimensions, recording Time to First Token (TTFT), token throughput (Tokens/s), and P99 latency under concurrency for each:

    1. Everyday Q&A: short context, low concurrency—mainly validates the baseline latency floor and engine cold-start behavior;
    2. Long document processing: feed tens of thousands of tokens of context, focusing on KV Cache management and multi-node coordination during the prefill phase; for models with 1M-token context windows, watch memory/GPU memory watermarks under long context;
    3. Complex reasoning tasks: multi-step math and logic problems—validates sustained decode throughput stability and watches for rate spikes caused by collective communication jitter;
    4. AI coding and Agents: multi-turn tool calls and long, context-accumulating sessions—tests request queuing strategy and gateway-side session affinity.

    For load testing, use a general-purpose concurrent benchmark script against the OpenAI-compatible endpoint, for example:

    1. import asyncio, aiohttp, time
    2. async def bench(session, prompt):
    3. t0 = time.perf_counter()
    4. async with session.post("http://gateway/v1/chat/completions",
    5. json={"messages": [{"role": "user", "content": prompt}]}) as r:
    6. await r.json()
    7. return time.perf_counter() - t0

    Typical expected findings from real tests include: multi-node tensor parallelism significantly improves TTFT versus a single node in long-context scenarios; everyday short requests suffer some latency overhead from collective communication; and RoCE link stability is the key variable for sustained throughput over long benchmark runs.

    Selection Advice and Summary

    Based on this practice, when evaluating “small compute node cluster” solutions, enterprises should consider four points: first, whether unified memory capacity covers the peak demand of target model weights plus KV Cache; second, whether the network supports RDMA lossless networking; third, whether the storage tiering strategy is configurable to adapt to different MoE routing characteristics; and fourth, whether the management plane provides unified model serving, gateway, and monitoring capabilities to reduce multi-node operational complexity.

    Overall, the combination of a multi-node unified memory cluster, high-speed RoCE networking, and tiered storage offers a viable path for on-premises deployment of hundred-gigabyte-scale MoE models—one that balances privacy compliance with manageable cost, and is well suited to mid-sized and large enterprises with data-egress sensitivity and basic operations capabilities.