Deploying MoE Large Language Models on Multi-Node Clusters: Selection, Optimization, and Benchmarking

    MoE (Mixture-of-Experts) models with hundreds of billions of parameters have very large total parameter counts, but each token only activates a small subset of experts. During inference, bottlenecks typically appear first in memory capacity and inter-node communication rather than GPU compute itself. This article covers the three key questions of multi-node MoE deployment—where weights reside, how nodes exchange data, and under what conditions performance numbers are obtained—along with reproducible validation steps covering hardware verification, memory hierarchy, networking and parallelism strategies, inference engine deployment, and SSD offloading.

    MoE (Mixture-of-Experts) models at the hundred-billion-parameter scale have very large total parameter counts, but each token only activates a small fraction of experts. During inference, bottlenecks tend to appear first in memory capacity and inter-node communication, rather than in GPU compute itself. Deploying model weights across a multi-node cluster requires answering three questions: where the weights reside, how nodes exchange data, and under what conditions the performance numbers were obtained. This article follows these three questions and provides validation steps you can reproduce in your own environment.

    1. Verify Hardware Specifications First

    Before planning your cluster, consult the vendor’s specification sheets for the exact SKUs you purchased—do not rely on figures from industry articles. Items to confirm include:

    1. CPU model and the number of cores per node;
    2. GPU model, quantity, and the HBM capacity and bandwidth of each GPU;
    3. System memory (e.g., LPDDR) capacity and bandwidth per node;
    4. The interconnect between CPU and GPU and its theoretical bandwidth;
    5. Dense versus sparse compute performance, and the corresponding data precisions (e.g., FP8, FP4);
    6. NIC model and port speed. Pay attention to the Gbps vs. GB/s conversion: 1 GB/s is approximately 8 Gbps.

    Compute figures in the same specification often distinguish between dense and sparse performance, and may or may not include the CPU. Write these definitions into your planning documents so that all subsequent discussions share a common baseline.

    Note also that unified memory capacity does not equal usable GPU memory. The operating system, drivers, inference engine, and frameworks all consume a portion of memory. A practical approach is to estimate model residency at 70% to 80% of available capacity, then confirm with monitoring tools in your actual environment.

    2. Understanding Memory Access Between CPU and GPU

    In fused architectures such as Grace Blackwell, the CPU and GPU are connected via a high-speed chip-to-chip interconnect (e.g., NVLink-C2C), allowing both to access a coherent address space. The GPU can therefore read system memory directly, eliminating explicit copy steps. However, this path has noticeably lower bandwidth and higher access latency than the GPU’s local HBM. System memory is better suited for infrequently accessed data, such as cold expert weights or prefetch buffers. Hot data that is read repeatedly for every token should still reside in GPU memory.

    Memory can be organized into three tiers: GPU memory for hot data, unified system memory for warm data, and NVMe SSDs for cold data. The three tiers differ in capacity, bandwidth, and latency. The goal of a tiering strategy is to keep most accesses within the first two tiers.

    3. Networking and Parallelism Strategies

    Inter-node communication in a cluster includes all-reduce operations for tensor parallelism, all-to-all operations for expert parallelism, and point-to-point transfers for pipeline parallelism. These operations are highly latency-sensitive. Complete the following validations before going live:

    • Use RDMA bandwidth and latency testing tools to measure unidirectional and bidirectional bandwidth between every pair of nodes;
    • Use collective communication testing tools (e.g., nccl-tests) to measure the bandwidth curves of all-reduce and all-to-all operations;
    • Verify the lossless network configuration on switches (e.g., PFC and ECN settings, or the corresponding InfiniBand configuration), and record the version of the configuration files;
    • Check whether NICs and GPUs are located near each other in the PCIe topology to avoid cross-NUMA access.

    If measured bandwidth is far below the NIC’s rated value, troubleshoot the network configuration first—do not rush to adjust model parameters.

    The choice of parallelism strategy depends on the model architecture. Expert parallelism places different experts on different devices, changing the communication pattern from regular all-reduce to all-to-all, and may introduce expert load imbalance. Whether to adopt a given parallelism strategy should be based on benchmark results.

    4. Inference Engine Deployment

    The inference engine version (e.g., vLLM), CUDA and driver versions, container image, and startup parameters should all be recorded together. Version inconsistency is a common cause of failed reproductions. The recommended deployment sequence is:

    1. Pin the operating system, driver, and CUDA versions, and verify consistency across all nodes;
    2. Build or pull container images with fixed tags—avoid using the latest tag;
    3. Load a smaller model on a single node first to verify functionality, then scale to multiple nodes;
    4. Use the engine’s health check endpoint to confirm that every node has joined the cluster;
    5. Send fixed test requests through the OpenAI-compatible API and check the output format and content.

    Startup parameters need to be adjusted according to the model configuration. The following parameter descriptions are illustrative only and should not be copied directly:

    1. tensor_parallel_size: set based on the actual number of nodes and GPUs
    2. pipeline_parallel_size: set based on measured network bandwidth and latency
    3. max_model_len: do not exceed the context limit declared in the model configuration file
    4. kv_cache_dtype: use values supported per the engine documentation

    Context length requires particular care. If a model natively supports only a short context, increasing the parameter through external means will not guarantee output quality. Whether a model supports extra-long contexts should be determined by the model card and official configuration files.

    5. Tiered Storage and SSD Offloading

    Placing inactive expert weights on NVMe SSDs allows a larger model to fit within limited memory, but increases access latency. Before enabling offloading, the following conditions must be met:

    • Prefetching must use pinned memory. Otherwise, host-to-device copy speeds will drop significantly;
    • The prefetch queue depth must match the computation pace. A queue that is too shallow causes computation to stall; one that is too deep consumes excessive memory;
    • Record the expert hit rate—the proportion of required experts already in memory. When the hit rate is very low, prefetching yields almost no benefit and only adds IO pressure;
    • Measure the SSD’s read bandwidth and random read latency, and compare them against the model’s actual expert access patterns.

    A fallback path is mandatory when prefetching fails. The common approach is to synchronously load the required experts from SSD, at which point per-token latency increases noticeably. The server should record fallback counts as a metric and configure alerts.

    There are two additional risks to note. First,