Deploying a Large Language Model on a Four-Node GB10 Cluster: Key Steps

    This article covers the key steps for deploying a Mixture-of-Experts (MoE) large language model on a four-node GB10 cluster. It explains when this setup fits, how to verify hardware, networking, and storage, how to configure the model and inference engine, and how to run load tests. It also includes a deployment checklist.

    1. Scope: Check Whether This Approach Fits Your Needs

    This approach suits two types of teams: those with medium-scale inference workloads, and those whose data must stay inside the internal network. Before starting a project, confirm three things. First, check whether the total weight size of the target model exceeds the usable capacity of a single node’s unified memory. Second, confirm that concurrency and context length for the workload have clear upper limits. Third, verify that the network between nodes provides a stable, high-bandwidth, low-latency link. If any one of these conditions is not met, single-node deployment or a compliant dedicated cloud instance is usually simpler and cheaper to maintain.

    2. Hardware and Networking

    1. Verifying Node Configuration

    Before selecting hardware, check the vendor’s published specification sheet for the following: CPU core count and architecture, GPU architecture codename, unified memory capacity and type, NVMe SSD capacity and interface, and NIC model and per-port speed. Confirm the unified memory capacity per node and the 200Gbps RDMA interface before deployment, using system commands such as checking total memory and NIC link status. Do not rely on marketing materials alone.

    The advantage of unified memory is that the GPU can access system memory directly, which reduces explicit data copies. However, unified memory bandwidth differs from that of discrete GPU memory. Usable capacity must also account for memory consumed by the operating system and the inference service. Before deployment, record the idle memory baseline on each node. Use this baseline as the basis for later capacity estimates.

    2. Network Topology

    When the four nodes connect through one switch, verify the switch’s port count, forwarding capacity, and oversubscription ratio. The oversubscription ratio is the ratio of uplink bandwidth to downlink bandwidth. A higher ratio makes congestion more likely when several nodes communicate at the same time. Only after the switch specifications are confirmed, and tests with multiple node pairs sending and receiving simultaneously pass, can you judge whether the network is non-blocking.

    RDMA lets a NIC access remote memory directly, which reduces CPU involvement in data movement. During deployment, verify the following: RDMA link status, whether point-to-point bandwidth meets expectations, whether latency is stable, and whether MTU settings are consistent across all nodes. You can run point-to-point tests with the perftest tools.

    3. Storage Tiering and Risk Control

    This approach places low-frequency data, such as lookup tables and some auxiliary parameters, on NVMe SSDs. This adds disk read overhead. Before deployment, confirm three things: whether NVMe sequential read/write bandwidth and random read IOPS can meet model loading requirements; whether the cache hit rate can be monitored; and whether the inference service can run in a degraded mode if an SSD fails. Offloaded data should keep a rebuildable source, so that a disk failure does not cause unrecoverable loss.

    3. Model and Inference Engine Configuration

    1. Recording Model Version and License

    Before deployment, record the model name, version number, maximum context length listed in the model card, total number of experts, number of experts activated each time, and the license terms. The license determines whether the model can be used in production within an enterprise. Have legal or compliance staff review it during project approval.

    2. Mixed-Precision Quantization

    The goal of mixed precision is to reduce GPU memory usage within an acceptable loss of accuracy. Implement it in three steps.

    Step 1: Confirm that the model provides official weights in the required precision, and that the inference engine supports that format.

    Step 2: Compare several configurations: a full-precision baseline, FP8 for attention layers only, and FP8 for attention layers plus FP4 for some weights. Record GPU memory usage, output quality, and throughput for each configuration.

    Step 3: Set rollback conditions in advance. For example, if the evaluation score for a given task type drops beyond a set threshold, switch back to a higher-precision configuration. Base thresholds on your own business evaluation set rather than relying only on general leaderboards.

    3. KV Cache and Serving Parameters

    Inference engines typically allocate KV Cache in blocks. Check the documentation for your engine to confirm the parameter name and supported value range for block size. Small blocks increase the number of scheduling operations and the scheduling overhead. Large blocks waste memory on short requests. A common practice is to start with a fixed value, then adjust it based on the request length distribution after load testing.

    You can estimate the maximum number of concurrent sequences as follows: divide the GPU memory available for KV Cache by the average memory footprint of a single sequence at the target context length, then reserve a safety margin. Treat this estimate as a starting point. Set the final value based on the GPU memory curve observed during load testing.

    Prefix caching suits multi-turn conversations and scenarios where the same document is queried repeatedly. Before enabling it, confirm how the cache hit rate is calculated. During load testing, compare time to first token with prefix caching on and off.

    4. Troubleshooting Out-of-Memory (OOM) Errors

    When an out-of-memory error occurs, check the following in order:

    1. Review the memory usage curve on each node to determine whether one node runs out first or all nodes grow at the same time.
    2. Check whether current concurrency and maximum context length exceed the configured values.
    3. Check whether any requests hold KV Cache for a long time, for example when the server does not reclaim resources after a client disconnects.
    4. Reduce concurrency or the context length limit, then observe whether the service becomes stable.
    5. If the service remains unstable, revisit the quantization configuration and block size, then rerun load testing.

    4. Load Testing Methods and Result Recording

    1. Preparation

    Load test results are only comparable when measured under the same conditions. Record the following for every test: the exact versions of the model and engine; the token length distribution of inputs and outputs; concurrency; the request arrival pattern (fixed concurrency or Poisson distribution arrivals); warm-up duration; test duration; and the state of nodes and the network during the test.

    2. Metric Definitions

    • Time to first token (TTFT): the time from sending a request to receiving the first output token. Report both P50 and P95 values.
    • Time per output token (TPOT): the average time to generate each output token during the generation phase.
    • Throughput: the number of output tokens generated per unit time. Also record request throughput.
    • Failure rate: the share of all requests that time out, hit OOM, or return errors.

    3. Scenarios and Recording Table

    This article recommends recording results separately for four scenario types. Keep only one representative configuration per scenario to avoid mixing results from different configurations.

    Scenario Test Goal Key Metrics Conditions to Record
    Daily Q&A Check interaction latency TTFT, TPOT Input length, concurrency
    Document processing Check stability with long context KV Cache usage, failure rate Number of pages, number of questions
    Agent workflow Check multi-turn scheduling capability Load per node, request queue time Number of tool calls, number of dialogue turns
    Code generation Check output quality Pass rate, human rating Test case set, scoring criteria

    Fill in the values from actual tests. Leave unmeasured items blank rather than inferring them.

    4. Scalability Validation

    Linear scaling must be proven with data. Keep other conditions fixed, measure throughput with 1, 2, and 4 nodes, and plot the results as a curve. If throughput grows less than expected when you add nodes, communication or scheduling overhead may be the bottleneck. In that case, check network statistics and review the wait times on each node.

    5. Deployment Checklist

    1. Network

    • Switch port count, oversubscription ratio, and PFC and ECN configuration are documented.
    • MTU settings are consistent across all nodes.
    • RDMA point-to-point bandwidth and latency tests have passed.
    • Congestion monitoring is configured with alert thresholds.
    • A fallback plan is in place. If the network fails, can the service switch to a single node or a smaller model?

    2. Model and Parallelism Strategy

    • The splitting schemes for attention layers and expert layers are written into configuration files.
    • Load balance across nodes is continuously monitored.
    • If hot experts appear, the split ratio adjustments are recorded.

    3. Engine Parameters

    • Block size, maximum concurrency, and prefix caching settings each have corresponding load test records.
    • Default parameters have been replaced with values validated through testing.

    4. Data and Security

    • Data offloaded to NVMe can be rebuilt.
    • Logs do not contain raw prompts or user data. If the business requires logging them, desensitize the data first.
    • Access to model weights and configuration files follows the principle of least privilege.

    6. Next Validation Plan

    Several questions remain open and require experiments. First, how much does the FP4 setting affect output quality? Second, what shape does the throughput curve take when scaling from 1 to 4 nodes? Third, after offloading to NVMe, does tail latency change noticeably in long-context scenarios? The answers should come from measured results. Future versions should publish the full test configuration so read