LLM Inference on Domestic Compute Clusters: Cost, Gross Margin, and Technical Paths
As the AI industry shifts its focus from training capabilities to inference economics, optimizing the cost per token has become crucial for commercial viability. This article analyzes the engineering systems behind large-scale Large Language Model (LLM) inference on domestic compute clusters, exploring how teams achieve positive gross margins. It covers cluster infrastructure challenges, strategies for leveraging domestic accelerators (including quantization and bandwidth optimization), and architectural paradigms for supply chain resilience, offering practical guidance for developers on cost management and software-stack optimization.
1. Background: LLM Competition Enters the “Inference Economics” Phase
Over the past few years, the focus of competition in the large model industry has evolved through three stages. The first stage was about pushing the upper limits of model capabilities, with players racing to top evaluation leaderboards. The second stage focused on training efficiency and data engineering. In the current stage, industry attention has clearly shifted to the economics of inference—specifically, whether model capabilities can be delivered at scale to massive user bases at a sufficiently low unit cost.
The logic behind this shift is straightforward. Training is a one-time investment, whereas inference is a continuous expenditure that scales linearly with business volume. For commercial teams, inference costs directly dictate the trajectory of the gross margin curve. As the gap in model capabilities gradually narrows, whoever can compress the “comprehensive cost per call” to a lower level will achieve a better balance between price competition and profit margins.
Recent industry disclosures indicate that some teams have claimed to complete large-scale, low-cost inference deployments of their flagship models on domestic chip clusters, achieving a positive inference gross margin. This signal is worth examining closely: it relies on an integrated hardware-software engineering system rather than isolated technological breakthroughs.
2. Technical Composition of Large-Scale Inference Clusters
2.1 Cluster Scale and Engineering Challenges
Reports suggest that the relevant clusters have surpassed 100,000 domestic accelerator cards. A cluster of this 100k-card magnitude imposes systematic requirements on the infrastructure:
- Network Interconnect: While inference clusters are less sensitive to cross-node bandwidth than training clusters, they still require a high-throughput, low-jitter data plane network to support request distribution and node-to-node communication for tensor parallelism.
- Scheduling System: A unified scheduling layer is needed to support multi-tenant isolation, elastic scaling, and priority preemption, ensuring reasonable mixed deployment of online services and offline batch processing tasks to boost overall utilization.
- Fault Tolerance and O&M: Failures across 100,000-level devices are a norm. There must be automated mechanisms for health checks, fault isolation, and traffic migration.
From an engineering perspective, the value of such clusters lies not just in “stacking cards” but in driving up utilization. It is widely recognized in the industry that if the effective utilization rate of an online inference cluster can be stabilized at a high level, the cost per token will drop significantly.
2.2 Why Choose Domestic Chips?
Choosing domestic compute power is not merely a policy response but a rational decision balancing cost, supply stability, and localization needs. Domestic accelerators still lag behind the most advanced international products in absolute single-card performance. However, in inference scenarios, this gap can be bridged through software stack optimization for the following reasons:
- Relatively Fixed Inference Workloads: Once the model structure is determined, the set of operators used in inference is highly convergent. This allows for deep compiler optimization and hand-written kernel tuning for fixed operators.
- Quantization Lowers Hardware Barriers: Inference has a higher tolerance for precision loss than training. Mainstream solutions include INT8, FP8, and INT4 weights. Taking a common Multi-Layer Perceptron (MLP) as an example, memory footprint and bandwidth requirements are drastically reduced after quantization:
# Illustration: Basic idea of linear layer weight quantization# Original FP16 weights W -> Quantized to INT4/INT8, dequantized by group during inferencescale = W.abs().max() / (2**bits - 1)W_q = torch.round(W / scale).clamp(-(2**(bits-1)), 2**(bits-1)-1)# In actual deployment, kernel-level fused dequantization is applied to avoid extra overhead
- Bandwidth is the Real Bottleneck: The autoregressive generation in the decoding phase is a typical memory-intensive task, and the arithmetic utilization is inherently low. This means that the chip’s memory bandwidth and on-chip cache design are often more critical than peak compute power. The gap for domestic chips in these dimensions is relatively manageable.
3. Technical Conditions for Positive Inference Gross Margin
“Positive gross margin” is a business metric, but it corresponds to a clear set of technical thresholds:
First, sufficiently low unit cost. This includes continuous KV Cache management optimization (such as memory paging and reuse like PagedAttention), continuous batching to improve throughput, and speculative decoding to reduce decoding steps. When these technologies are stacked, the concurrency supported by the same hardware can multiply.
Second, favorable request structures. Business traffic with a high cache hit rate and a reasonable input/output ratio can significantly amortize the Prefill cost. This is why API service providers emphasize prompt caching capabilities—repeated prefixes only need to be computed once.
Third, model efficiency. Small-sized models, sparse activation architectures (MoE), and distilled lightweight versions make “high cost-performance tiers” possible. The industry often adopts a tiered strategy: flagship models handle complex tasks, while lightweight models handle high-frequency simple requests. Together, they optimize the overall cost structure.
Fourth, a self-controllable software stack. Only through deep collaborative tuning among the inference framework, operator library, compiler, and hardware can theoretical hardware performance be realized as actual throughput. This layer is often the most easily underestimated moat by outsiders.
4. Architectural Insights Under New Export Control Rules
Recent export control rules published by regulatory bodies restrict enterprises in other countries from remotely accessing advanced chips through third-country data centers. The implications of such policy changes for industry architecture design are universally applicable:
- Compute Localization: Concentrating core compute power domestically to avoid the policy uncertainty of cross-border compute leasing.
- Asset-Light Overseas Business: Serving overseas markets through partners who hold operational assets and deploy models locally, while the main entity only outputs model capabilities and software stacks.
- Supply Chain Diversification: Both training and inference should possess portability to domestic hardware to avoid single-supply-chain risks.
This essentially points to an architectural paradigm of “software-hardware decoupling, localized compute, and capability output.” For enterprise users, when selecting technologies, they should evaluate the supplier’s multi-hardware adaptation capabilities and deployment flexibility to avoid being locked into a single compute path.
5. Practical Advice for Developers
- Establish a Cost Measurement System: Use cost per million tokens and cost per concurrent user as core metrics to continuously track the cost curve of inference services.
- Prioritize Software Layer Optimization: The returns from batching strategies, quantization schemes, and cache design are often higher than hardware replacements.
- Emphasize Hybrid Deployment: Combine cloud-based large models with local lightweight models to balance capability and cost.
- Evaluate Portability: The model service architecture should support switching between different hardware backends to mitigate supply chain risks.
6. Conclusion
The transition to positive inference gross margins and the domestication of large clusters mark the LLM industry’s shift from a “capability competition” to an “efficiency competition.” For developers and enterprise users, understanding the technical logic behind this shift—hardware-software co-design, quantization and scheduling optimization, and localized compute architecture—will directly impact the quality of future tech selection and architectural decisions. Ultimately, sustainable AI commercialization is a long-term competition centered on engineering efficiency.
