Deploying Ultra-Large MoE Models on Two Nodes with Domestic AI Accelerators: A Practical Engineering Guide

    This article presents a reusable engineering framework for deploying ultra-large Mixture-of-Experts (MoE) models across two nodes equipped with domestic AI accelerators. It walks through resource planning for trillion-parameter workloads with quantized weights, parallel topology design combining intra-node tensor parallelism and cross-node pipeline parallelism, weight preparation with quantization and integrity checks, control-plane and observability design, staged startup and health validation, load testing from short requests to ultra-long contexts, common failure modes and tuning paths, and a pre-launch engineering checklist. The aim is to turn a one-off deployment into a repeatable, maintainable, and scalable inference capability. The guidance stays vendor- and model-agnostic and is grounded in a concrete 1.47 TB weight, 32-unit deployment example.

    Deploying Ultra-Large MoE Models on Two Nodes with Domestic AI Accelerators

    1. From Single-Card Validation to Scaled Dual-Node Deployment

    Once ultra-large-parameter models begin entering production, the central problem in inference shifts from “can the model run at all” to “can it be served stably, scalably, and operationally.” For a multimodal MoE model with total parameters in the trillions, activated parameters in the tens of billions, and context lengths that can reach the millions, a single machine often cannot hold the full inference workload. In a domestic-compute environment especially, the challenge is how to complete model partitioning, communication orchestration, weight distribution, and long-context request handling within a limited number of nodes.

    Dual-node deployment delivers value in two ways. First, adding nodes increases total compute, memory, and bandwidth, which is what makes ultra-large models runnable in the first place. Second, high-speed intra-node interconnect combined with a low-latency inter-node network lets you split computation across multiple compute units and form a relatively balanced distributed inference cluster. Compared with single-card or single-machine multi-card setups, dual-node deployment is no longer just “loading the model.” You must simultaneously account for the parallelism strategy, weight transfer, network topology, memory footprint, request scheduling, long-context management, and fault recovery.

    This article focuses on deploying an ultra-large MoE model across two nodes with domestic AI accelerators, and lays out a reusable engineering framework. It is not tied to any specific vendor, product, or model. Instead, it starts from a general technical architecture and explains how to deploy, validate, and tune in an environment with two nodes and multiple accelerator units.


    2. Overall Design Principles: Four Key Constraints of a Dual-Node Inference Cluster

    Deploying an ultra-large MoE model on two nodes is not about optimizing a single point of performance. It requires building a constraint model from a systems-engineering perspective. This usually breaks down into four key questions.

    2.1 Weight Volume and the Memory Boundary

    Even after quantization, an ultra-large model remains a classic “weight-heavy” workload. Take roughly 1.47 TB of quantized weights deployed across 32 compute units: on average, each unit must hold about 45.9 GB of model weights. That figure does not yet include activations produced during inference, attention caches, request context, temporary buffers, or the runtime framework’s own overhead.

    So the static estimate has to come first, during resource planning:

    1. global_parallel_size = 32
    2. weight_size = 1.47 TB
    3. weight_per_unit ≈ weight_size / global_parallel_size
    4. weight_per_unit ≈ 45.9 GB

    This means each compute unit needs enough headroom beyond the model weights for runtime caches. If memory (or local memory) is insufficient, the system may load successfully but then run out of resources under high concurrency or long contexts.

    2.2 The Complexity of Parallel Partitioning

    An MoE model is structurally more complex than an ordinary dense model. It has attention layers and feed-forward layers, plus a large number of expert sub-modules. The parallelism strategy must account for tensor-dimension partitioning, expert distribution, and cross-node communication all at once. Poor partitioning tends to produce:

    • Frequent intra-node communication that slows down every inference step;
    • Excessive cross-node traffic that turns the network into the bottleneck;
    • Load imbalance, with certain experts or layers becoming hot spots;
    • Cache growth under long contexts that degrades memory utilization.

    For this reason, dual-node deployment rarely chases “the finer the split, the better.” It tends to keep high-frequency communication inside the node and let cross-node links carry staged, low-frequency data transfer.

    2.3 Layered Network and Storage Design

    A dual-node deployment typically involves three kinds of network or storage paths:

    1. Intra-node high-speed interconnect: carries the high-frequency collective communication in tensor parallelism;
    2. Inter-node parameter network: carries data transfer between pipeline stages and synchronization for distributed inference (or training);
    3. Model storage and distribution path: handles weight download, verification, sharding, and cross-node replication.

    Without a layered design across these three, you get problems such as weight distribution consuming the business network, monitoring logs competing for inference bandwidth, and jitter on the inter-node link.

    2.4 Serviceization and Observability

    Inference is not an offline job. The moment you expose an interface, you must consider health checks, request timeouts, concurrency limits, log tracing, metrics monitoring, retries, and version rollback. In long-context scenarios in particular, a single request can run for a long time. Without queue management and backpressure, requests pile up, resources are exhausted, and tail latency rises.


    3. Hardware and Software Resource Planning

    Before any formal deployment, it helps to put together a clear resource inventory. Here is a reference configuration approach for deploying an ultra-large MoE model on two nodes.

    Item Configuration notes
    Compute nodes 2 domestic AI accelerator servers
    Units per machine 16 each
    Global compute units 32 total
    Unit memory ~64 GiB per unit
    Model weights ~1.47 TB after quantization
    Parallelism strategy Intra-node tensor parallelism, inter-node pipeline parallelism
    Network requirements High-speed intra-node interconnect, low-latency inter-node parameter network
    Storage requirements Must hold multi-TB weight files, support sharded reads and cross-node replication
    Runtime Inference runtime and containerized environment adapted to the domestic accelerators

    The point here is not simply to pile on resources, but to confirm that each resource dimension matches the shape of the model. For example:

    • The total weight size determines storage needs and load time;
    • The number of units per node determines intra-node parallelism;
    • Inter-node bandwidth determines whether the cross-node pipeline split is reasonable;
    • The per-request context length determines the cache strategy and concurrency ceiling;
    • The output-length distribution determines request queuing and latency metrics.

    Why 16 Units per Machine Is a Common Choice

    In a multi-card system, the intra-node interconnect usually offers higher bandwidth and lower latency. If a machine has 16 compute units internally and the inter-node network can support a cross-node pipeline, you can adopt a combination of “intra-node tensor parallelism + inter-node pipeline parallelism.”

    The benefits of this design are:

    • Intra-node parallelism carries high-frequency communication and reduces cross-node pressure;
    • Inter-node links only handle staged data transfer, cutting down global synchronization;
    • When you need to scale the node count, you can simply add stages along the pipeline direction;
    • The network requirements are more clearly defined, which makes capacity planning easier.

    4. Parallel Topology: Intra-Node Tensor Parallelism and Cross-Node Pipeline Parallelism

    4.1 Intra-Node Tensor Parallelism

    Within a single node, tensor parallelism is usually the first choice. It splits the model’s matrix computations across multiple compute units. For instance, a large linear layer can be split along the output or input dimension so that each unit computes only part of the result, then merges through the intra-node high-speed interconnect.

    The advantage is that communication is frequent but confined to the node. As long as the intra-node interconnect is stable enough, tensor parallelism significantly reduces per-card weight pressure and improves single-layer throughput.

    Example configuration:

    1. intra_node_parallel_size = 16

    This means the 16 compute units inside each machine jointly participate in the tensor computation for a given layer or stage of the model.

    4.2 Inter-Node Pipeline Parallelism

    Cross-node communication is typically less stable and less low-latency than intra-node communication, so it is not well suited to very fine-grained tensor splitting. A more common approach is to divide the model by layers or stages into multiple pipeline segments. For example, put the first half of the model on the first node and the second half on the second node.

    Example configuration:

    1. inter_node_pipeline_parallel = 2

    This means the model is cut into two pipeline stages: after the first node completes part of the computation, it passes intermediate results to the second node.

    4.3 Global Parallelism

    The global parallelism is determined jointly by intra-node parallelism and inter-node pipeline parallelism:

    1. global_parallel_size = intra_node_parallel_size * inter_node_pipeline_parallel
    2. global_parallel_size = 16 * 2 = 32

    This means the entire model’s weights are split across 32 compute units. For 1.47 TB of weights, that is about 45.9 GB per unit on average.

    4.4 Things to Watch with Pipeline Parallelism

    Pipeline parallelism reduces the number of cross-node communication rounds, but it brings some inherent problems:

    • Pipeline bubbles: if stage compute times are unbalanced, you get waiting;
    • Uneven stage splitting: some layers are compute-heavy, others communication-heavy;
    • Long-context requests may occupy the cache for longer;
    • A single node failure can take down the entire pipeline chain.

    So before deployment, you should verify:

    1. Whether the model loads completely;
    2. Whether each stage’s weights are correct;
    3. Whether intermediate results transfer correctly;
    4. Whether short and long requests mixed together cause starvation;
    5. Whether a single-stage anomaly can be detected by health checks.

    5. Weight Preparation: Quantization, Sharding, and Integrity Verification

    Preparing the weights of an ultra-large model is one of the most time-consuming parts of deployment. For roughly 1.47 TB of weights, you cannot rely on a single download to complete the whole flow. Instead, you split it into stages: download, verify, shard, distribute, and load.

    5.1 The Role of the Quantization Format

    W4A8 is one of the common quantization approaches for large-model inference. It generally means weights are stored at 4-bit precision while activations participate in computation at 8-bit precision. Its value lies in:

    • Reducing weight storage space;
    • Reducing memory or local-memory footprint;
    • Improving weight-read efficiency;
    • Leaving more runtime headroom for long-context and high-concurrency requests.

    But quantization is not free. In engineering terms you need to watch:

    • Whether output quality after quantization still meets business requirements;
    • Whether there is numeric overflow or precision loss;
    • Whether quantization results stay consistent across different parallelism strategies;
    • Whether cache computation stays stable under long contexts.

    5.2 Managing Sharded Weight Files

    An ultra-large model’s weights are usually not a single file but a set of shard files. Before deployment, build a file manifest that records each shard’s index, size, and checksum. This avoids problems such as:

    • One node downloading an incomplete set;
    • Cross-node replication being interrupted;
    • Load failures at runtime due to a missing shard;
    • Output anomalies caused by version mismatches.

    Recommended layout:

    1. weights/
    2. model-00001-of-000NN
    3. model-00002-of-000NN
    4. ...
    5. model-config
    6. tokenizer

    Here, the file count and shard indices must match what the runtime expects.

    5.3 Weight Download Strategy

    For the first node, you can download the weights from object storage, file storage, or a model repository. Once the download completes, run an integrity check: file count, total size, and the presence of key config files.

    For the second node, it is not advisable to download again over the public internet. A more sensible approach is to copy directly from the first node to the second, or to pre-fetch through shared storage. This significantly cuts deployment time and reduces failure risk from external network fluctuations.

    5.4 Comparing Inter-Node Transfer Speed

    In the reference environment, public-internet download ran at roughly 50 to 57 MB/s, while direct node-to-node transfer ran at about 490 MB/s. For 1.47 TB of weights, the gap is dramatic:

    1. Public download time ≈ 1.47 TB / 55 MB/s ≈ 7.5+ hours
    2. Node-to-node direct transfer ≈ 1.47 TB / 490 MB/s ≈ 50+ minutes

    Actual times will of course depend on the storage medium, filesystem, network bandwidth, and concurrent-copy strategy. But one thing is certain: node-to-node direct transfer is a key optimization for large-scale weight distribution.


    6. Node Onboarding and Control-Plane Design

    The hard part of dual-node deployment is not just “getting the machines to connect.” It is getting the control plane, the monitoring plane, and inference traffic to work together. A stable distributed inference system usually includes:

    1. A control end: creates instances, pushes configuration, aggregates health status;
    2. A node agent: runs on each server, handles registration, heartbeats, and resource reporting;
    3. Monitoring collection: gathers accelerator utilization, memory, network, request-queue metrics, and more;
    4. A log channel: aggregates runtime logs, error stacks, and request-tracing information;
    5. An inference gateway: receives external requests and performs routing, rate limiting, and load balancing.

    6.1 Node Registration and Resource Discovery

    When a machine joins the system, it should proactively report its own resource information, including:

    • Number of accelerators;
    • Memory per card or per unit;
    • NIC type and bandwidth;
    • Reachability on the inter-node network;
    • Local storage capacity;
    • Runtime environment version.

    If the platform supports automated detection, a resource view should be generated automatically once a node is onboarded. That way, during deployment the system can filter out node combinations that meet the requirements.

    6.2 Building the Parameter Network

    For multi-node inference, the parameter network is not just “can ping through.” Before deployment, complete the following checks:

    • Whether inter-node bandwidth meets expectations;
    • Whether network latency is stable;
    • Whether there is packet loss;
    • Whether the maximum transmission unit (MTU) is configured sensibly;
    • Whether large-message transfers trigger fragmentation or timeouts;
    • Whether the control plane and data plane compete for resources.

    A practical approach is to divide the network checks into three layers:

    1. Basic connectivity check: confirm nodes can communicate;
    2. Bandwidth stress test: confirm the ability to transfer large blocks of data;
    3. Inference handshake check: confirm intermediate results between model stages transfer correctly.

    6.3 Isolating the Control Plane from the Inference Plane

    Control signaling and inference traffic can share the same network infrastructure, but for engineering stability it is better to apply logical or resource isolation. For example:

    • Route control requests over an independent channel;
    • Make monitoring-data sampling frequency adjustable;
    • Aggregate log uploads asynchronously;
    • Prioritize and protect inference traffic;
    • Schedule weight downloads to avoid peak inference times.

    This prevents large-traffic actions during deployment or debugging from affecting the live service.


    7. Service Startup: From Launching the Instance to Health Validation

    7.1 Creating the Inference Instance

    Once resources, network, and weights are ready, you can create the inference instance. Instance creation should include at least:

    1. Instance type: dual-node distributed inference
    2. Node selection: node-a, node-b
    3. Parallelism strategy: intra-node tensor parallelism, inter-node pipeline parallelism
    4. Weight path: /models/large-moe-w4a8
    5. Port mapping: external service port
    6. Health check: load completion + simple request validation

    If the platform offers templated deployment, prefer templates adapted for “domestic accelerators,” “multi-node,” and “ultra-large weights.” The value of templates is not just convenience. More importantly, they lock in default parameters, image versions, resource requirements, and health-check logic, reducing human configuration errors.

    7.2 Verify the Startup in Stages

    For a large-scale model, it is not advisable to complete all verification in one shot. Push forward stage by stage:

    1. Node registration succeeds;
    2. Weight loading begins;
    3. All weight shards finish loading;
    4. Model initialization completes;
    5. The first minimal request succeeds;
    6. The first long-context request succeeds;
    7. Monitoring metrics report normally.

    Each stage should have a timeout and error logging. If weight loading fails, you should be able to clearly distinguish whether the cause is a missing file, insufficient permissions, a network interruption, or a parallelism-slicing error.

    7.3 Designing Health Checks

    A health check should not just decide whether the process is alive; it should decide whether the inference service is genuinely usable. It should include at least three layers:

    • Process liveness check: confirm the inference process has not exited;
    • Model-load check: confirm weights and runtime state are normal;
    • Business probe check: send a minimal request to validate the end-to-end path.

    For example, use a short request as a probe:

    1. Input: short text
    2. Output limit: very few tokens
    3. Success criteria: correct response structure, no error codes, latency within an acceptable range

    For a dual-node deployment, also check that both nodes participate in inference. If only the first node is working and the second has not finished loading, the system may wrongly report itself as available.


    8. Load Testing: From Short Requests to Ultra-Long Contexts

    To validate that a dual-node deployment is stable, load testing should not focus only on “does it return a result.” It should cover different context lengths, different output lengths, and different task types. It is recommended to design at least three scenario groups.

    Scenario Input/output length Purpose
    Random short requests ~2048 input, 512 output Validate baseline throughput, latency, and error rate
    Medium-to-long context task ~80K context Validate tool calls, context retention, and queue management
    Ultra-long context task ~200K context Validate memory, cache, and long-request stability

    8.1 Random Short-Request Load Testing

    Short requests mainly validate the baseline service path. Watch for:

    • Request success rate;
    • Time to first token;
    • Per-token output latency;
    • The latency curve as concurrency increases;
    • Whether requests start queuing;
    • Whether errors cluster around a particular parameter or input.

    If short requests are unstable at this stage, the long-context tests that follow usually will not pass either.

    8.2 Medium-to-Long Context Load Testing

    An 80K-level context already places higher demands on the cache and attention computation. This kind of scenario is commonly used to simulate agentic tasks, multi-round tool calls, document understanding, and workflow orchestration. During testing, observe:

    • Whether memory rises sharply as context length grows;
    • Whether cache eviction occurs;
    • Whether tool calls or structured outputs remain correct;
    • Whether long requests block short ones;
    • Whether the output phase shows noticeable jitter.

    8.3 Ultra-Long Context Load Testing

    A 200K-level context is boundary testing. Its purpose is not to validate average performance, but to check whether the system stays controllable under stress at the edge. Key points include:

    • Whether the full context loads successfully;
    • Whether failures occur due to insufficient cache;
    • Whether inter-node communication times out;
    • Whether request timeouts are triggered;
    • Whether rate limiting protects the backend.

    In the reference test, all 836 requests across the three groups succeeded. This result shows that the dual-node link, the parallel slicing, and request scheduling close the loop in the reference scenario. That said, engineering-wise these results should be treated as an “availability validation” rather than something to extrapolate directly to all production workloads. In real business settings, you still need to re-run load tests against your own input distribution, output lengths, and concurrency patterns.


    9. Common Problems and Tuning Paths

    9.1 Weight Loading Failure

    Common symptoms include the process exiting immediately after startup, abnormally long load times, or a missing shard. Troubleshooting steps:

    1. Check whether the weight directory is complete;
    2. Check whether file sizes and counts match expectations;
    3. Check whether cross-node replication was interrupted;
    4. Check file permissions and read access;
    5. Check whether the runtime version matches the weight format.

    For remediation, prioritize repeatable download and repeatable verification. For large-scale weights, it is best to keep a local copy or shared cache to avoid repeatedly pulling from the external network.

    9.2 Insufficient Memory (VRAM or RAM)

    If the model loads but requests fail, it is usually a runtime resource shortage. Possible causes:

    • Concurrency is too high;
    • A single request’s context is too long;
    • Output length is too large;
    • The cache policy is too aggressive;
    • Batch configuration is unreasonable;
    • Insufficient runtime-reserved memory.

    Tuning directions:

    1. Lower the maximum concurrency
    2. Cap the maximum context per request
    3. Adjust the output-length ceiling
    4. Optimize the batching strategy
    5. Increase the cache reclamation frequency
    6. Reserve more runtime buffer

    For long-context services, do not look only at the average request length; pay attention to the peak request length. Otherwise average resources may be sufficient while the system still fails at peak moments.

    9.3 Cross-Node Communication Jitter

    If the system shows normal short requests but slow or occasionally timing-out long requests, focus on the inter-node network. Items to check:

    • Whether bandwidth is being consumed by weight distribution or log uploads;
    • Whether inter-node latency has increased;
    • Whether there is packet loss;
    • Whether the pipeline slicing is too concentrated;
    • Whether intermediate-result transfers are too large.

    Optimization ideas:

    1. Stagger weight distribution away from inference service hours;
    2. Make log uploads asynchronous;
    3. Separate the control plane from the inference plane;
    4. Adjust the pipeline stage slicing;
    5. Compress or chunk intermediate-result transfers.

    9.4 Long Requests Blocking Short Requests

    In a shared inference instance, a long-context request can consume a lot of compute and force short requests to queue. Common strategies include:

    • Request priorities;
    • A maximum context-length limit;
    • Timeout-based circuit breaking;
    • Separate queues for long and short requests;
    • Routing by input length;
    • A dedicated long-context service pool.

    If your business mixes high-frequency short requests with low-frequency long requests, it is better not to let the two run completely mixed at the architecture level.

    9.5 Tool-Call or Structured-Output Anomalies

    In agentic and multimodal tasks, tool calls often come with long contexts. Common problems include:

    • Output-format parsing failures;
    • Missing tool-call parameters;
    • Context truncation causing lost references;
    • Inconsistent state across multi-round requests;
    • Repeated calls caused by error retries.

    Recommendations:

    • Validate output formats strictly;
    • Constrain tool-call parameters with templates;
    • Summarize or segment ultra-long contexts;
    • Set bounded retries for failed requests;
    • Apply idempotency control for repeated calls.

    10. Pre-Launch Engineering Checklist

    To reduce deployment risk, break the dual-node deployment into a checkable engineering checklist.

    10.1 Resource Checks

    • Are both nodes registered;
    • Are the unit counts identical on each node;
    • Does per-unit memory meet requirements;
    • Is the inter-node network reachable;
    • Is local storage sufficient;
    • Is the weight directory readable.

    10.2 Version Checks

    • Is the inference runtime version pinned;
    • Is the weight version pinned;
    • Are configuration parameters version-controlled;
    • Are image digests or config-file digests recorded;
    • Is there a rollback plan.

    10.3 Parallelism Configuration Checks

    • Is the intra-node parallelism correct;
    • Is the number of inter-node pipeline stages correct;
    • Does the global parallelism match the hardware;
    • Does the number of weight shards match the parallelism configuration;
    • Are there any nodes not participating.

    10.4 Service Checks

    • Does the health check cover an end-to-end request;
    • Are external ports mapped correctly;
    • Are timeouts reasonable;
    • Is the rate-limiting policy in effect;
    • Can logs trace request-level errors.

    10.5 Operations Checks

    • Do monitoring metrics cover resources, latency, queues, and errors;
    • Are alerts configured for key thresholds;
    • Are weight-load failures clearly indicated;
    • Can node anomalies be isolated automatically;
    • Is rolling restart or minimal-impact recovery supported.

    11. Summary: The Key to Dual-Node Deployment Is Not “Adding Machines,” but “Achieving Balance”

    Deploying an ultra-large MoE model on two nodes with domestic AI accelerators is, at its core, a systematic engineering optimization within limited node resources. It is not simple parameter stacking. It requires finding a balance among weight scale, parallel partitioning, network bandwidth, memory capacity, request scheduling, and observability.

    From a practical standpoint, a few core lessons stand out:

    1. Keep high-frequency communication inside the node; let cross-node links carry only low-frequency staged transfer;
    2. Weight quantization lowers resource pressure, but must be paired with integrity verification;
    3. Node-to-node direct transfer is usually far better than public-internet download and is a necessary optimization for large-scale weight distribution;
    4. Health checks must cover end-to-end requests, not just process liveness;
    5. Load testing should cover short requests, medium-to-long contexts, and ultra-long contexts, rather than looking only at averages;
    6. Long-context services must account for caching, queues, timeouts, and backpressure;
    7. All versions, configurations, and weights should be pinned to ensure reproducibility and rollback.

    For teams that need to deploy ultra-large models in a domestic-compute environment, the dual-node approach is more complex than a single node, but it offers a clearer scaling path. As long as the parallelism topology, network boundaries, storage distribution, and monitoring metrics are defined clearly at the design stage, you can turn a one-off deployment into a repeatable, maintainable, and scalable inference engineering capability.