Deploying a 2.8T Multimodal MoE on Two Nodes: Inference Practice on Domestic Accelerators

    This article records a two-node deployment of a native multimodal mixture-of-experts model—about 2.8T total parameters, roughly 104B active parameters, and a 1M-token context—on a cluster of China-made accelerators using W4A8 weights. It covers capacity planning, a TP16 × PP2 parallel layout, node onboarding, parameter-network checks, weight distribution, one-click startup, and functional plus load validation in which 836 requests all succeeded.

    1. Background and Problem Definition

    As large mixture-of-experts (MoE) models mature in the open ecosystem, the barrier to private deployment is falling quickly. A large gap remains, however, between “it starts” and “it serves reliably”: how to split parallelism, how to distribute weights efficiently across nodes, how to plan multi-node interconnects, and how to verify functional completeness and throughput after deployment.

    This article records a real-machine practice. On a cluster of China-made accelerators—two servers, 16 compute dies per server, 64 GiB of memory per die, 32 compute units in total—a native multimodal MoE model with about 2.8T total parameters, roughly 104B active parameters, and a 1M-token context window was brought up end to end with W4A8 quantized weights. Three stress tests covering short context, long context, and agentic workloads were then completed: 836 requests in total, all successful.

    2. Target Model and Resource Estimate

    2.1 Model Specification

    The model is a typical “ultra-wide MoE”:

    • Total parameters: about 2.8T. After W4A8 quantization (4-bit weights, 8-bit activations), disk footprint is about 1.47 TB.
    • Parameters activated per forward pass: about 104B. Compute per step stays manageable, but memory footprint is driven by the full parameter set.
    • Context: 1M tokens, suited to long-document understanding and multi-turn agent tasks.

    2.2 Capacity Reasoning

    Under W4A8, weights are about 0.5 bytes per parameter. Spreading 1.47 TB of weights across 32 dies means each die holds about 46 GB of weights. Adding KV cache, activations, and framework overhead, 64 GiB per die is “enough, but only with careful management.” That implies two constraints:

    1. Multi-node deployment is required. Sixteen dies on one machine cannot hold the full weights.
    2. KV cache grows sharply with long context, so the framework needs optimizations such as prefix caching to keep memory usage under control.

    2.3 Parallel Strategy

    We used intra-node TP16 × cross-node PP2:

    • Tensor parallelism within a node (TP16): The 16 dies communicate over a high-speed on-package interconnect with high bandwidth and low latency, which fits the large matrix splits inside each layer.
    • Pipeline parallelism across nodes (PP2): Inter-node bandwidth is lower than die-to-die interconnect. Pipeline parallelism only forwards activations between stages, so traffic is far smaller than tensor parallelism and is a better fit for a two-node network.

    World size is 32. Each node owns half of the Transformer layers.

    3. Deployment Flow

    3.1 Node Onboarding

    From the console of a containerized inference platform, an install command was generated and run on both servers. The node-side agent initiates an outbound connection to the control plane. Control commands, metrics, logs, and inference traffic share the same encrypted tunnel, so nodes do not need inbound ports opened. After join, the platform automatically detects each machine’s accelerator topology, NICs, and storage. Later parallel splits and scheduling then rest on measured hardware topology rather than hand-written assumptions.

    3.2 Parameter Network Planning

    Multi-node inference is highly sensitive to accelerator connectivity. Practical points:

    1. In the console, place the accelerator interconnects of both nodes in the same “parameter network.”
    2. While the network is defined, the platform checks die-to-die and node connectivity. A bad link shows up before launch instead of as a collective-communication timeout mid-run.
    3. The scheduler selects nodes from that parameter-network membership so every replica of one instance lands on machines that can reach each other.

    This step is easy to underestimate. Connectivity faults often appear as intermittent hangs, and debugging them costs far more than a pre-check.

    3.3 Weight Distribution

    How 1.47 TB of weights is downloaded and copied dominates deploy time:

    • First download: From the model repository over the public network onto the first node. Measured rate was about 50–57 MB/s, limited by public bandwidth.
    • Node-to-node copy: The second node pulled the weights from the first through the platform’s built-in “copy to” path. Measured rate was about 490 MB/s, close to the inter-node network ceiling and nearly 10× faster than downloading again from the public network.

    Engineering rule: download once from the public network, then replicate over the internal network. Before launch, check shard byte sizes and hashes. Any one of the 346 safetensors shards, if corrupt, can fail the load or shift numerical quality.

    3.4 One-Click Startup

    After an built-in deployment template is selected, the platform:

    • Starts containers from the image version pinned by the template (fixed image digest, so upstream image updates do not silently introduce regressions);
    • Loads the W4A8 weights and splits them as TP16 × PP2;
    • Exposes the inference endpoint after health checks pass.

    From clicking deploy to a ready instance, no hand-written distributed launch script is required. That removes a common source of error: environment variables and hostname mapping for 32 processes.

    4. Functional and Load Validation

    4.1 Functional Checklist

    After deployment, a smoke test covered:

    • Multi-turn chat: streaming output and context retention;
    • Reasoning traces: correct segmentation of thinking-style output;
    • Tool calling: stable argument generation and structured output for the function-calling protocol, which agent workloads depend on.

    All three passed before load testing.

    4.2 Load Design

    Three complementary workloads were used:

    Group Input / output length Target scenario
    Short context Input 2048 / output 512 Ordinary chat and Q&A
    Agentic 80K Long input, multi-turn tool calls Complex single-agent tasks
    Agentic 200K Very long input, multi-turn tool calls Long-document agents

    Traffic was generated from a separate service node and forwarded through the platform gateway to the inference instance, covering the production path rather than only a local port on the instance. Latency and success rate are therefore useful as production references. Across the three groups, all 836 requests succeeded, with no timeouts, truncations, or malformed tool calls.

    4.3 What to Watch

    During the run, track memory watermark and utilization on each die, KV-cache hit rate (prefix caching pays off clearly for long-context agents), inter-node communication bandwidth, and the distributions of time to first token (TTFT) and per-token throughput. If die utilization is badly unbalanced on the two sides of the pipeline cut, adjust the pipeline balance.

    5. Takeaways

    This run supports a few reusable practices:

    1. Match parallelism to the interconnect. Use TP where die-to-die bandwidth is high and PP across nodes. For an ultra-wide MoE on two machines, that combination is the conservative choice.
    2. Distribution efficiency sets the deploy experience. One public download plus internal copies can cut readiness time for terabyte-scale weights by about an order of magnitude.
    3. Validate both function and load. Smoke tests for chat, reasoning, and tool calling, plus short-context, long-context, and agentic load groups, form a minimum credible check set.
    4. Reproducibility depends on pinned versions. Fix both the weight revision and the image digest so a deployment can be traced and rolled back.

    Teams planning a private deployment of a very large MoE—on a self-managed cluster or on a containerized inference platform such as Baidu AI Cloud—can reuse this flow and checklist, and spend attention on model quality for the workload rather than on debugging distributed infrastructure.