Deploying Trillion-Parameter Model Inference on Dual Ascend Nodes: A Practical Guide

    This article walks through a real-world deployment of a trillion-parameter multimodal MoE model across two domestic Ascend servers with 32 compute dies in total. It explains why most inference launch failures happen before deployment, then covers node onboarding, building a parameter network to fix the communication domain, distributing and verifying 1.47 TB of weights, choosing TP16 x PP2 parallelism, and running functional acceptance plus short/medium/long-context load tests. Readers will find concrete configuration skeletons, a weight distribution throughput comparison, and a troubleshooting order for common failures.

    1. Why the Hard Part of Ultra-Large Model Inference Comes Before Deployment

    Running a model on a single card often takes just one launch command. But once parameter counts reach the trillion scale, weight volumes reach the TB level, and memory demand crosses the boundary of a single machine, the real engineering effort shifts to everything that happens before deployment: whether nodes are correctly identified, whether inter-card and inter-node communication is connected, and whether weights can land reliably on every machine within a limited time.

    In practice, more than half of failed inference launches are not caused by the model itself, but by three things: topology identification, network domain partitioning, and weight integrity.

    This article uses an environment of two nodes, each with 16 compute dies, for 32 dies in total, on domestic accelerator cards. It shows how to turn a machine that “looks powerful” into a large-model inference instance that can serve traffic stably.

    2. Target Model and Resource Profile

    The model to deploy is a natively multimodal sparse Mixture-of-Experts (MoE) architecture with roughly 2.8T total parameters, about 104B activated parameters per token, and a native context length of up to 1M tokens. Its resource profile has three distinct characteristics:

    • Weight volume dominates everything: Even with W4A8 quantization, weights are still about 1.47 TB across 346 shard files, and must be pinned to a fixed revision so that different nodes never pull inconsistent versions.
    • Sparse activation, non-sparse memory: Although only about 4% of parameters are activated per token, all expert weights must stay resident in memory. Memory capacity, not compute, is therefore the first gate for a successful launch.
    • Extremely long context: A 1M-token context means KV cache management, paging strategy, and long-sequence stress testing must all be on the acceptance checklist.

    The resource side is configured as two domestic Ascend accelerator servers, each with 16 dies at 64 GiB per die, for 32 dies and roughly 2 TiB of memory in total. Inter-node compute communication is carried by a high-speed interconnect (an HCCS-class cache-coherent interconnect). The inference framework uses the official container image released with the model, pinned by digest to keep the environment reproducible.

    3. Step 1: Turn Compute Nodes into Schedulable Platform Resources

    The goal of node onboarding is to let the control plane see the real hardware topology rather than a generic “server.” The recommended flow:

    1. Generate an install command under “Compute Nodes -> Add Node” in the console;
    2. Run that command on each machine; the node then initiates an outbound connection to the control plane (a reverse connection, so no inbound ports need to be opened on the node);
    3. The platform automatically reports accelerator card count, per-card memory, NICs, and mounted storage. In this example, each machine is identified as 16 dies.

    The key design point here is that the control plane and data plane reuse the same tunnel: control commands, monitoring metrics, logs, and inference traffic all travel over the same link, so deployment and troubleshooting do not require maintaining a second channel. Onboarding works identically for domestic cards and general-purpose accelerators; the only difference is the device type and topology description that get identified.

    4. Step 2: Build a “Parameter Network” So the Communication Domain Is Fixed Before Deployment

    The most common hidden failure in multi-node inference is “works on one node, fails on multiple nodes,” and the root cause is that the communication domain was never converged in advance. The approach is to use the “Network” capability to add the inter-card interconnect ports of both nodes to the same parameter network. The platform then runs connectivity checks (bandwidth, reachability, topology consistency) and automatically filters eligible nodes at deployment time based on that network.

    A schematic topology constraint can be understood like this:

    1. parameter network = { nodeA: die0..die15, nodeB: die0..die15 }
    2. constraint: die count within the same parameter network == world_size
    3. validation: full interconnect reachability + bandwidth meets target + identical driver/firmware versions

    Modeling the communication domain explicitly as a first-class citizen has two benefits: the scheduler will not split an instance across machines with a non-compliant topology, and communication jitter during long-sequence stress tests is easier to localize.

    5. Step 3: Distributing and Verifying TB-Scale Weights

    The 1.47 TB of weights is the most time-consuming and most error-prone part of the whole deployment. The key lesson is do not let every node download over the public internet:

    Distribution method Measured throughput Estimated time for 1.47 TB
    Public internet download (single node) ~50-57 MB/s ~7.5-8.5 hours
    Direct intranet transfer between nodes ~490 MB/s ~50 minutes

    The gap is close to 10x. The recommended path: select the model source under “Models” and download it to the first node first; then use the “Copy to…” capability to transfer it directly from the first node to the second; after both sides finish, the platform verifies file by file (shard count, per-file byte size, and overall revision consistency).

    Three disciplines should also be followed:

    • Pin the version: Record the revision and total shard count to avoid “same name, different weights.”
    • Pin the image: Reference the inference image by digest rather than tag to prevent environment drift.
    • Verify before proceeding: If verification fails, do not enter the deployment stage; stop the problem before launch.

    6. Step 4: Parallelism Strategy - The Trade-off of TP16 x PP2

    How the 32 dies are partitioned directly determines throughput and time-to-first-token. This example uses intra-node tensor parallelism TP16 and cross-node pipeline parallelism PP2, with world size = 32.

    • TP stays inside the node: Tensor parallelism has heavy communication volume and is the most bandwidth-sensitive, so constraining it to the high-speed interconnect domain significantly reduces synchronization overhead.
    • PP spans nodes: Pipeline parallelism has light communication volume, mainly point-to-point activation passing, which suits cross-node links.
    • Why not pure TP32: Full AllReduce across nodes would make communication the bottleneck and place excessive demands on link quality.
    • Why not pure PP32: Too many pipeline stages amplify bubbles, and utilization drops sharply at small batch sizes.

    A parameterizable launch skeleton (illustrative, not a specific product interface):

    1. tensor_parallel_size = 16 # intra-node
    2. pipeline_parallel_size = 2 # cross-node
    3. world_size = 16 * 2 = 32
    4. max_model_len = 262144 # set according to memory and business needs
    5. gpu_memory_utilization = 0.90
    6. enable_chunked_prefill = true # chunked prefill for long context

    7. Step 5: Functional Acceptance and Three Load Tests

    Functional acceptance cannot stop at “does it reply.” It should cover at least: multi-turn dialogue, chain-of-thought/reasoning output, tool calling (structured argument parsing and result injection), and long-context truncation and fallback behavior.

    Load tests should progress through short, medium, and long tiers. In this example, all 836 requests succeeded.

    Scenario Input/Output Focus
    Random short requests 2048 / 512 Baseline throughput, TTFT, per-card utilization
    Agentic medium context ~80K Long prefill, KV cache pressure
    Agentic long context ~200K Memory watermark, paging swap in/out, stability

    Time the load generator, the platform gateway, and the path to the instance separately; only then can you distinguish “gateway queuing” from “inference queuing.” Recommended metrics include TTFT, TPOT, throughput (token/s), concurrency success rate, peak memory, and P99 latency under long context.

    8. Common Problems and Troubleshooting Order

    1. Node is online but the card count is wrong: Check driver and firmware versions, device mounts, and permissions.
    2. Works on one node, fails on multiple: Go back to the parameter network for connectivity and bandwidth re-checks, and confirm world size matches the die count.
    3. Immediate OOM on launch: Lower max_model_len and memory utilization, or enable chunked prefill.
    4. Weight loading failure: Verify the revision, shard count, and per-file verification results.
    5. Long-context jitter: Watch the KV cache watermark and P99, and cap the maximum length per request if necessary.

    9. Conclusion

    Bringing ultra-large models onto domestic compute is essentially about converging uncertainty layer by layer: when topology is uncertain, model the parameter network explicitly; when weights are uncertain, pin the version and verify file by file; when performance is uncertain, use short/medium/long load tests to produce a quantified baseline. Following the five steps of node onboarding, network construction, weight distribution, parallel partitioning, and acceptance testing, a dual-node environment with 32 dies can stably serve online inference for a trillion-parameter multimodal model, and leaves a clear, reusable engineering path for horizontal scaling later.