Deploying a Large MoE Model on a 4-Node Converged Cluster: Architecture Essentials and Key Considerations

    MoE (Mixture-of-Experts) models are well suited to on-premises deployment, but memory capacity and inter-node communication—rather than compute—often become the bottleneck. This article walks through the architecture of a 4-node converged cluster with a 400G-class switch, covering hardware sizing, tiered memory-to-SSD storage, star topology networking with RoCE, FP8+FP4 mixed precision, 1M-token long-context handling, and practical validation methods. It also lists the parameters you must record for reproducibility and the most common deployment pitfalls, so you can adapt the reference configuration to your own environment with measured data.

    Why Deploy MoE Models Locally

    When enterprises adopt large language models, they typically face three constraints at once: data must stay within their own domain, business scenarios require custom fine-tuning, and pay-as-you-go public cloud API costs keep growing with usage.

    MoE (Mixture-of-Experts) models activate only a subset of experts per inference step, so per-inference compute is lower than a dense model with equivalent total parameters. However, all expert weights still need to reside in accessible storage. As a result, the bottleneck in local deployment is usually not compute, but memory capacity and inter-node communication overhead.

    Reference Cluster Hardware Configuration

    The setup discussed in this article consists of 4 compute nodes and a 400G-class switch in a star topology. The main specifications are:

    Item Reference Value Notes
    Compute nodes 4 nodes, each with a 20-core ARM CPU and a next-generation Blackwell architecture GPU 80 CPU cores across 4 nodes
    Unified memory 512GB LPDDR5X total across 4 nodes Each node accesses its local memory directly; cross-node data travels over the network. This is not a shared memory pool spanning nodes
    Storage 8TB NVMe SSD Holds offloaded model data and intermediate states
    Node NICs 200Gbps smart NIC per node Connected to the 400G-class switch, with RDMA and RoCE enabled
    Rated compute Up to 4 PFLOPS NVFP4 sparse compute This is a theoretical peak; actual throughput must be verified by testing

    When planning your own deployment, replace every item in this table with measured values from your environment, especially sparse compute capacity and memory size.

    Software and Management Stack

    The inference engine is an open-source solution that supports FP8+FP4 mixed precision, with a nominal context window of 1M tokens. Model distribution, deployment orchestration, and the inference API gateway are managed through a containerized management platform, allowing compute resources to be pooled and exposed as services.

    Before deployment, confirm the following parameters:

    • Model name, total parameter count, and number of experts activated per token
    • Inference engine and version
    • Combination of tensor parallelism (TP), expert parallelism (EP), and pipeline parallelism (PP)
    • Quantization configuration and launch parameters

    None of these can be omitted. Without them, the deployment result cannot be reproduced.

    Tiered Storage: Keep Hot Data in Memory, Push Cold Data to SSD

    MoE model weights are large. Keeping frequently accessed weights and KV Cache in memory while offloading low-frequency lookup data to SSD frees up memory space. The trade-off is that SSD read latency is far higher than memory access. Whether offloading makes sense depends on data access frequency and the latency budget.

    When planning tiered storage, focus on these metrics:

    • Memory capacity: how much is used by weights, KV Cache, and runtime overhead.
    • SSD bandwidth and latency: whether offloaded data reads fall on the critical path.
    • Eviction thresholds and page size: pages that are too small increase management overhead; pages that are too large waste space.
    • Cache hit rate and P99 latency: these need continuous monitoring—do not rely on averages alone.
    • SSD write endurance: frequent eviction consumes write cycles. Estimate lifespan using the vendor’s rated TBW (terabytes written) figure.

    Star Topology and Tensor Parallelism

    Tensor parallelism requires frequent inter-node communication during inference, placing high demands on bandwidth and latency. Compared with node-to-node direct-connect mesh or ring topologies, a star topology has these characteristics:

    Dimension Star (via switch) Mesh or Ring (direct-connect)
    Cabling and operations Centralized cabling, easy to manage More cables, more complex topology
    Communication path Data goes directly between nodes through the switch, no intermediate forwarding Multi-hop forwarding may be needed with many nodes
    Failure domain The switch is a single point of failure and requires redundancy A single link failure has a smaller blast radius
    Scalability Adding nodes depends on available switch ports Adding nodes requires rewiring
    Cost Switch and port costs are concentrated More NICs, with cable costs spread out

    RoCE networks require tuning. Congestion control settings (such as PFC and ECN) must be consistent between the switch and the NICs. Without tuning, packet loss and retransmissions slow down collective communication, and the problem is hard to detect from average latency alone.

    FP8+FP4 Mixed Precision

    A common approach is to use FP8 for attention computation and precision-sensitive layers, and FP4 for expert network weights. FP4 reduces memory footprint and improves throughput per unit of compute. However, accuracy loss must be verified against an evaluation set—it cannot be assumed to be lossless.

    Before implementation, establish a baseline with FP8 or higher precision, recording evaluation scores, throughput, and memory usage, then compare against the FP4 version. Without baseline data, do not claim that precision impact is “negligible.”

    Long Context: Conditions for Actually Using 1M Tokens

    The nominal 1M-token context window should be understood together with how KV Cache grows. KV Cache memory usage grows linearly with context length, and also increases with the number of concurrent requests. Therefore, the maximum length a single request can reach depends on concurrency level and remaining memory headroom.

    When swapping KV Cache out to SSD, consider the following:

    • Eviction and swap-in latency, and how much swap-in increases time-to-first-token.
    • Page block consistency, to avoid reading partially written data.
    • Fallback plans for SSD failure, such as rejecting new ultra-long requests or temporarily lowering the maximum context length.

    Test in tiers: start with shorter contexts, then gradually increase toward the target length. At each tier, record time-to-first-token, memory usage, and SSD read/write activity.

    How to Validate Business Scenarios

    The original tests covered three scenario types: everyday Q&A, long-document parsing, and multi-turn Agent orchestration. Those conclusions are qualitative only—no input/output lengths, concurrency levels, or measurement methodology were provided—so readers cannot reuse them directly.

    For your own validation, record the following:

    • Distribution of input and output lengths
    • Concurrency level and request arrival pattern
    • Time to first token (TTFT), time per output token (TPOT), and throughput, with both P50 and P99
    • Accuracy evaluation results
    • A comparison baseline, such as a single-node setup or public cloud API

    For Agent scenarios, also record tool-call success rate and task completion rate. Only with complete data do conclusions carry real reference value.

    Frequently Asked Questions

    Q: Are 4 nodes enough?
    A: It depends on model size, concurrency, and context length. Start by estimating the memory needed for model weights and KV Cache, then verify with load testing.

    Q: How to choose between local deployment and public cloud?
    A: Local deployment suits organizations with strict data compliance requirements, stable workloads, and an operations team. Public cloud elastic compute suits those with fluctuating demand or a need to get started quickly. The two can also be combined: keep sensitive data on-premises and route general requests to the cloud.

    Q: How to choose parallelism for MoE models?
    A: Tensor parallelism splits computation within a single layer, while expert parallelism distributes expert weights. The specific combination should be determined through actual testing of communication overhead and memory usage—don’t simply copy a fixed configuration.

    Q: What are common deployment mistakes?
    A: Treating peak sparse compute as actual throughput; ignoring cross-node communication latency; not setting SSD eviction thresholds, leading to higher tail latency; and failing to keep an accuracy baseline, making it impossible to assess quantization effects.

    Conclusion

    With data kept on-premises, a 4-node converged cluster can support inference for large MoE models. Whether the deployment succeeds comes down to three things: whether the memory-to-SSD tiering matches actual access patterns, whether the star network and RoCE are properly tuned, and whether precision and long-context capability are backed by measured data. Before deploying, replace every conclusion in this article with measurement results from your own environment.