Deploying Large MoE Models on a 4-Node GB10 Cluster: Key Implementation Details

    Large-parameter MoE models usually exceed the memory and compute capacity of a single workstation. Sharding the model across multiple nodes with tensor parallelism is a common path for local deployment. Using a small cluster of four NVIDIA GB10 nodes (the chip platform behind DGX Spark) as an example, this article covers the hardware limits, storage tiering, RoCE network configuration, and deployment steps. No performance figures are given unless reproducible; readers should benchmark using the method described at the end.

    1. Understand the Hardware Boundaries First

    Each GB10 node integrates a 20-core Arm CPU and a Blackwell-architecture GPU, with the CPU and GPU sharing 128GB of unified LPDDR5X memory. NVIDIA’s published specification is roughly 1 PFLOPS of FP4 sparse compute per node, or about 4 PFLOPS across four nodes. Each node is equipped with a ConnectX-7 NIC at 200GbE.

    Two points deserve special attention. First, the four nodes offer 512GB of memory in total, but that memory is independent per node. Each node can only directly access its own 128GB, so model weights must be sharded across nodes. Second, 4 PFLOPS is a peak figure based on sparse FP4. Real inference throughput is constrained by memory bandwidth, communication latency, and batch size, and is often far below the peak.

    Item Single Node 4-Node Cluster
    Unified memory 128GB 512GB (distributed across nodes)
    Weights that fit directly Models under 128GB Larger models via tensor parallel sharding
    Inter-node communication None Relies on RoCE, with collective communication at every layer
    Best suited for Single user or small models High concurrency, long context, large-parameter models

    2. Networking: Switched Topology and RoCE Configuration

    The four nodes can be connected in a star topology through a 400G switch. Each node communicates only with the switch and never forwards traffic for other nodes, keeping the extra load on node CPUs and NICs low. RoCE (RDMA over Converged Ethernet) bypasses the kernel TCP/IP stack and transfers data directly between NICs, reducing latency and CPU overhead.

    Tensor parallelism performs an All-Reduce in every forward pass. If the network drops packets, NCCL will retransmit or time out, which shows up as the inference service stalling. RoCE therefore must be configured as a lossless network:

    • PFC (Priority Flow Control): enable only for the priority class used by RoCE, to avoid affecting other traffic.
    • ECN (Explicit Congestion Notification): work with DCQCN to throttle early during congestion and reduce packet loss.
    • MTU: keep it consistent across the entire path—9000 (jumbo frames) is common—and verify it on every node and switch port.
    • PFC and ECN thresholds: set them according to your switch vendor’s documentation, apply the same configuration to all ports, and validate it.

    3. Storage Tiering: What Goes in Memory, What Goes on NVMe

    A MoE model involves four main data types: model weights (including expert weights), KV cache, runtime activations, and the model files themselves. Their access frequencies differ greatly, so they belong at different tiers.

    Data Placement Reason
    Model weights and hot experts Unified memory Accessed for every token; latency-sensitive
    KV cache Unified memory Grows with context length; read/written at every decode step
    Model files and checkpoints NVMe SSD Mostly read sequentially at load time
    Cold data, logs, evaluation results NVMe SSD Not on the inference critical path

    NVMe SSDs are not suitable as a tier for data accessed at every token. Their bandwidth and latency are far worse than unified memory; if per-step access to weights or KV cache lands on the SSD, generation speed drops noticeably. The main value of SSDs is faster model loading, checkpoint storage, and general data hosting.

    Two concepts should be distinguished when discussing SSD tiering. PagedAttention manages KV cache blocks in memory and does not itself write data to NVMe. Older versions of vLLM provide a CPU swap-space parameter that can offload part of the KV cache to host memory. Whether a given vLLM version supports paging KV cache or weights to NVMe on demand should be confirmed against the official documentation for that version. If your team needs this capability, verify version support first, or implement it yourself and separately measure the latency and throughput impact of swapping in and out.

    Some sources claim that “KV cache usage grows exponentially.” This is inaccurate. KV cache size grows linearly with sequence length and the number of concurrent requests, and capacity planning should be based on that relationship.

    4. Deployment Steps and Configuration Checklist

    Before deployment, pin down the following versions and configurations, and ensure all four nodes are identical:

    1. OS and drivers: use the same Linux distribution and NVIDIA driver version everywhere.
    2. CUDA and NCCL: all nodes must use the same versions; record the version numbers for troubleshooting.
    3. vLLM and Python environment: install from the same image or a single locked requirements file. Containerized deployment with a fixed image tag is recommended.
    4. Parallelism configuration: when each of the four nodes has one GPU, set tensor-parallel-size to 4, i.e., tensor parallelism across nodes. Cross-node tensor parallelism moves a large amount of data per layer. If network conditions are limited, switch to pipeline parallelism (pipeline-parallel-size) to reduce communication frequency, at the cost of idle time from pipeline bubbles. Benchmark both options. Cross-node launches are typically handled through Ray.
    5. NCCL environment variables: use NCCL_IB_HCA to specify the RoCE NIC, and N