Private Deployment of a 671B MoE Model on a Four-Node Unified Memory Cluster: Networking, Storage, and Benchmarks

    This article examines a private inference deployment of a 671B-parameter open-source MoE model on a four-node unified-memory cluster connected through a single 400G switch over RDMA. It covers the rationale for multi-node clusters, the star network topology, TP=4 for Attention layers and EP=4 for expert layers, a three-tier storage design spanning unified memory, NVMe SSD, and version snapshots, and vLLM configuration with continuous batching, PagedAttention, speculative decoding, and FP4 quantization. It also reports baseline, single-scenario, and mixed-load test results, including throughput, latency, long-document processing, complex reasoning, and coding/Agent tasks, with notes on test conditions and measurement limitations.

    1. Why Build a Multi-Node Cluster

    Enterprises often run large models in their own data centers to meet data privacy and compliance requirements. A single machine has limited memory capacity and compute throughput, making it difficult to run mixture-of-experts (MoE) models with hundreds of billions of parameters smoothly. One approach is to connect multiple unified-memory compute nodes with a high-speed network into a cluster, combining memory and compute so that larger models can run locally.

    The solution tested in this article uses four unified-memory AI compute nodes connected through a 400G switch to form an RDMA-interconnected inference cluster. Each node is equipped with a 20-core ARM CPU and high-bandwidth unified memory. The cluster provides a total of 512GB of shared memory, 8TB of NVMe SSD storage, and a nominal theoretical peak of up to 4 PFLOPS under FP4 sparse precision. The deployed model is a 671B-parameter open-source MoE model that activates about 16.8B parameters per inference.

    2. Networking and Parallelism Strategy

    1. Understanding the Network Topology

    Each of the four nodes connects to the same 400G switch through a ConnectX-7-class NIC. This is a single-stage star structure, not a multi-level fat tree. Its advantages are fewer hops and lower latency; its disadvantage is that a switch or link failure can interrupt the entire cluster. Production environments should use dual links or other network redundancy.

    Nodes use the RDMA protocol to directly access each other’s memory, so data copies do not pass through the CPU kernel, which helps keep cross-node communication latency low. Each MoE layer must exchange intermediate activations between nodes, so communication latency directly affects end-to-end performance.

    2. Choosing a Parallelism Method

    The cluster supports two parallelism methods:

    • Tensor parallelism (TP): splits the weight matrix of a single layer across four nodes and synchronizes results through AllReduce after computation. It has high bandwidth requirements and is suitable when the computation volume of a single layer is much larger than the communication volume.
    • Expert parallelism (EP): places different experts as whole units on different nodes, and routing sends requests to the corresponding node based on token activation results. Communication occurs only before and after expert computation.

    This deployment uses TP=4 for the Attention layers and EP=4 for the expert layers. In testing, cross-node AllReduce bandwidth utilization over the 400G RDMA network exceeded 85%. This was an observed value during testing; the source does not provide a sampling window, and it should be re-measured in a different environment.

    3. How the Three Storage Tiers Are Divided

    The original model weights exceed 650GB when stored in FP8, far more than a single node’s memory. The cluster addresses this through unified memory and on-demand loading. Storage is divided into three tiers:

    • Tier 1 is high-bandwidth memory, totaling 512GB. It stores currently active expert weights, the KV Cache for Attention layers, and intermediate activations. Calculated in FP8, the activated parameters themselves are about 16.8GB. At runtime, about 35GB is actually reserved for hot expert cache and runtime buffers. The difference is estimated to come mainly from shared layers, Attention weights, and buffers; this is an estimation basis, not an exact statistic.
    • Tier 2 is NVMe SSD, totaling 8TB, holding all model weights. When experts are not in memory, the system loads them from SSD by page through DMA.
    • Tier 3 is model files and version snapshots, stored in a separate SSD partition. The management platform handles version rollback and updates.

    The SSD-to-memory channel has a theoretical bandwidth of about 64GB/s under PCIe 5.0. In continuous conversation tests, cold expert access accounted for about 22% (that is, a hit rate of about 78%), average loading latency was about 3.2ms, and the increase in per-token generation latency was kept within 5%. The statistical window and expert granularity were not recorded separately; these figures should be treated as reference values.

    4. How the Inference Engine Is Configured

    The deployment process has four steps: model import, partition mapping, engine startup, and gateway routing. During import, the system identifies mixed FP8/FP4 precision and verifies file integrity. Partition mapping distributes the 671B parameters across the memory address spaces of the four nodes according to inter-layer dependencies, keeping prefill-stage load deviation across nodes below 3%. The engine uses vLLM with TP=4 and EP=4. The AI gateway handles load balancing, flow control, and circuit breaking.

    Four engine parameters are key configurations:

    • Continuous batching: requests join the execution sequence immediately after arrival instead of waiting for a batch to fill. According to test data, first-token latency under 32-way concurrency decreased by about 40% on average.
    • PagedAttention: KV Cache is allocated in blocks of 16 tokens to reduce memory fragmentation caused by long sequences.
    • Speculative decoding: a small draft model shares the shared-expert part of the MoE with the target model. Each step speculates 4 tokens, which are verified by the target model and accepted in batches. On code-generation samples, decoding speed improved by about 1.8x. The sample size was small, so this is for reference only.
    • FP4 quantization: linear layers in the expert network use FP4 matrix multiplication, with scaling factors determined by a calibration set. Measured perplexity change was less than 0.5%.

    It should be noted that 16K was the per-sequence length configuration limit in this batch stress test, not the model’s capability limit. The model’s theoretical context window is 1M tokens. The longest scenarios covered in this test were a 32K-token context-memory check and a long-document task of about 150,000 characters.

    5. Test Data and Test Conditions

    Testing was divided into three phases: baseline performance, single-scenario tests, and mixed-load stability testing. Clients called the AI gateway over HTTP/HTTPS, using wrk and custom Python scripts to simulate different concurrency levels and request types.

    Scenario Test conditions Main results
    Baseline performance Input 512 tokens, output 256 tokens Peak prefill throughput about 12,000 tokens/s; single-request decoding about 52 tokens/s; 32-way concurrent decoding totaling 1,650 tokens/s, averaging about 19ms per token; first-token latency averaging about 380ms (P95 620ms); average single complete request 8.2s
    Everyday Q&A 50 samples, 10 consecutive dialogue turns Average response 1.2s per turn; first-token latency increased only about 15% when context grew from 2K to 12K tokens; key information was still accurately remembered at 32K tokens
    Long-document processing About 200-page PDF, about 150,000 characters Full-text prefill about 38s, decoding about 4s; parameter extraction F1 0.97; JSON output conformed to the predefined schema; citation accuracy for comparison of two specification documents about 94%
    Complex task reasoning Order, inventory, and delivery-schedule tables; 40 independent tests All step executions completed in 40 tests; arithmetic and percentage calculations all correct; end-to-end about 6.5s (prefill 1.8s, decode 4.7s)
    Coding and Agent About 8K-file codebase; LeetCode medium problems; 20 Agent tasks One-pass rate 68%, 89% after allowing one self-repair; unit-test statement coverage 91% and branch coverage 85% for 5 public methods; Agent completed 17 tasks, failed 3, all failures due to external tools returning format anomalies