A Practical Guide to Selecting and Deploying Domestic AI Inference Compute
As large language models move from labs into production, inference compute has become the critical bottleneck. This guide provides a vendor-neutral framework for evaluating domestic AI accelerators for LLM inference, covering how memory capacity constrains model size, context length, and concurrency; how to assess software ecosystem migration costs; when modular form factors make sense; and how to design a reproducible performance benchmarking plan that turns paper specs into real-world throughput data.
1. Background: LLM Deployment Is Accelerating, and Compute Supply Is the Key Variable
Since 2024, large language models have moved from the lab into industrial deployment at a visibly faster pace. Open-source and commercial models iterate in turn, model capabilities keep improving, and demand on the inference side has surged. For AI application developers, an unavoidable engineering question is now on the table: where does inference compute come from, how do we keep its supply stable, and how do we control costs?
For a long time, the AI training and inference hardware market was highly concentrated. Developers’ software stacks, operator libraries, and tuning experience were largely built around a single technology ecosystem. However, supply chain uncertainty and geopolitical risk have turned “multi-source compute supply” from an option into a necessity. Against this backdrop, domestic AI acceleration hardware has matured rapidly and is gradually becoming capable of hosting LLM inference workloads. But there is still a gap between “usable” and “easy to use.” Decision-makers need an objective evaluation framework, not just a spec sheet.
This article does not recommend any specific vendor or product. Instead, from a general technical perspective, it discusses the core issues in selecting domestic AI inference compute: how memory capacity affects inference services, how to evaluate software ecosystem migration costs, which scenarios suit multi-card module form factors, and how to design a reproducible performance validation plan.
2. Memory Capacity: The First Constraint of LLM Inference
When discussing any AI accelerator, memory capacity is the most fundamental—and most easily underestimated—metric. For LLM inference, memory determines three things: how large a model you can load, how long a context you can support, and how many requests you can serve concurrently.
2.1 The Composition of Memory Usage
Memory usage for a single inference request can be roughly divided into four parts:
- Model weights: Directly related to parameter count and precision. At FP16 precision, every billion parameters occupies about 2 GB of memory; with INT8 quantization, this can be compressed to about 1 GB.
- KV Cache: Caches historical Key/Value tensors during autoregressive generation. It grows linearly with context length and concurrency, and is the fastest-growing component in LLM inference.
- Activations and temporary buffers: Intermediate tensors during forward computation, related to batch size and sequence length.
- Framework and runtime overhead: The inference framework’s own memory management, operator workspace, and so on.
The KV Cache can be estimated with a simplified formula:
# KV Cache memory estimation (simplified model)# num_layers: number of Transformer layers# num_kv_heads: number of KV heads (smaller than attention heads under GQA/MQA)# head_dim: dimension of each head# seq_len: context length# batch_size: number of concurrent sequences# dtype_bytes: bytes per element (2 for FP16, 1 for INT8)kv_cache_bytes = (2 * num_layers * num_kv_heads * head_dim* seq_len * batch_size * dtype_bytes)
Take a typical 70B-parameter model as an example: FP16 weights alone require roughly 140 GB of memory. If a single card lacks sufficient memory, you must rely on multi-card sharding or quantization. And even if the weights fit, the KV Cache still inflates rapidly with concurrency. This means memory capacity directly determines the concurrency ceiling and context window of your service—it is the first constraint in inference platform planning.
2.2 Practical Impact of Memory Capacity on Selection
Among AI accelerators of similar positioning, differences in memory capacity lead to entirely different deployment strategies:
- Smaller memory (e.g., 64 GB class): Large models require multi-card tensor parallelism just to load, which adds communication overhead, and leaves limited room for the KV Cache—concurrency is constrained in long-context scenarios.
- Medium memory (e.g., 96 GB class): One or two cards can host medium-sized models, but you still need to trade off context length against concurrency.
- Larger memory (e.g., 128 GB and above): A single card can host a large model, with ample KV Cache space to support both longer contexts and higher concurrency simultaneously.
It should be emphasized that memory capacity is not the only metric—bandwidth, compute, and interconnect capability matter too. But in LLM inference scenarios, memory capacity is often the first ceiling you hit, and the first parameter you should confirm during selection.
3. Software Ecosystem Compatibility: Migration Costs Are Often Underestimated
Hardware specs determine theoretical capability; the software ecosystem determines how fast you actually land in production. For teams with an existing GPU inference stack, the biggest hidden cost of moving to a new AI accelerator is usually not hardware procurement—it is software adaptation.
3.1 The Composition of Migration Costs
A complete inference platform migration involves multiple layers:
- Operator coverage: Whether operators in mainstream inference frameworks can execute efficiently on the target hardware, and whether there are “operator gaps” requiring hand-written alternatives.
- Framework adaptation: Whether inference frameworks (common deep learning frameworks and inference engines) already support the target hardware backend.
- Custom operators and fusion optimizations: Whether fused operators and graph optimization passes accumulated in your business need to be rewritten.
- Precision alignment: Whether outputs after migration need layer-by-layer alignment verification, and whether quantization schemes are compatible.
- Toolchain maturity: Whether performance profiling tools, memory analysis tools, and debugging facilities are complete.
If the target hardware’s software stack has a high degree of correspondence with the existing CUDA ecosystem, the scale of the above work drops significantly. A common industry practice is to provide runtimes and operator libraries compatible with mainstream programming models, so that much existing code can run with minimal changes. When evaluating, focus on: the coverage ratio of commonly used operators, the maturity of inference framework backends, and whether there are reproducible migration cases.
3.2 A Practical Method for Evaluating Migration Costs
We recommend designing a “minimal migration validation” during the selection phase:
# Migration validation checklist (example)# 1. Select the Top 10 most frequently used models in your business# 2. Run end-to-end inference on the target hardware (correctness first, not performance)# 3. Compare output precision layer by layer (cosine similarity / max abs error)# 4. Record the number of modified code lines and operator replacements# 5. Test compatibility of quantization schemes (INT8/FP8)# 6. Use profiling tools to locate bottleneck operators
This validation does not chase benchmark scores—it quantifies “migration workload.” If a high proportion of your Top 10 models run with zero or minimal code changes, the software ecosystem has good compatibility; otherwise, you need to carefully assess the time cost.
4. Product Form Factor and Deployment Density: The Engineering Significance of Modular Design
In data center scenarios, the physical form factor of AI accelerators directly affects deployment density, thermal design, and operations. Common form factors include standard PCIe cards and module form factors (such as OAM or custom modules).
Module form factors typically have the following engineering characteristics:
- Higher integration: Multiple cards are integrated via a unified carrier board or module baseboard, with better guaranteed inter-card interconnect bandwidth—suitable for distributed inference scenarios with frequent communication.
- Greater deployment density: More accelerators can fit in a single rack, suitable for large-scale inference clusters.
- Upfront thermal and power design: Module form factors place higher demands on system cooling and power delivery, and usually require dedicated server platforms.
For inference services, if a single card has sufficient memory and the model fits on one card, PCIe form factors offer more flexibility; if you need multi-card cooperation to host large models or pursue high-density deployment, module form factors have the advantage. Selection should be based on a comprehensive judgment of data center conditions, operations systems, and business scale—not a simple comparison of card counts.
5. Performance Validation Plan: From Paper Specs to Real Throughput
Hardware specs and ecosystem compatibility are only the starting point of selection. Final decisions must be built on reproducible performance validation. A rigorous inference performance test should cover the following dimensions:
5.1 Test Metric Definitions
- Time To First Token (TTFT): The time from sending a request to receiving the first output token. It reflects prefill-stage performance and is related to compute and memory bandwidth.
- Time Per Output Token (TPOT): The average generation time per token during the decode stage, reflecting autoregressive generation efficiency.
- Throughput (Tokens/s): The total number of tokens generated per unit time, divided into single-request throughput and total system throughput.
- Concurrency scalability: How throughput changes and how latency degrades as concurrency increases.
5.2 Key Points of the Test Methodology
# Key controlled variables in inference performance testing# - Fix the model and precision (e.g., FP16 / INT8)# - Fix the distribution of input lengths and output lengths# - Fix concurrency steps (1, 4, 8, 16, 32...)# - Warm up for enough rounds to exclude cold-start effects# - Record P50/P95/P99 latency, not just averages# - Monitor memory usage curves to confirm no leaks
It is especially important to note that different hardware may behave significantly differently under different model architectures and batching strategies. For example, hardware with higher memory bandwidth may have an advantage in the decode stage, while hardware with higher compute density performs better in the prefill stage. Therefore, tests should cover the length distribution of your real business traffic, rather than a single fixed length.
5.3 How Memory Capacity Manifests in Testing
The impact of memory capacity on performance testing shows up in the “testable boundary”: hardware with smaller memory may simply OOM in long-context or high-concurrency scenarios and never even enter the performance comparison stage. Therefore, test reports should clearly state the maximum context length and maximum concurrency each piece of hardware can support—this is more valuable than a single throughput number.
6. Selection Decision Framework: A Reusable Checklist
Combining the above discussion, the selection of domestic AI inference compute can be summarized into the following checklist:
Layer 1: Hard Constraints
- Does single-card memory capacity meet the weight-loading requirements of the target model?
- After deducting weights, can the remaining memory support the context length and concurrency your business needs?
- Does inter-card interconnect bandwidth meet the communication needs of multi-card parallel inference?
Layer 2: Software Ecosystem
- Do mainstream inference frameworks already have mature backend support?
- What is the operator coverage for your high-frequency business models? Are there critical operator gaps?
- Are quantization schemes compatible? Has precision alignment verification passed?
- Are performance analysis and debugging tools complete?
Layer 3: Engineering Deployment
- Does the product form factor (PCIe/module) match your existing server platforms and data center conditions?
- Are deployment density, cooling, and power delivery within acceptable ranges?
- Are operations and monitoring interfaces complete? Does it support common cluster management approaches?
Layer 4: Performance Validation
- With real models and real length distributions, do TTFT, TPOT, and throughput meet business SLAs?
- Is the concurrency scalability curve smooth? Is P99 latency under control?
- Is long-context operation stable without OOM?
7. Conclusion
The maturation of domestic AI compute is a systematic engineering effort—leadership in a single spec does not equal usability of the overall solution. For developers and enterprises, the rational selection path is: first clarify the business’s hard requirements for memory and context, then evaluate the migration cost of the software ecosystem, and finally validate real performance with reproducible tests. Throughout this process, staying technically neutral and letting data speak matters far more than chasing any single product’s marketing claims.
As inference frameworks continue to improve multi-backend support and operator library compatibility layers keep maturing, the barrier to adopting domestic AI acceleration hardware is lowering. We recommend that teams establish their own evaluation baselines early in the selection process, and turn migration validation and performance testing into reusable engineering assets—so that no matter how the hardware market changes, you can quickly make evidence-based technical decisions.
