Deploying Large-Model Inference on Two Domestic AI Accelerator Nodes: A Practical Guide

    This article presents a practical, reproducible approach to deploying large-model inference across two servers equipped with domestic AI accelerators. It covers capacity budgeting, shard balance, long-context validation, tensor and pipeline parallelism constraints, environment alignment, weight distribution, staged service startup, load-test design, and production operations. The goal is to help readers move from “the model can start” to “the service is usable,” with separate validation of functionality, performance, and recoverability.

    1. Deployment Goal: From Model Startup to Service Availability

    Running a very large model on domestic AI accelerators should not be treated simply as extending a single-server inference task to two servers. Model weights, runtime state, request caches, and communication overhead together determine whether the system can run stably. The network topology between nodes, software environment consistency, and parallelism strategy determine service efficiency and failure boundaries.

    This article focuses on a general technical problem: how to deploy a large model that requires multi-device cooperation on two servers equipped with domestic AI accelerators, and how to complete reproducible functional acceptance and load testing.

    A reference deployment record includes the following resource conditions:

    Item Reference condition
    Compute nodes Two servers
    Compute units 16 per server, 32 total
    Memory per compute unit 64 GiB
    Parallel layout 16-way tensor parallelism within a node, 2-stage pipeline parallelism across nodes
    Weight size About 1.47 TB
    Weight format Low-bit quantization
    Request path Load generator accesses the inference instance through a service gateway

    These conditions describe one deployment reference, not a fixed configuration that applies to all domestic accelerators. Before implementation, you must confirm compatibility among the inference framework, model structure, quantization operators, and device communication capabilities.

    In particular, being able to load weights does not mean the deployment can support the target context length. An API returning success does not mean throughput, latency, and output quality already meet business requirements.

    2. Do Capacity Budgeting Before Deciding the Deployment Layout

    2.1 Weight File Size Is Not the Full Memory Requirement

    Thirty-two compute units with 64 GiB each provide a total of 2048 GiB of device memory, or 2 TiB. The reference weights are about 1.47 TB, but TB and TiB use different measurement conventions. Capacity planning should first unify the units.

    Even if total device memory is larger than the weight file size, you cannot assume the deployment will succeed. Runtime also needs space for:

    • Quantization scale factors, metadata, and possible format conversion results;
    • Attention key-value caches;
    • Operator workspaces and temporary tensors;
    • Device communication buffers;
    • Framework management structures and memory fragmentation;
    • Additional state created by concurrent requests.

    In addition, weight file size does not necessarily equal actual resident memory. Loading may involve rearrangement, alignment, or conversion, and some implementations have transient memory peaks.

    Therefore, capacity budgeting must consider both steady-state usage and peak usage during initialization.

    2.2 Check Shard Balance, Not Only Total Capacity

    Distributed inference requires each compute unit to hold its own model shard and runtime state. Even if total memory is sufficient, an oversized individual shard can cause deployment failure.

    Pipeline partitioning requires particular attention to load differences between stages. Different layers may have different parameter counts, compute costs, and intermediate activation sizes. Simply splitting by layer count may not produce balanced memory usage and execution time.

    After the first startup, record peak memory per compute unit and execution time per pipeline stage. Later optimization should be based on actual measurements, not only estimates from total parameter counts.

    2.3 Validate Long-Context Capability Separately

    The context limit declared by a model and the context limit that the current deployment can stably support are two different concepts.

    The actual supported length is also affected by cache implementation, cache precision, concurrent request count, scheduling policy, and remaining device memory. Validation should use a stepwise approach:

    1. Test short input and short output first;
    2. Then increase input length;
    3. At a fixed input length, increase concurrency;
    4. Finally, test long input combined with long output.

    This order helps identify capacity bottlenecks and avoids confusing initialization failure, insufficient cache, and scheduling congestion.

    3. Two-Node Parallelism: Understand the Communication Constraints Behind the Layout

    The reference layout uses 16-way tensor parallelism within a node and 2-stage pipeline parallelism across nodes, with 32 participating processes in total.

    Tensor parallelism distributes part of the model computation and parameters across multiple compute units. Because frequent collective communication is usually involved during computation, this approach is sensitive to low-latency, high-bandwidth interconnect.

    Pipeline parallelism divides the model into stages. Different nodes handle different stages and complete one forward pass by passing intermediate activations. Placing the pipeline boundary between nodes changes how cross-node communication is organized, but it does not mean cross-node communication overhead is necessarily low.

    Actual efficiency depends on:

    • The amount of activation data transferred between stages;
    • Whether computation time is balanced across stages;
    • Request batching strategy;
    • Whether scheduling can sufficiently overlap computation and communication;
    • Bandwidth, latency, and stability of cross-node links.

    For mixture-of-experts models, expert routing and expert parameter distribution should be confirmed separately. Tensor parallelism and pipeline parallelism configuration does not fully describe expert parallelism strategy, nor does it replace inspection of expert communication behavior.

    Before deployment, confirm that the current runtime supports the target combination, then verify the actual communication path through testing.

    4. Environment Preparation: Align Nodes, Network, and Software Versions

    4.1 Build a Device and Node Inventory

    After nodes are connected, verify whether the number of devices recognized by the operating system matches the number recognized by the scheduling system.

    The device inventory should include at least:

    • Compute unit IDs and available memory;
    • Driver and device runtime versions;
    • Device health status;
    • Topology relationship between NICs and compute units;
    • Local storage capacity and free space;
    • Node time synchronization status.

    Two-node jobs are sensitive to environment differences. A software version mismatch on one node, an abnormal device state, or inconsistent device ID mapping can appear as communication initialization failure, loading stalls, or instability during runtime.

    4.2 Separate Management Communication from Compute Communication

    Control commands, logs, monitoring, and API requests can be transmitted over a unified management connection. This simplifies node access, but it does not mean model compute communication should use the same path.

    Distributed inference should clearly distinguish:

    • Management plane: carries node registration, task scheduling, logs, and health checks;
    • Data plane: carries model communication between compute units;
    • Service entry: carries user requests and streaming responses.

    Before deployment, verify actual connectivity between accelerators, not only whether ordinary network connectivity exists between the two servers. Checks should cover device visibility, communication library initialization, small-scale collective communication, and sustained communication stability.

    4.3 Pin Software and Weight Versions

    Reproducible deployment requires pinning both the runtime environment and model assets.

    For each deployment, record:

    • Container image digest;
    • Weight version and file manifest;
    • File sizes and checksums;
    • Driver, runtime, and communication component versions;
    • Complete startup configuration.

    Do not rely only on mutable image tags or “latest version” descriptions. Otherwise, later performance changes may come from underlying environment updates rather than deployment parameter changes.

    5. Weight Distribution: Large File Transfer Also Needs Engineering Design

    The reference record uses weights of about 1.47 TB. At this scale, repeatedly downloading from the public internet can prolong preparation time and increase recovery cost after transfer failures.

    A general approach is to download the weights to one node first, verify them, and then copy them to the second node over the node-to-node network.

    The reference record gives these transfer rates:

    • Public internet download: about 50–57 MB/s;
    • Node-to-node transfer: about 490 MB/s.

    These figures only show that node-to-node distribution was significantly faster in that environment. They are not a performance guarantee for other deployment environments. Actual transfer efficiency also depends on disk read/write capability, network bandwidth, protocol overhead, concurrent tasks, and file count.

    A reliable weight distribution process should include:

    1. Check disk space before download and reserve space for temporary files and recovery;
    2. Generate a manifest containing file paths, sizes, and checksums;
    3. Verify each downloaded file;
    4. Support failure recovery during node-to-node copying;
    5. Perform independent verification on the target node;
    6. Enter the model loading stage only after all checks pass.

    Having the same number of files does not prove weight integrity. Comparing only the total directory size also cannot detect corruption in files of equal length.

    6. Service Startup: Validate by Stage and Avoid Black-Box Troubleshooting

    It is recommended to split startup into five observable stages:

    Resource allocation → Communication initialization → Weight loading → Execution warm-up → Service readiness

    Each stage should have clear logs and completion conditions.

    During resource allocation, confirm that all target compute units on both nodes have been allocated and that parallel process IDs match device mappings.

    During communication initialization, check whether all participating processes have entered the same communication group. If a timeout occurs, prioritize checking the network path, address selection, version consistency, and device visibility.

    During weight loading, observe file read speed, device memory growth, and shard loading progress to distinguish slow storage reads from insufficient device memory.

    The execution warm-up stage may produce additional memory peaks. Therefore, do not open business traffic immediately just because weight loading succeeded.

    Service readiness should be verified with real requests. At minimum, complete:

    • Short-text conversation;
    • Multi-turn context retention;
    • Streaming output;
    • Request cancellation;
    • Structured tool calling;
    • Handling of invalid input and over-limit input.

    If the model supports multimodality, acceptance should also use real multimodal requests. A working text API does not replace validation of the multimodal processing path.

    7. Load-Test Design: What Else Beyond Success Rate?

    The reference material reports three groups of requests totaling 836 requests, all successful, but it does not provide complete latency, throughput, and concurrency details. This result can support the statement that “no request failures were observed under the tested conditions.” It cannot be used to infer peak performance, long-term stability, or production availability.

    7.1 Design Test Load in Layers

    At least three types of load should be considered.

    The first is fixed-length synthetic requests, such as about 2048 input tokens and 512 output tokens, to compare basic processing capability under different configurations.

    The second is long-context requests, such as about 80K and 200K input tokens, focusing on prefill time, cache usage, and resource contention.

    The third is agent-style business requests, including multi-turn dialogue and tool calls, to check context accumulation, structured output, concatenation of tool returns, and task termination conditions.

    Synthetic load is highly repeatable, but its content distribution may differ from real business traffic and cannot fully replace business testing.

    7.2 Specify Load-Test Conditions

    For each test group, record request length distribution, concurrency, request arrival pattern, maximum output length, timeout settings, and test duration.

    Also specify which components the load-test traffic passes through. If requests access the instance through a service gateway, end-to-end results include gateway queuing, proxy forwarding, and network transmission overhead. They cannot be directly equated with inference engine time.

    7.3 Record Latency, Throughput, and Resource State Together

    At minimum, collect:

    Metric Primary use
    Request success rate Determine API availability
    Time to first token Observe prefill, queuing, and front-end processing
    Inter-token interval Determine whether generation is stable
    End-to-end latency Measure actual user waiting time
    Output throughput Measure generation capability per unit time
    Peak device memory Evaluate capacity boundaries
    Queue length Identify scheduling congestion
    Communication time Locate parallelism efficiency issues

    Latency metrics should not report only averages; high-percentile results should also be provided. A low average latency can still hide significant stalls in a small number of requests.

    7.4 Separate Correctness from API Success

    A successful API response does not mean the business task was completed. Tool-calling scenarios also require checking whether parameters are valid, whether the number of calls is reasonable, whether tool results are used correctly, and whether the task ends as expected.

    For quantized models, output quality regression should also be performed with representative business samples. Low-bit quantization helps reduce weight footprint, but it does not remove the need for quality acceptance.

    8. Operations and Maintenance: Turn Deployment Results into Sustainable Service

    Production operation must cover abnormal conditions beyond normal requests, including node loss, single-process exit, early client disconnect, long-request timeout, and device memory exhaustion.

    Monitoring alerts should be built around actionable signals. For example, if time to first token continues to rise and the queue grows, it may be necessary to limit ingress load. If device memory approaches the safety boundary, concurrency and context budgets should be re-evaluated.

    At the same time, verify the following mechanisms:

    • Whether timeouts and cancellation can release request resources;
    • Whether generation stops after a streaming connection is interrupted;
    • Whether failed instances are removed from the service entry in time;
    • Whether configuration updates can be rolled back after failure;
    • Whether logs avoid exposing sensitive input and credentials.

    9. Conclusion

    The key to two-node large-model deployment is not simply connecting more devices. It is forming a complete loop across resource budgeting, model partitioning, network paths, weight distribution, and service validation.

    A reliable implementation order is: first unify the environment and verify device communication; then complete weight verification and capacity assessment; next start the service stage by stage, validate functionality first, and gradually increase context length and concurrency; finally use continuous load testing, business regression, and failure drills to confirm the system’s stability boundaries.

    Only by separately validating “can start,” “functionally correct,” “performance meets target,” and “failures are recoverable” does a deployment result have practical engineering value.