Running MoE Models on a 4-Node Blackwell Cluster: From Spec Verification to Deployment Acceptance

    This article uses a 4-node Blackwell cluster as an example to explain the hardware specification checks and deployment acceptance steps required before running tens-of-billions-parameter Mixture of Experts (MoE) models. Readers will learn how to evaluate if a hardware solution is sufficient, which commands to execute at each step, and what metrics serve as pass criteria. The thresholds provided are examples and should be adjusted based on your team's Service Level Objectives (SLOs) and vendor baselines.

    This article uses a 4-node Blackwell cluster as an example to explain the hardware specification checks and deployment acceptance steps required before running tens-of-billions-parameter Mixture of Experts (MoE) models. After reading, you will be able to determine whether a hardware solution is sufficient, know which commands to run at each step, and understand which metrics can be used as pass criteria. The thresholds in this article are examples; teams should adjust them according to their own Service Level Objectives (SLOs) and vendor baselines.

    1. Spec Verification

    Before procurement, write the specifications into a verifiable table. The specific values should be based on the selected vendor’s spec sheet; the table below is only a template.

    Check Item Spec Record Check Command Pass Criteria
    Node Model and Quantity 4 units, identical model and firmware version Vendor management tool, or dmidecode -s system-product-name All four models and firmware versions are identical
    CPU 20-core Arm CPU per node, 80 cores total lscpu Core count matches the spec sheet
    GPU 1 Blackwell architecture GPU per node nvidia-smi -L All four nodes recognize the GPU
    Unified Memory Approx. 128GB per node free -h Visible capacity is within the system reserved range compared to the spec sheet
    NIC 1 x 200Gbps RDMA NIC per node ibstat, ibdev2netdev Port status is Active, speed is 200Gbps
    Switch Port count, per-port speed, switching capacity, cable type Switch CLI to check ports and capacity Switching capacity meets the calculation formula below
    Driver and OS GPU driver, CUDA, kernel version nvidia-smi, uname -r Versions are identical across all four nodes

    The 128GB unified memory of each node is shared by the CPU and GPU, and it is part of the system memory. The four nodes total approximately 512GB, which is the sum of the capacity of each node. This memory does not have cross-node unified addressing and cannot form a shared VRAM pool. When running a model across nodes, weights must be partitioned to each node, computing is completed via tensor parallelism or pipeline parallelism, and intermediate results between nodes depend on the RoCE network for transmission. Documentation should state “the four-node unified memory totals approximately 512GB”, not “4 nodes total 512GB of VRAM”. The available budget, bandwidth characteristics, and allocation methods for the two are different, and capacity planning should be calculated separately.

    Peak computing power must specify four dimensions: precision (e.g., FP8, NVFP4), sparse or dense, single-node or cluster, and test conditions (frequency, power mode, software version). For example, “single-node NVFP4 sparse peak” and “cluster dense FP8 peak” cannot be directly added or compared. Peak numbers missing any dimension cannot be used for capacity planning.

    Switch bandwidth is calculated on a bidirectional basis. Each 200Gbps port in full-duplex mode has 200Gbps in each direction. When four nodes are fully loaded simultaneously, the unidirectional aggregated traffic is 4 × 200Gbps = 800Gbps, and the bidirectional total is 1.6Tbps. The judgment formula for switching capacity is: Switching capacity (bidirectional) ≥ Number of ports × Per-port speed × 2. If the spec sheet only provides unidirectional figures, convert them to bidirectional first before comparing. The conclusion should be written as: “The bidirectional switching capacity of this switch is X Tbps, which is higher than the cluster’s full load requirement of 1.6Tbps. The switching capacity is sufficient.” If it does not meet the requirement, the conclusion should state: “Switching capacity is insufficient; replace the switch or reduce the convergence ratio.”

    2. vLLM and KV Cache Budget

    In a standard multi-head attention model, the number of bytes occupied by KV Cache per token is: 2 × Number of layers × Number of KV heads × Head dimension × Bytes per element. The 2 represents two caches for K and V. For models using compressed structures such as MLA, calculate according to the official formula provided by the model.

    Assuming the model weights are estimated at 100GB using FP8, and a 4-way split is used, each node bears 25GB. The budget for each node is as follows (example values, must be replaced with measured data).

    Item Calculation Method (Per Node) Example Value
    Unified Memory Total Spec sheet 128GB
    System & Other Process Usage Measured via free -h 12GB
    Framework & CUDA Context Measured from startup logs 6GB
    Model Weight Shards Total model weights ÷ Split ways 25GB
    Activation & Comm Buffers Measured based on max batch and context 8GB
    Safety Margin 10% of total 12.8GB
    Available KV Cache Subtracted from the above 64.2GB

    Under unified memory, the system and GPU share the same pool. vLLM’s --gpu-memory-utilization parameter depends on the framework’s judgment of available memory; before starting, you must confirm the usage of other system processes. It is recommended to start with 0.7, and gradually increase it after confirming stability.

    Example startup command:

    1. ray start --head --port=6379
    2. ray start --address='<Head_Node_IP>:6379' # Execute on the other three nodes
    3. ray status
    4. vllm serve <model_path> --tensor-parallel-size 4 --distributed-executor-backend ray --gpu-memory-utilization 0.7 --max-model-len 8192

    Pass criteria: ray status shows all 4 nodes are Alive, with 1 GPU per node. The number of tokens that can be accommodated by KV Cache in the startup log is no less than Target concurrency × Average context length × 1.2.

    3. RoCE Networking

    Check items and commands:

    1. Port status: ibstat, port is Active, speed is 200Gbps.
    2. RoCE mode and GID: ibv_devinfo -v, confirm that the GID type used is consistent with the switch configuration.
    3. MTU: ip link show <interface>, consistent with switch configuration.
    4. PFC and ECN: mlnx_qos -i <interface> to check PFC status, policy must be consistent with the switch side.
    5. Error counts: ethtool -S <interface> | grep -i err, counts should not increase before and after testing.

    For single-link bandwidth testing, execute on the server and client respectively:

    1. # Server side
    2. ib_write_bw -d mlx5_0 -F -s 65536 -D 30 --report_gbits
    3. # Client side
    4. ib_write_bw -d mlx5_0 -F -s 65536 -D 30 --report_gbits <Server_IP>

    Pass criteria: Unidirectional bandwidth is no less than 170Gbps (approximately 85% of the nominal 200Gbps), and error counts do not increase during the test.

    Collective communication test using nccl-tests:

    1. mpirun -np 4 --host <ip1>,<ip2>,<ip3>,<ip4> \
    2. -x NCCL_IB_HCA=mlx5_0 -x NCCL_DEBUG=INFO \
    3. ./build/all_reduce_perf -b 8 -e 1G -f 2 -g 1

    Pass criteria: The busbw for a 1GB message is no less than 80% of the team baseline, and the NCCL log shows that IB or RoCE transport is used, rather than Socket. For IP latency between nodes, test with ping -c 100, the average should not exceed 0.1ms.

    4. Tiered Storage

    Tiered storage is divided into three layers, each holding different content:

    1. Local NVMe: Model weights, container images, compilation cache.
    2. Shared storage (NFS or object storage): Model repository, logs, backups.
    3. Memory: KV Cache and runtime buffers. KV Cache is not written to disk; do not count it into storage capacity when calculating.

    Check commands:

    1. df -h # Remaining space of each partition
    2. lsblk -d -o NAME,SIZE,ROTA,MODEL # Disk model and capacity
    3. fio --name=rr --rw=randread --bs=128k --size=10G --numjobs=4 --iodepth=32 --runtime=60 --time_based --group_reporting
    4. sha256sum -c model.sha256 # Model file verification

    Pass criteria:

    1. Remaining local NVMe space is no less than 2 times the model weights, leaving room for new versions and cache.
    2. Random read throughput is no less than 80% of the team baseline, and p99 latency is not higher than the team-set limit.
    3. Cold load time for 100GB weights does not exceed 10 minutes.
    4. sha256sum -c returns OK for all files.
    5. Partition usage across all partitions is not higher than 80%.

    5. Inference Service Acceptance

    Acceptance is divided into five steps, executed in order. Do not proceed to the next step if the previous one fails.

    1. Startup and Health Check: curl http://127.0.0.1:8000/v1/models returns the model name.
    2. Functional Test: Send multiple sets of fixed prompts to confirm output is non-empty and the finish reason is normal.
    3. Stress Test: Use vllm bench serve, parameters should be based on the --help output of the installed version. Example:
    1. vllm bench serve --backend openai --base-url http://127.0.0.1:8000 --model <model_name> --dataset-name random --random-input-len 1024 --random-output-len 256 --num-prompts 1000 --request-rate 8
    1. Long-term Stability Test: Run continuously for 4 hours under 80% of the target load, recording the trend of various metrics.
    2. Result Judgment: Compare against the thresholds in the table below. All must pass before going live.
    Metric Collection Method Pass Threshold (Example)
    Request Error Rate Failed requests from stress test output No higher than 0.1%
    TTFT p95 Stress test output No higher than team SLO, example is 2 seconds
    TPOT p95 Stress test output No higher than team SLO, example is 50 milliseconds
    Output Throughput Stress test output No lower than 90% of capacity planning value
    KV Cache Usage Peak vLLM’s /metrics endpoint (metric name depends on installed version) No higher than 90%
    Memory Availability Periodic sampling via free -h No less than 10%
    Node Stability ray status, dmesg No drop-offs, no OOM records

    Rollback conditions: Any key metric exceeds the threshold for 3 consecutive samples; OOM or NCCL timeout occurs; node restarts or Ray node drops offline. During rollback, switch back to the previous version’s configuration and model files.

    Pre-launch preparations: Back up service configurations and model verification files; conduct stress tests in an independent environment or during off-peak hours without using production traffic. Versions of drivers, firmware, CUDA, NCCL, and vLLM must be consistent and recorded in the change log. Back up before modifying kernel parameters or switch configurations. Before deleting a model directory, confirm that no other services are reading from the shared storage.