Deploying Trillion-Parameter MoE Models Across Two Nodes: A Practical Guide to TP16 × PP2 Inference

    This article walks through a real-world deployment of an ultra-large multimodal MoE model (roughly 2.8T total parameters, ~104B activated per token, 1M-token context) across two accelerator servers. It explains why weight size, sparse activation, and long context make deployment a cross-node systems problem; presents a validated topology of 32 dies with intra-node TP=16 and inter-node PP=2; and covers node onboarding with automatic topology discovery, parameter-network constraints for scheduling, two-stage weight distribution, runtime version pinning, load testing and observability, common failure modes, and a go-live checklist.

    1. Why Ultra-Large MoE Deployment Is Hard

    Native multimodal MoE (Mixture of Experts) models are pushing inference deployment to a new level of complexity. Consider a model with roughly 2.8T total parameters, about 104B activated per token, and a context length of up to 1M tokens. Three characteristics dictate its deployment shape:

    • Weights far exceed the memory of a single machine: Even with a W4A8 scheme (4-bit weights, 8-bit activations), the weights still occupy around 1.47 TB on disk (approximately 1,466,844,769,783 bytes across 346 shard files). A pool of a few dozen accelerators with 64 GiB each on one machine simply cannot hold them.
    • Sparse activation, but still a high memory peak: MoE activates only a small subset of experts per token, which spreads out the compute demand. However, the All-to-All communication introduced by routing and the KV Cache growth from long context both drive up memory and bandwidth pressure.
    • Extremely long context: A 1M-token context means KV Cache capacity must be modeled explicitly. Otherwise, load testing produces a false failure in which the service starts but cannot be fully utilized.

    The essence of deploying this class of model is therefore not “getting a model to run,” but a cross-node systems engineering effort: device discovery, network topology, weight distribution, parallelism strategy, runtime versions, and observability must all be correct at the same time.

    2. Overall Architecture: Two Nodes, 32 Dies, TP16 × PP2

    A validated reference configuration looks like this:

    Dimension Configuration
    Compute nodes 2 high-memory-bandwidth accelerator servers, 16 dies each, 64 GiB per die, for 32 dies / 2 TiB of aggregate memory
    Intra-node interconnect High-bandwidth die-to-die links carrying TP and All-to-All
    Inter-node interconnect High-speed accelerator network carrying PP and cross-node collective communication
    Parallelism Intra-node TP=16, inter-node PP=2, world size = 32
    Weights Community W4A8 quantized weights, with a fixed revision and shard count
    Runtime The official inference image released with the model, pinned by digest
    Access A node-side agent dials out to the control plane; control, log, and inference traffic share the same tunnel

    The core logic behind this split is keeping the highest-volume communication on the highest-bandwidth links. Tensor parallelism (TP) performs All-Reduce/All-Gather at every layer and is the most communication-intensive, so it is confined to 16 dies within a node. Pipeline parallelism (PP) only transfers activations at stage boundaries; communication is sparse, and although pipeline bubbles exist, they are tolerable across nodes. Putting TP across nodes would amplify latency by an order of magnitude.

    3. Preparation: Access, Networking, and Weights

    3.1 Node Access and Automatic Topology Discovery

    Generate an install command from the console under “Compute Nodes → Add Node” and run it on each machine. The node-side agent is a statically linked single binary that dials out to the control plane on startup, so no inbound ports need to be opened on the nodes. This matters especially in mixed data centers and NAT environments. Once online, the agent reports a device inventory: 16 dies per machine, 64 GiB per die, plus NIC and storage details. The control plane uses this to generate a schedulable topology.

    Practical tip: after onboarding, verify that the reported die count and memory capacity match the physical hardware. A lower die count usually points to inconsistent driver or firmware versions; lower capacity means a device is likely held by another process.

    Multi-node deployment must use the accelerator network rather than the regular business network. Add the die-to-die links of both nodes to the same parameter network under “Networking.” The platform then runs a connectivity check (links up, bandwidth adequate, topology symmetric) and selects candidates only from nodes that satisfy that network constraint at deployment time. This turns “network correctness” from manual experience into a hard platform constraint, avoiding a scenario where a node with only business-network connectivity is scheduled and then hangs during collective communication initialization.

    3.3 Weight Distribution: Layered Transfer Beats Parallel Download

    Distributing 1.47 TB of weights is the most time-consuming and error-prone step in the whole process. The recommended approach is two stages: one pass over the public internet, then one direct node-to-node transfer.

    1. Node A: pull 1.47TB from the model repository (~50-57 MB/s over public internet, ~7-8 hours)
    2. Node B: direct transfer from Node A (~490 MB/s node-to-node, ~50 minutes)

    The direct node-to-node transfer is nearly an order of magnitude faster than having both nodes download over the public internet, and it avoids repeated load on the upstream repository and the risk of throttling. Key practices:

    • Pin the revision: Do not use floating tags. Record the revision and the total shard count (346) in the deployment manifest, and after every pull verify the shard count and total byte count.
    • Per-file verification: After transfer, the platform hashes each shard. A missing or truncated shard shows up at load time as a random loading failure, which is far more expensive to diagnose than verifying during transfer.
    • Storage medium: Prefer fast local disks. If network storage is used, assess whether aggregate read bandwidth can support 32 ranks reading the same set of shards simultaneously; if not, use a two-phase “land locally, then load” approach.

    4. Runtime Alignment: Images, Quantization Format, and Parallelism Config

    The number one failure source for very large models is version drift. Weights, the inference framework image, and driver/firmware must be managed as a single version matrix:

    • Pin the image by digest (for example, sha256:e7c67329...96b7) and never use mutable tags, so both nodes run a byte-for-byte identical runtime.
    • W4A8 weights impose hard requirements on operator support: quantized linear layers, dequantization timing, and attention and MoE routing operators must all be supported in the current framework version. Before any cross-version upgrade, run a load self-check on a single node.
    • Example startup configuration (field names follow the actual framework):
    1. python -m vllm.entrypoints.openai.api_server \
    2. --model /data/models/kimi-k3.1-pro-w4a8 \
    3. --tensor-parallel-size 16 \
    4. --pipeline-parallel-size 2 \
    5. --max-model-len 1048576 \
    6. --gpu-memory-utilization 0.90 \
    7. --trust-remote-code

    max-model-len must be decided together with the KV Cache budget: first validate the link and throughput with a shorter context (such as 32K), then scale up to 1M gradually while watching the memory watermark and time-to-first-token curve, rather than maxing it out in one step.

    5. Load Testing and Observability: Instance Metrics and the Platform Gateway

    Generate load-test traffic from the platform side so it passes through the gateway to the instance. This covers both gateway forwarding overhead and the inference engine itself. Observability should span at least four layers:

    1. Device layer: memory usage, utilization, temperature, and power per die; confirm whether the 32 dies are balanced (and whether the two PP stages show a clear bubble).
    2. Communication layer: the time share of intra-node All-Reduce versus inter-node PP transfers, to tell whether the bottleneck is die-to-die links or the network.
    3. Service layer: time to first token (TTFT), time per output token (TPOT), throughput (tokens/s), and queueing time under concurrency.
    4. Platform layer: bandwidth usage when the control plane, logs, and inference share one tunnel, so a log burst does not squeeze inference bandwidth.

    A practical way to read the results: fix input and output lengths and step through concurrency levels (1/4/8/16). If throughput grows linearly with concurrency while TTFT stays roughly flat, the system is not saturated. If TTFT spikes while device utilization stays low, the bottleneck is usually scheduling or communication rather than compute.

    6. Common Failures and Diagnosis Order

    Symptom Likely cause Diagnostic action
    Collective communication init hangs Inter-node traffic not using the parameter network / asymmetric links Recheck the parameter network connectivity results
    Load fails midway Missing or truncated shard Verify shard count and total bytes, retransmit, and verify per file
    Inconsistent results across the two nodes Image digest or weight revision drift Compare image digests and revisions on both nodes
    OOM with long context Insufficient KV Cache budget Lower gpu-memory-utilization or open up context length in stages
    Throughput far below expectations TP spanning nodes or excessive PP bubbles Switch to intra-node TP and inter-node PP

    7. Go-Live Checklist

    • Die count, memory capacity, NIC, and storage reports match on both nodes
    • Parameter network connectivity check passes and both nodes are in the scheduling candidate set
    • Weight revision is pinned, all 346 shards are present, and per-file verification passes
    • Image is pinned by digest and identical on both nodes
    • TP=16 / PP=2 / world size=32 matches the memory budget
    • Context length is opened up in stages, with monitoring and alerts on the KV Cache watermark
    • Load testing covers the gateway path, with baselines for TTFT/TPOT/throughput

    Once these steps are captured as a template, deploying similar trillion-parameter-class MoE models shifts from repeated trial and error to executing a checklist. What still requires human judgment is only the parallelism split and the context-versus-memory tradeoff.