Deploying a Trillion-Parameter MoE Model on Domestic AI Accelerators: A Practical Two-Node Inference Guide
This article walks through a real-world deployment of a native multimodal MoE model with roughly 2.8 trillion total parameters and about 104 billion activated parameters per inference pass, running on a two-node cluster of domestically produced AI accelerators. It covers practical capacity planning (whether 2 TB of aggregate GPU memory is enough for 1.47 TB of W4A8 weights), how to onboard nodes through a server-plus-agent model, how to build the parameter network that multi-node inference depends on, how to distribute TB-scale weights over the cluster backbone instead of the public internet, how to configure TP16 × PP2 with a world size of 32, and how to define load-test metrics that actually justify a go-live decision — including reproducible results at 80K and 200K context lengths. A final checklist lists the items that must be pinned before production traffic is enabled.
1. Deployment Goals: Avoiding the Memory Wall and the Communication Wall
Once model size reaches the trillion-parameter range, neither a single accelerator nor a single server can hold the full weight set, so multi-node, multi-die deployment becomes the only option. This article uses a native multimodal MoE model with roughly 2.8 trillion total parameters and about 104 billion activated parameters per inference pass as a worked example, and explains how to bring inference serving online on a two-node cluster of domestically produced AI accelerators.
Readers deploying this class of model usually care about the same handful of questions: how to estimate GPU memory, how to distribute TB-scale weights quickly, how to choose between tensor parallelism (TP) and pipeline parallelism (PP), how to troubleshoot the common communication timeouts, whether a 200K context will trigger an OOM, and how to define load-test metrics. This article lays out an actionable engineering path for each of them.
The core challenges fall into four categories:
- The memory wall: even with W4A8 quantization, the weights still occupy roughly 1.47 TB and must be sharded across 32 compute dies.
- The communication wall: both tensor and pipeline parallelism generate cross-die and cross-node traffic, so the boundary between the intra-node high-speed interconnect and the inter-node parameter network must be made explicit.
- Weight distribution: if every node downloads the 1.47 TB weight set over the public internet, go-live time stretches out considerably.
- Stability verification: long contexts, agentic tool calls, and multimodal inputs all amplify pressure on KV cache, memory management, and the gateway path.
2. Hardware and Model: Is 2 TB of GPU Memory Enough?
This practice uses a community-published W4A8 quantized checkpoint — 4-bit weights, 8-bit activations. Compared with FP16 or FP8, the weight footprint drops noticeably, but it is still around 1.47 TB, spread across hundreds of shard files. Pin the weight revision during deployment and verify shard integrity before go-live so that inconsistent weights cannot silently corrupt inference.
The hardware is a two-node server pair with 32 compute units in total:
| Item | Configuration |
|---|---|
| Nodes | 2 domestically produced accelerator servers, 16 compute dies per node, 64 GiB per die, 32 dies total |
| Total GPU memory | 32 × 64 GiB = 2048 GiB, roughly 2 TiB |
| Intra-node interconnect | The 16 dies within a node communicate over the inter-die interconnect bus, which carries tensor-parallel traffic |
| Inter-node network | Nodes are joined through the parameter network in the unified inference platform; here it is a 200Gb RoCE/RDMA link, and platform connectivity checks must pass before deployment |
| Parallelism strategy | Intra-node TP16, inter-node PP2, world size = 32 |
| Model | Community quantized weights, roughly 1.47 TB, fixed revision with shard verification |
| Inference framework | Official image of the open-source inference engine, image digest pinned |
| Platform | Unified inference platform; load-test traffic originates at the control endpoint and reaches instances through the platform gateway |
Memory estimation is a mandatory pre-launch step. Expressed in decimal units, 1.47 TB is about 1.34 TiB, which spreads to roughly 42 GiB per die across 32 dies, leaving about 22 GiB per die and roughly 0.69 TiB in aggregate. That headroom has to absorb the KV cache, activations, temporary buffers, runtime fragmentation, and scheduling variance. Actual headroom depends on how the weights are sharded, how PP stages are split, TP communication buffers, KV cache dtype, maximum concurrency, and other factors — so total memory alone tells you little. Read the peak and remaining memory figures in the engine logs.
One easily overlooked detail: the image digest should be pinned. Tags are mutable, and a fresh pull may return different content. A digest is unique and immutable, which guarantees that runtimes pulled on different nodes at different times are byte-for-byte identical.
3. Node Onboarding: Bringing Agents Online Safely
Unified inference platforms typically use a server + agent architecture with static single binaries: the agent runs on the compute node and dials an outbound tunnel to the server, over which control commands, monitoring metrics, log shipping, and inference traffic all travel. This “agent dials out” design sidesteps the complexity of inbound tunneling and exposed ports, and the onboarding procedure is identical for domestically produced accelerators and mainstream international ones.
Onboarding is lightweight:
- Generate an install command under Compute Nodes → Add Node in the console.
- Run that command on each server; the agent comes online.
- The platform automatically detects each node’s accelerator count, NICs, local storage, and parameter-network capability, then completes registration.
Once online, the agent reports the hardware topology. The scheduler uses this to know exactly how many compute units each machine offers, which is what makes precise allocation by world size possible.
Production environments also need attention to security:
- Install commands should use short-lived enrollment tokens rather than long-lived plaintext credentials.
- Run the agent as a dedicated non-root user wherever possible, granting only the device access and network permissions it needs.
- Enable mutual authentication or mTLS between the control endpoint and agents.
- Put access controls and audit logs around high-risk operations such as model download, deployment, deletion, and restart.
- Retain node-local logs long enough to debug weight-loading failures, communication timeouts, and OOM events.
4. Networking and Weight Distribution: Getting TB-Scale Weights in Place Fast
4.1 Parameter Network Setup: Why Instances Start but Then Time Out
Multi-node inference on domestically produced accelerators depends on a dedicated high-speed interconnect. Before deployment, add the inter-node high-speed ports of all participating nodes to the same parameter network in the platform’s Networking capability. The platform then runs an inter-die connectivity check and, at deployment time, selects nodes from that network automatically — guaranteeing that every chosen node has a usable high-speed link.
Recommended procedure:
- Create a parameter network in the platform, for example
param-net-a. - Add the inter-node high-speed NICs of node A and node B to that parameter network.
- Run the platform’s network connectivity check.
- Confirm the check covers port reachability, link bandwidth, RDMA/RoCE status, and MTU consistency.
- Select that parameter network in the deployment template.
If the connectivity check fails, work through this list:
- Does the parameter network include the inter-node ports of both nodes?
- Are the two nodes in the same switching domain or low-latency network scope?
- Do the NIC MTUs match?
- Are firewalls, security groups, or host policies blocking the parameter-network ports?
- Are RoCE/RDMA enabled, and do the PFC/ECN settings match the data center requirements?
- Is the agent online, and do the agent logs report a network probe failure?
- Verify the inter-node link with the platform’s connectivity test or system tools, for example
ping <peer_ip>,rdma link, or the vendor’s bandwidth test utility. - If the platform reports a topology mismatch, check whether the deployment template is accidentally bound to a different parameter network.
This step is the key prerequisite for avoiding “the instance came up but communication timed out.”
4.2 Distributing TB-Scale Weights Without Hitting the Public-Internet Bottleneck
If every node pulls the 1.47 TB weight set over the public internet, the process is both slow and expensive in egress bandwidth. The more efficient pattern is “download once, then transfer node to node”:
- Download the complete weights on the first node from the public model repository.
- Have the second node pull them point-to-point from the first node using the platform’s Copy to… capability.
Measured figures, with conditions stated explicitly so readers do not form inflated expectations:
| Method | Measured conditions | Throughput |
|---|---|---|
| Public internet download | Node A, single-stream download from the public model repository, includes writing weights to local NVMe, excludes subsequent verification; median of a 3-minute window | roughly 50–57 MB/s |
| Node-to-node transfer | Node A to node B over the 200Gb RoCE parameter network via the platform copy feature, includes writing to disk, excludes verification; average across multiple files | roughly 490 MB/s |
Under the network and file-set conditions of this test, the direct transfer ran about 9–10× faster than the public download. At 1.47 TB, skipping the duplicate public download saves a substantial amount of time. The general principle applies to any TB-scale weight scenario: prefer cluster-internal bandwidth over public egress. Object storage and container platforms emphasize the same internal-first transfer model to reduce cross-region traffic cost.
Weight integrity verification must happen up front. Recommended method:
- Pin the model revision, for example
revision: 20250520-a1b2c3. - Obtain the published
manifest.sha256,index.json, andconfig.json. - Verify after the download completes:
cd /models/moe-w4a8sha256sum -c manifest.sha256
If the platform does not verify automatically, generate a local manifest and compare:
find /models/moe-w4a8 -type f \( -name '*.safetensors' -o -name '*.bin' -o -name '*.json' \) \-print0 | sort -z | xargs -0 sha256sum > /models/moe-w4a8/local.sha256diff -u /models/moe-w4a8/manifest.sha256 /models/moe-w4a8/local.sha256
Also check that:
- the shard count matches
index.json; - the total byte count matches the release notes;
- no companion files are missing, such as the tokenizer, config, or generation config;
- no duplicate or stale files from an older version remain;
- the weight license permits your intended use, and the provenance record is retained.
5. Launching the Instance: Configuring TP16 × PP2
Pick the template, click deploy, and the platform brings up an instance with world size = 32 using TP16 × PP2. The two forms of parallelism play different roles:
- Tensor parallelism (TP), intra-node: a single layer’s weights are sharded across the 16 compute units inside one node, so each matrix operation is completed cooperatively by multiple dies. TP traffic is frequent and extremely bandwidth-hungry, which is why it should stay inside the node’s high-speed interconnect domain and never cross machines.
- Pipeline parallelism (PP), inter-node: the model is split by layer into stages distributed across nodes, with activations passed between stages in a pipelined fashion. PP moves comparatively little data and is therefore a better fit for crossing nodes.
Node A (TP16, 16 dies) ──PP2── Node B (TP16, 16 dies)stage 0 stage 1↑ intra-node high-speed TP ↑ intra-node high-speed TPOnly activations cross nodes (PP)
Pairing intra-node TP with inter-node PP is fundamentally about routing the communication-heavy TP traffic over the high-bandwidth links inside a node, and the lighter PP traffic over the inter-node links — which gets as close to the communication-efficiency optimum as the given hardware allows.
For reproducibility, pin the following configuration:
- Inference engine image:
moe-infer:v0.9.5-prodin this example. - Image digest:
sha256:5f8c2a7e9d4b6c1f8a0e3d9b7c2a6f4e8d1b3c7a9e5f2d6b8c0a4e1f3d7b9c2a. - Parameter network:
param-net-a. - Parallelism parameters:
--tensor-parallel-size 16,--pipeline-parallel-size 2,--world-size 32. - PP stage split: the example model config has 128 layers, with stage 0 holding layers 0–63 and stage 1 holding layers 64–127. If the actual
config.jsondeclares a different layer count, split evenly across the total or adjust dynamically according to available memory. - TP communication library: the collective communication library shipped with the domestically produced accelerators, bound only to the intra-node high-speed interconnect.
- Inter-node communication: PP activation transfer over the parameter network.
A sample launch command follows; parameter names differ slightly between inference engines:
python -m infer_engine.entrypoints.openai.api_server \--model /models/moe-w4a8 \--revision 20250520-a1b2c3 \--tensor-parallel-size 16 \--pipeline-parallel-size 2 \--world-size 32 \--pp-split-layers 0,64 \--quantization w4a8 \--kv-cache-dtype fp8 \--max-model-len 1048576 \--max-num-seqs 16 \--enable-chunked-prefill \--tp-backend vendor-collective-intra-node \--dist-backend rdma \--master-addr node-a \--trust-remote-code
After deployment, check instance status, weight-loading logs, inter-node communication initialization, TP/PP topology detection, and port listeners before routing any business traffic.
6. Load Testing: Proving Long-Context Stability
Verification after deployment cannot stop at “can it hold a conversation” — it has to cover different load shapes. This practice defined three graduated load-test scenarios, with every request issued from the control endpoint and routed through the platform gateway to the instance, so the real call path is exercised.
Success criteria: a request counts as successful only when the gateway returns HTTP 2xx, the business response has the expected JSON or multimodal structure, and no timeout, engine error, empty response, or parse failure occurred.
Under the conditions of this test, all three scenarios completed 836 requests with a 100% success rate.
| Scenario | Requests | Concurrency | Input/output token convention | P50 / P95 / P99 completion latency | System output throughput | Success rate |
|---|---|---|---|---|---|---|
| Regular chat | 500 | 16 | 2048 input, 512 output | 11.8s / 17.5s / 22.0s | ~690 tok/s | 100% |
| Agentic long context | 216 | 8 | ~80K total context, ~79.5K input, 512 output | 28.5s / 45.0s / 60.0s | ~140 tok/s | 100% |
| Agentic very long context | 120 | 4 | ~200K total context, ~199.5K input, 512 output | 52.0s / 78.0s / 95.0s | ~40 tok/s | 100% |
Both long-context scenarios mixed in multimodal inputs. Text samples cover long-form reasoning, tool calls, and structured output; image or video samples are converted to visual tokens first and then counted toward the total input tokens. This more faithfully reproduces how text, images, tool results, and conversation history interleave in agentic workloads.
The reproducible envelope for 200K context was:
- roughly 199.5K input tokens and 512 output tokens per request;
- input composed of about 70% text and 30% image/video-related tokens, with visual tokens counted in the total context;
- chunked prefill enabled to avoid a memory spike from prefilling in one shot;
- FP8 KV cache to reduce long-context cache footprint;
- maximum concurrency capped at 4, preventing multiple simultaneous prefills from stacking memory peaks;
- total peak memory measured at about 1.78 TiB, with roughly 0.22 TiB remaining during the test;
- no OOM, but the headroom had narrowed considerably — so raising 200K concurrency unconditionally in production is not advisable.
What these numbers establish:
- Feature completeness: beyond plain text Q&A, multimodal conversation and agentic tool-calling paths both work.
- Long context is usable: stability holds at 80K and 200K inputs, which means the KV cache memory planning and paging held up under pressure.
- High success rate: 836 requests with zero failures is a meaningful go-live gate.
- Clear measurement definitions: latency, throughput, success rate, and memory boundaries are all defined, so “it ran” is not substituted for “it is ready to serve.”
7. Go-Live Checklist: What Must Be Pinned
For teams deploying trillion-parameter multimodal MoE models on domestically produced AI accelerators, complete this checklist before opening up real traffic:
| Check item | Requirement |
|---|---|
| Weight version | Revision pinned, source and license recorded |
| Weight integrity | Shard count, file sizes, and sha256 all verified |
| Image digest | Immutable digest used; floating latest tags prohibited |
| Parameter network | Inter-node high-speed links of both nodes joined to the same parameter network |
| Connectivity check | Platform connectivity check passed, with no port, MTU, or firewall anomalies |
| Parallelism topology | TP16 confined to intra-node, PP2 across nodes, world size = 32 |
| Launch parameters | TP/PP settings, PP stage split, KV cache, max length, and concurrency parameters reviewed |
| Memory headroom | Sufficient headroom after weight loading; load-test peak did not trigger OOM |
| Load-test definitions | Request counts, concurrency, input/output tokens, P50/P95/P99, and success criteria explicitly defined |
| Rollback plan | Previous image, weight version, and launch parameters retained |
| Security controls | Agent privileges minimized, platform actions audited, model file access restricted |
| Monitoring and alerting | Covers success rate, P95/P99 latency, GPU memory, node heartbeats, and parameter-network link state |
Looking back across the whole path, a few reusable practices stand out:
- Pin every variable: weight versions, image digests, and launch parameters all get fixed, which is what makes results reproducible and traceable.
- Match topology to hardware: TP inside the node, PP across nodes, so the parallelism strategy follows the interconnect bandwidth structure.
- Distribute over the internal network first: download TB-scale weights once and transfer node to node — the time savings are substantial at this scale.
- Verify connectivity before launching: always run the parameter-network connectivity check first, so communication problems are caught before instances come up.
- Test in graduated tiers: from regular chat to very long context, since only a gradient surfaces the full range of memory, latency, and stability risks.
- Make metrics traceable: success rate, latency, throughput, and remaining memory all need explicit definitions, so go-live decisions never rest on vague conclusions.
As the domestic hardware ecosystem and open-source inference frameworks continue to evolve, the barrier to deploying models at this scale on domestic infrastructure will keep falling. For enterprise teams, once weight verification, network setup, parallelism configuration, load-test definitions, and rollback procedures are codified into a standard process, frontier model capability can be brought into their own workloads at considerably lower cost.
