Boosting Inference Throughput by ~50% on 8 Domestic AI Accelerators: Key Techniques Explained
This article breaks down how a team achieved roughly 50% higher total inference throughput on an 8-card domestic accelerator setup while keeping the same SLO. It covers the shift from tensor parallelism 8 to tensor parallelism 2 combined with data parallelism 4, plus expert parallelism, sequence parallelism, graph mode, and operator compilation. You will also find a reusable deployment-plan structure, a step-by-step tuning checklist, and an explanation of where the gains actually come from.
1. Why Throughput Tuning on 8 Cards Deserves Its Own Discussion
When deploying large-parameter inference services on domestic accelerators, the question teams run into most often is not “does it run?” but “how much concurrency can it serve under an acceptable latency budget?” These are fundamentally different questions: the first is about functional availability, the second is about service capacity per unit of hardware — total throughput under a service level objective (SLO).
A single 8-card node is a very typical production resource boundary. It is not constrained by the absolute memory and compute of a single card, nor does it carry the extra overhead of cross-node networking that multi-node setups face. Because the resource scale is moderate and the communication topology is relatively regular, the 8-card environment is an ideal setting for validating parallelism strategies, communication optimizations, and compiler optimizations.
This article uses an 8-card domestic accelerator running a quantized model on an open-source inference engine as its technical background, and abstracts a transferable optimization approach: while holding the SLO constant, restructure the parallelism strategy and apply low-level compiler optimizations to gain roughly 50% more total throughput.
It is worth stressing that this kind of gain does not come from a single “magic parameter.” It is the combined result of improved compute efficiency and improved communication efficiency. Understanding this is what allows you to transfer the experience to your own models and workloads.
2. Organizing the Deployment Plan So Experience Is Reusable
Getting large-model inference running in a domestic (Xinchuang) hardware environment starts with picking a model, but that is only the first step. What really determines delivery efficiency is the engineering context accumulated around that model, typically including:
- The matching relationship between the inference engine and the runtime image;
- The basis for estimating model memory footprint and required card count;
- Initial configuration of the parallelism strategy (tensor, pipeline, expert);
- Quantization method and precision trade-offs;
- Tuning items and validation results measured against real workloads.
Organizing this information into a browsable deployment plan turns one-off tuning into a reusable asset. Teams can search existing configurations by model or by hardware, compare baseline and optimized performance reports, and then re-validate against their own hardware batch and traffic profile. If the deployment backend can automatically sync configurations from the plan directory, the time from selection to launch shrinks further.
A practical directory entry typically looks like this:
model: general-purpose LLM (quantized)hardware: domestic AI accelerator x8engine: mainstream open-source inference engine (domestic-accelerator build)baseline:tensor_parallel: 8data_parallel: 1optimized:tensor_parallel: 2data_parallel: 4expert_parallel: truesequence_parallel: truegraph_compile: enabledslo:first_token_latency_ms: target valuetokens_per_second_per_request: target valueresult:total_throughput_gain: "~50%"
3. Case Breakdown: From TP8 to TP2×DP4
3.1 Reworking the Parallelism Strategy So Multiple Cards Serve Concurrency Better
The baseline uses tensor parallelism 8 with data parallelism 1: the model is sharded across all eight cards and runs as a single replica. This is simple to implement and puts the least pressure on memory, but concurrency is limited — all requests share the same compute resources, batch size is bounded by what a single replica can schedule, and inter-card communication grows as tensor parallelism increases.
The optimized configuration switches to tensor parallelism 2 with data parallelism 4: each card holds a “thicker” slice of the model, and four replicas can process requests independently. Three things change:
- Concurrency capacity rises, since the scheduler can spread requests across replicas and increase the effective batch size;
- Communication frequency from tensor parallelism drops, lowering the communication share;
- Per-card memory usage increases, which must be balanced with a quantized model and sensible cache management.
Expert parallelism is then introduced so that different experts in a mixture-of-experts structure are placed on different cards, instead of every card holding all expert weights. This frees up additional memory and improves hit efficiency.
3.2 Sequence Parallelism and Communication Optimization
Sequence parallelism (as in common flashcomm-style implementations) decouples part of the computation and communication along the sequence dimension, reducing redundant computation and synchronization waits for long sequences. For conversational workloads with long inputs and outputs, this often improves tail latency noticeably — and tail latency is usually what determines whether the SLO is met.
On the communication side, the topology awareness of collective communication operators matters: the split between tensor-parallel groups and data-parallel groups should match inter-card interconnect bandwidth, so that high-frequency communication does not land on low-bandwidth links.
3.3 Graph Compilation and Operator Compilation
Domestic accelerators typically offer a graph execution mode and operator compilation. Enabling graph mode lets the framework turn dynamic execution into a static graph, cutting scheduling overhead; operator compilation generates more efficient execution code for the specific hardware, reducing memory-access and instruction overhead. Both are orthogonal to the parallelism strategy, so their gains stack.
Illustrative launch parameters (pseudocode, intent only):
python -m engine.entry \--model /path/to/quantized-model \--tensor-parallel-size 2 \--data-parallel-size 4 \--enable-expert-parallel \--enable-sequence-parallel \--graph-mode static \--compile-kernels auto \--max-num-seqs 256
4. Reading the Results: Where the 50% Comes From
Under the same SLO, total throughput rose by about 53.5%, attributable to three curves moving up together:
- Concurrency curve: more data-parallel replicas mean more requests can be processed in parallel;
- Communication curve: lower tensor parallelism plus sequence parallelism reduce per-request communication cost;
- Execution curve: graph mode and operator compilation cut the fixed overhead of each inference step.
Stacked together, the system can hold a larger batch within the same tail-latency budget, converting idle compute into effective throughput. This also explains why simply increasing batch size usually fails to deliver comparable gains — if communication and execution efficiency have not improved, a larger batch just hits the latency limit sooner.
5. A Reusable Rollout Checklist
- Fix the baseline and the SLO definition first, with explicit targets for first-token latency and per-request rate;
- Work backward from memory footprint to feasible parallelism combinations, trying lower tensor parallelism and higher data parallelism first;
- For mixture-of-experts models, evaluate the memory and routing benefits of expert parallelism;
- For long-sequence workloads, validate sequence parallelism first;
- Layer on graph mode and operator compilation last, measuring each item instead of enabling everything at once;
- Validate with real traffic replay, watching P99 rather than averages alone;
- Write validated configurations back into the plan directory to build an organization-level asset.
6. Conclusion
Inference optimization on domestic compute is fundamentally about balancing memory, communication, and scheduling. This 8-card exercise shows that the structural gains from reworking the parallelism strategy usually outweigh single-parameter tuning, while compiler and communication optimizations determine whether those gains actually materialize under a real SLO. Turning the process into a searchable, comparable, reusable deployment plan is what drives long-term cost and efficiency improvements for a team.
