A Practical Guide to Building 100K-Scale Domestic AI Compute Clusters
This article breaks down the engineering challenges behind large-scale domestic AI accelerator deployments, using a reported 160,000-chip inference cluster as the starting point. It explains why inference performance is constrained by memory bandwidth rather than floating-point compute, how prefill and decode stages differ, and why Mixture-of-Experts architectures amplify communication pressure. You will find a layered super-node design model, the engineering trade-offs of custom memory and advanced packaging, a capacity-planning workflow that works backward from business metrics, four techniques for reducing long-context inference cost, and a risk checklist covering delivery, capacity, memory supply, performance gaps, ecosystem adaptation, and operations. The conclusion is that success depends on the product of four engineering capabilities: bandwidth hierarchy design, capacity-planning accuracy, ecosystem adaptation depth, and supply-chain risk management.
1. The Real Problem Behind a Massive Domestic Compute Purchase
Recent media reports describe a leading large-model team planning to deploy 160,000 next-generation domestic AI accelerators in a self-built data center in northern China, mainly for model inference. The team also plans to co-define a super-node architecture with the chip vendor to reduce long-context inference cost. The chip is expected to launch in Q4 of the following year, and full delivery may take more than a year.
Once the specific parties are set aside, the technical value of this project comes down to three reusable problems:
- Capacity planning for very large inference clusters: 160,000 accelerators are not a simple quantity to stack up. This is a systems engineering exercise that requires precision on memory capacity, interconnect bandwidth, network oversubscription ratio, and power and cooling headroom.
- The bandwidth bottleneck in the inference stage: When a model uses a Mixture-of-Experts architecture and context length keeps growing, decode-stage performance is no longer determined by floating-point compute but by memory bandwidth and communication efficiency.
- Supply-chain and capacity risk: A single order can consume a significant share of a vendor’s annual planned capacity. Delivery cadence, yield ramp-up, and supporting memory capacity all become critical-path items.
The sections below expand on each layer.
2. Why the Inference Cluster Bottleneck Is Bandwidth, Not Compute
2.1 Prefill and Decode Are Two Different Workloads
Large-model inference is usually split into two stages:
- Prefill stage: Processes all input tokens at once. It is compute-intensive, with large matrix multiplications, high compute utilization, and relatively low sensitivity to memory bandwidth.
- Decode stage: Generates tokens autoregressively, one token per step. Each step repeatedly reads all model weights and the key-value cache, making it memory-access-intensive while leaving compute largely idle.
This explains a common phenomenon: a cluster may advertise very high compute, yet end-to-end throughput stays low. The following illustrative code expresses the decision logic:
# Illustrative only: check whether the decode stage is bandwidth-bounddef is_memory_bound(weights_bytes, kv_cache_bytes, tflops_peak, mem_bw):bytes_per_step = weights_bytes + kv_cache_bytesstep_time_mem = bytes_per_step / mem_bw # memory-access lower boundstep_time_compute = 2 * active_params / tflops_peak # compute lower boundreturn step_time_mem > step_time_compute, step_time_mem, step_time_compute
When step_time_mem is significantly larger than step_time_compute, optimization should focus on raising memory bandwidth, compressing the key-value cache, and improving interconnect efficiency, rather than adding more compute.
2.2 Mixture-of-Experts Amplifies Communication Pressure
A Mixture-of-Experts model activates only part of its experts at each step, which lowers per-step compute. However, experts may sit on different nodes, which introduces extra all-to-all communication. The longer the context, the larger the key-value cache and the more data that must cross nodes. Two engineering conclusions follow:
- Per-card memory capacity and bandwidth are hard constraints. Insufficient capacity forces smaller batch sizes and lowers throughput.
- A tiered design of high-bandwidth intra-node interconnect and low-latency inter-node networking matters more to overall efficiency than single-point peak performance.
3. Super-Node Design: Making Bandwidth a Hierarchy
The core idea of a super-node is to use high-speed interconnect to organize a set of accelerators, processors, and memory into a tightly coupled logical unit, so that cross-card communication happens inside a high-bandwidth domain as much as possible.
A typical layered design looks like this:
| Layer | Scope | Typical Requirement | Key Metric |
|---|---|---|---|
| Intra-card | Single chip | High-bandwidth memory access | Memory capacity, memory bandwidth |
| Intra-node | 8–64 cards | Low-latency collective communication | Interconnect topology, per-card bidirectional bandwidth |
| Rack / super-node | Hundreds of cards | High-bandwidth domain scaling | Switch port density, oversubscription ratio |
| Data center | 10K-card scale | Scalability and operability | Lossless network, fault isolation domains |
Three design points matter:
- Align communication domains with the parallelism strategy: Tensor parallelism is the most bandwidth-sensitive and should be confined within a node. Pipeline parallelism and data parallelism can span nodes and tolerate higher latency.
- Converge fault isolation domains: At 10K-card scale, a single-card failure is normal rather than exceptional. Super-node boundaries should also be fault boundaries, so a single-point failure does not trigger a global reschedule.
- Plan power and cooling at the same time: Once per-rack power density rises, power redundancy and liquid-cooling design must be involved from the start, or they cannot be fixed later.
4. Memory and Packaging: The Engineering Value of Bypassing Standard Stacks
Standard high-bandwidth memory has long been supplied by a small number of memory vendors, so capacity and allocation become external variables. One direction the industry has taken in recent years is to integrate logic chips and memory more tightly through advanced packaging such as self-developed through-silicon vias and hybrid bonding, forming a custom memory hierarchy.
The engineering significance is:
- Better supply controllability: Memory no longer depends entirely on external allocation of standard parts.
- Customizable memory hierarchy: Trade-offs in capacity, bandwidth, and access granularity can be tuned for inference workloads.
- A changed cost structure: Cost shifts from “buying standard memory” to “design and packaging capability”.
The cost is equally clear: domestic high-bandwidth memory capacity is still at an early stage, packaging yield ramp-up takes time, and very large orders remain a sustained test of memory supply and manufacturing capability.
5. Capacity Planning: Working Backward from Business Metrics
Do not start from “how many cards we have”. Start from business metrics. The recommended backward workflow:
- Define the target: average daily request volume, average input and output length, and the lower and upper bounds for time-to-first-token and end-to-end latency.
- Estimate effective per-card throughput: use measured output tokens per second per card, not theoretical peak.
- Calculate the required card count:
total cards ≈ peak token throughput demand / effective per-card throughput × redundancy factor. - Validate memory and key-value cache: confirm that the target batch size does not trigger memory overflow or frequent swapping.
- Add high-availability redundancy: reserve hot-spare capacity per fault domain, typically no less than a single-digit percentage of the total.
- Align phased delivery: split a one-time large order into batches that match the capacity ramp.
Illustrative script:
def plan_cluster(req_per_day, in_len, out_len, per_card_tps, redundancy=1.15):daily_tokens = req_per_day * (in_len + out_len)peak_tps = daily_tokens / 86400 * 3 # calibrate the peak factor with your own measurementscards = peak_tps / per_card_tps * redundancyreturn {"peak_tps": peak_tps, "cards": int(cards)}
One point deserves emphasis: the peak factor and effective per-card throughput must come from your own load testing. Copying nominal figures from anywhere else will distort the plan.
6. Four Ways to Drive Down Long-Context Inference Cost
- Key-value cache optimization: Paged management, quantized compression, and cross-request prefix reuse directly reduce the volume of memory access.
- Request scheduling and batching: Continuous batching raises decode-stage parallelism and prevents long and short requests from blocking each other.
- Separate prefill and decode deployment: The two workload types run on compute pools with different configurations and scale independently as needed.
- Cache-hit priority: Build multi-level caches for high-frequency prefixes and retrieval results to cut repeated computation.
The shared logic of these four techniques: in a bandwidth-constrained scenario, moving less data is more effective than raising peak compute.
7. Risk Checklist: Managing Uncertainty Explicitly
| Risk Category | Concrete Manifestation | Mitigation |
|---|---|---|
| Delivery risk | Long delivery cycles, delayed batches | Order in batches, milestone acceptance, reserve alternative compute |
| Capacity risk | Consuming most of the vendor’s annual capacity | Long-term capacity agreements and rolling forecasts |
| Memory supply | Insufficient high-bandwidth memory capacity | Validate multiple memory options in parallel |
| Performance gap | Per-card performance behind the most advanced products | Trade cluster scale and algorithm optimization for performance |
| Ecosystem adaptation | Maturity of operator libraries, compiler stacks, frameworks | Do model-level porting and operator gap-filling early |
| Operational complexity | Hard fault localization at 10K-card scale | Full-stack observability and automatic isolation |
Ecosystem adaptation is the most commonly underestimated item. Hardware arriving does not mean the business can run. The work of adapting model structures, operator coverage, and distributed training and inference frameworks often determines the actual production date.
8. Industry Implications: From Passive Substitution to Active Planning
A very large order of this kind carries three layers of signal:
- Demand-side maturity: Large-model companies are starting to define hardware specifications against their own roadmaps and co-design architectures with chip vendors, which shows procurement shifting from “what can we buy” to “what do we need”.
- Supply-side recovery: Massive, well-defined demand gives the domestic semiconductor supply chain market space and cash flow, and a market is usually the first precondition for an industry to grow.
- Infrastructure status: Once domestic compute enters core production systems rather than an edge alternative, the evaluation criteria shift from “is it usable” to “total cost of ownership and service level”.
The cloud path is equally clear: enterprises do not have to build all the hardware themselves. They can rely on a container platform for elastic compute scheduling, use object storage for training and inference data, use a message queue to smooth request spikes, and build full-stack observability with logging and monitoring alerts. In these general capabilities, Baidu AI Cloud provides standardized cloud infrastructure support, helping enterprises focus their effort on the model and the business itself.
9. Deployment Checklist
- Are business metrics quantified down to the lower and upper bounds of latency and throughput?
- Is real load testing complete, with effective per-card throughput measured?
- Are the parallelism strategy and interconnect topology aligned?
- Do memory and key-value cache have adequate safety margin?
- Do delivery batches match the capacity ramp?
- Are fault isolation domains and hot-spare capacity in place?
- Is operator and framework adaptation validated at the model level?
- Is there a cache-reuse and request-scheduling optimization plan?
The conclusion is not complicated. Whether a 100K-scale domestic compute cluster succeeds does not depend on comparing per-card peak specifications. It depends on the product of four engineering capabilities: bandwidth hierarchy design, capacity-planning accuracy, ecosystem adaptation depth, and supply-chain risk management. Get those four solid, and domestic compute can genuinely move from an alternative option to core infrastructure.
