Large Model Inference on Heterogeneous Accelerators: A Dual-Host Multi-Card Deployment Practice
This article describes how to deploy a large W8A8-quantized model across two servers, each equipped with 8 high-performance NPU accelerator cards (16 cards in total), using an open-source inference management platform. It covers the deployment scenario and challenges, platform selection and architecture design, shared-storage and parallel-parameter planning, the deployment workflow, validation steps, and an architectural comparison between Model Runner V1 and V2. It also summarizes common issues and troubleshooting approaches for similar multi-host, multi-card inference services.
During the rollout of large model inference, single-machine compute often cannot meet the deployment requirements of models with extremely large parameter counts. Cross-host distributed inference therefore becomes an unavoidable topic. This article uses a cluster of two servers, each equipped with 8 high-performance NPU accelerator cards (16 cards in total), as an example to explain how to complete cross-host deployment of a large-parameter W8A8 quantized model based on an open-source model inference management platform. It also analyzes the architectural differences between two generations of model runner components in the platform, providing a reusable practical reference for similar scenarios.
1. Scenario and Challenges
The weight files of large-parameter models usually reach hundreds of GB. Even when W8A8 quantization (8-bit weights and activations) is used to reduce memory footprint, the aggregate memory of 8 cards on a single machine may still be insufficient to hold the complete model and KV Cache. In this case, model weights need to be sharded across cards on multiple machines, and tensor parallelism (TP) and expert parallelism (EP) must be coordinated over a cross-host high-speed interconnect.
The core challenges in this scenario include:
- Cross-host communication overhead: The latency of cross-node AllReduce and All-to-All communication is much higher than that of intra-node NVLink-like interconnect. The parallel strategy must be designed reasonably to keep high-communication shards within a single node as much as possible.
- Heterogeneous driver and firmware alignment: The accelerator card drivers and firmware versions on multiple servers must be strictly consistent. Otherwise, communication domain establishment may fail during distributed initialization.
- Quantization operator compatibility: W8A8 quantized models depend on low-bit matrix multiplication operator support at the underlying layer. Before deployment, confirm that the inference engine version matches the model quantization format.
- Service orchestration complexity: The startup order, health checks, and failure recovery of multi-host, multi-process services are extremely costly to maintain with manual scripts. This is exactly where the value of a unified inference management platform comes in.
2. Platform Selection and Architecture Design
Open-source GPU/NPU cluster inference management platforms typically provide capabilities such as model catalog management, resource scheduling, multi-engine adaptation, and OpenAI-compatible APIs. The reasons for choosing such a platform are:
- Resource pooling: The platform can sense the memory usage and utilization of each card and automatically select a node combination that meets deployment requirements.
- One-click distributed deployment: Users only need to declare parallel parameters, and the platform is responsible for launching inference processes on multiple nodes and establishing the communication domain.
- Version canary and rollback: The platform supports multiple replicas of the same model and coexistence of multiple engine versions, making switching and rollback easier.
A typical deployment topology is as follows:
Node A (8 cards) Node B (8 cards)├─ Inference primary process ←──high-speed interconnect──→ ├─ Inference worker process├─ Platform Agent ├─ Platform Agent└─ Shared storage mount (model weights) └─ Shared storage mount
Key design points:
- Shared storage for weights: Hundreds of GB of model weights should be placed on shared storage accessible to all nodes, such as a distributed file system or an object storage mount, to avoid duplicate distribution. If local distribution is unavoidable, chunked checksum verification and resumable transfer are recommended.
- Parallel parameter planning: Taking 16 cards across two hosts as an example, common combinations are TP=8, EP=16, or TP=16. The values must satisfy constraints based on the model’s number of attention heads and experts. The general principle is to prioritize intra-node TP for the attention part and allow cross-host EP for the expert routing part, so as to reduce the frequency of cross-host communication.
- Network pre-check: Before deployment, verify bandwidth and connectivity between nodes. A simple point-to-point communication benchmark can be used to confirm that the cross-host link reaches the expected throughput.
3. Deployment Workflow
3.1 Environment Preparation
Install the same version of accelerator card drivers, firmware, and runtime on both servers, and deploy the platform Server and Agent components on each node. Ensure that:
- Time synchronization (NTP) is enabled on both nodes;
- Passwordless SSH or internal RPC connectivity is available between nodes;
- Accelerator memory and NUMA affinity are configured correctly.
3.2 Import the Model and Submit the Deployment
Register the model in the platform and specify the W8A8 quantization format. When creating the deployment, declare the distributed parameters and the number of replicas. The platform generates an orchestration description similar to the following:
model: large-moe-model-w8a8replicas: 1distributed:tensorParallelSize: 8expertParallelSize: 16nodes: 2resources:acceleratorPerNode: 8
3.3 Startup Validation
After deployment is complete, validate in the following order:
- Each process has finished loading weights and the communication domain has been established successfully.
- Send a short prompt probe request to confirm that first-token latency is normal.
- Run concurrency stress tests and observe whether per-card memory watermarks and throughput curves are balanced. If some cards are significantly higher than others, the usual causes are uneven parallel sharding or an issue with the KV Cache allocation strategy.
4. Architecture Comparison: Model Runner V1 vs. V2
New-generation inference platforms generally refactor model runner components into two generations. The two versions differ significantly in deployment experience, and understanding the differences helps in choosing the appropriate runtime.
V1: Static Orchestration Centered on a Single Process
V1 uses a static “platform control + node execution” model:
- The deployment description is parsed once at startup, the parallel topology is fixed, and it cannot be adjusted at runtime.
- Cross-host process launch relies on daemon processes on the nodes to forward requests layer by layer, and failure recovery requires a full restart.
- Communication networking is negotiated internally by the engine, and the platform has limited visibility into the underlying state.
The advantages are a simple link and predictable behavior. The disadvantages are poor elasticity and coarse-grained operations and maintenance actions in large-scale deployments.
V2: Declarative Scheduling and Fine-Grained State Reporting
V2 introduces a declarative runtime abstraction:
- Each inference process is registered as an independent workload, and the platform continuously collects the memory usage, queue depth, and batching state of each process.
- It supports rolling upgrades and partial replica rebuilds. When a node fails, only the workload on that node needs to be rebuilt, and other replicas remain uninterrupted.
- Built-in cross-host communication pre-checks and health probes can detect network or driver inconsistency before deployment, shortening the failure feedback cycle.
- It provides native support for more complex topologies such as PD separation (prefill and decode disaggregated deployment).
From a practical perspective, a medium-scale deployment such as dual-host 16-card can run stably with V1. When the number of replicas increases, model versions need to be iterated frequently, or a disaggregated architecture is adopted, the operational efficiency gains of V2 become very obvious.
5. Common Issues and Troubleshooting
- Distributed initialization timeout: This is often caused by node firewalls not allowing engine communication ports or by inconsistent driver versions. First check connectivity and the version baseline.
- Cross-host throughput far below expectations: Check whether high-frequency communication shards have been split across hosts, and adjust the TP/EP layout. Also confirm that the inter-node link bandwidth is not being squeezed by shared storage traffic.
- First-token latency jitter: This is usually because weights are still being lazily loaded from storage. During the warm-up phase, send several requests to fully resident the weights before admitting production traffic.
- Quantization accuracy anomalies: Verify the correspondence between the model quantization configuration file and the inference engine version, and roll back to a verified version combination if necessary.
6. Conclusion
Cross-host multi-card deployment of large quantized models is essentially about finding a balance among model sharding strategy, cross-host communication efficiency, and platform orchestration capability. Through a unified open-source inference management platform, complex distributed launch, state monitoring, and failure recovery can be consolidated into declarative configuration, greatly reducing operations and maintenance costs. Understanding the architectural evolution of the old and new generations of model runner components can also help teams make reasonable runtime choices based on scale and iteration cadence. We hope the deployment workflow and troubleshooting experience in this article can provide a reference for building large-scale inference services.
