Building Large-Scale Domestic AI Compute Clusters: Deployment Practices and Inference Optimization Guide

    This article walks through the practical engineering of a domestic, ten-thousand-plus accelerator AI compute cluster, covering why training and inference must be planned as separate pools, how to deliver and bring capacity online in stages under supply constraints, key power and cooling design points for gigawatt-scale facilities, a four-step model adaptation path for domestic accelerators, cost and capacity governance, and a risk checklist with mitigations. The focus is on turning every thousand cards into a deliverable, observable, and billable production unit rather than chasing single-card peak performance.

    1. Background: Compute Self-Reliance Enters the Cluster-Scale Era

    Over the past two years, competition in AI infrastructure has shifted from single-card performance to cluster scale and engineering efficiency. Publicly available industry information indicates that a domestic AI company plans to build a gigawatt-class data center in Inner Mongolia, with a planned deployment of no fewer than 160,000 domestic AI accelerator chips. If fully realized, it would become the largest known cluster of domestic chips. The significance of such a project is not simply “more cards,” but pushing power supply, cooling, networking, scheduling, and model adaptation to their limits under extreme operating conditions.

    Several constraints deserve a rational look:

    • Power is a hard boundary. The electricity consumed by a gigawatt-class campus running at full load is roughly equivalent to the daily usage of hundreds of thousands of households, so site selection depends heavily on electricity prices, climate, and grid interconnection conditions.
    • Supply is a hard constraint. Annual production capacity for high-end accelerator chips is limited, and it must simultaneously serve customers in other industries and a small volume of exports; the delivery cycle for all orders may exceed one year.
    • Positioning is a hard reality. Although these domestic chips are capable of training, at this stage they mainly handle inference workloads, while training still relies on the existing installed base of accelerators.

    2. Compute Tiering: Why Training and Inference Must Be Planned Separately

    Mixing training and inference in the same resource pool is the most common architectural mistake in hyperscale clusters. The two have fundamentally different resource requirements:

    Dimension Training Workload Inference Workload
    Communication High-bandwidth, low-latency interconnect; collective-communication intensive Sparse communication; single-request latency matters more
    Runtime pattern Long-running and fully occupied; frequent checkpoints Bursty with large peak-to-trough gaps
    Failure impact A single point of failure can take down the whole job A single point of failure affects only a few requests
    Scheduling goal Maximize throughput Meet latency SLOs and unit cost

    The recommended structure is therefore a “dual pool + unified scheduling plane”: the training pool pursues interconnect topology and stability, the inference pool pursues elasticity and density, and the upper layer exposes services through unified resource orchestration and quota management.

    1. # Illustration: resource pool tiering and quotas (pseudo-config, structure only)
    2. pools:
    3. - name: train-pool
    4. accelerator_type: legacy-high-perf
    5. topology: rail-optimized
    6. preemption: false
    7. - name: infer-pool
    8. accelerator_type: domestic-accelerator
    9. topology: leaf-spine
    10. preemption: true
    11. autoscaling:
    12. min_replicas: 200
    13. max_replicas: 2000
    14. quotas:
    15. team_a: { train: 512, infer: 1024 }
    16. team_b: { train: 0, infer: 512 }

    3. Delivery and Rollout Strategy Under Supply Constraints

    When capacity is insufficient, waiting to bring everything online at once leaves assets idle for a long time. A more reliable approach is to break cluster construction into incremental units that each generate value independently:

    1. Use the “thousand-card” scale as the minimum delivery unit; as each batch arrives, form a usable cluster and start serving internal and external inference traffic.
    2. Maintain an equipment ledger and arrival forecasts, fold uncertain capacity into the capacity model, and plan with confidence intervals rather than point estimates.
    3. Reserve heterogeneous mixed-deployment capability so that two generations of accelerator cards can coexist at the scheduling layer, avoiding a full stoppage if one batch is delayed.
    4. Manage critical spare parts (high-bandwidth memory, optical modules, power modules) as “field-replaceable units” to shorten mean time to repair.

    4. Engineering Essentials for a Gigawatt-Scale Campus

    • Power: Use multiple utility feeds plus redundant transformation and distribution, design power density to the rack-level ceiling, and reserve expansion headroom; power usage effectiveness (PUE) should be one of the acceptance metrics.
    • Cooling: Prioritize liquid cooling for high-density racks, with air cooling as a transition; cold-plate and immersion solutions differ markedly in retrofit difficulty and operational habits, so the choice must match facility conditions.
    • Network: Inference clusters are mainly built on non-blocking or near-non-blocking leaf-spine architectures, while training clusters focus on rail-optimized topologies and collective communication efficiency.
    • Observability: Connect log services, metrics monitoring, and alerting into a unified platform, with tiered dashboards for temperature, power draw, inter-card bandwidth, and request latency.

    5. Model Adaptation: Getting Domestic Accelerators Fully Utilized

    The gains from model-side adaptation often exceed the marginal return of hardware procurement. A four-step approach is recommended:

    1. Operator coverage scan: Measure how well the model’s operators are supported on the target backend and produce a list of gaps.
    2. Accuracy alignment: Compare output distributions on a small benchmark set to locate the sources of numerical differences.
    3. Graph-level optimization: Operator fusion, constant folding, and memory reuse to reduce the movement of intermediate tensors.
    4. Serving-layer optimization: Combine dynamic batching, paged key-value caching, prefix reuse, quantization, and speculative decoding.
    1. # Illustration: batching and cache reuse in inference serving (pseudo-code)
    2. def schedule(requests, max_batch=64, cache_prefix=True):
    3. batch = []
    4. for r in requests:
    5. if cache_prefix and r.prefix in prefix_cache:
    6. r.kv = prefix_cache[r.prefix] # reuse the KV cache of a shared prefix
    7. batch.append(r)
    8. if len(batch) == max_batch:
    9. break
    10. return run_forward(batch) # unified forward pass

    6. Cost and Capacity Governance

    • Standardize the unit cost metric as “cost per million tokens” rather than per-card price, to avoid distorting procurement decisions.
    • Establish peak-and-trough scheduling: run offline batch jobs during nighttime and low-traffic periods to raise average utilization.
    • Tier SLOs: Guarantee separate pools for online interactive, near-line, and offline evaluation tasks so that low-value jobs do not crowd out others.
    • Capacity reviews: Align three curves monthly—arrivals, installed capacity, and actual utilization—and trigger an architecture review whenever deviation exceeds a threshold.

    7. Risk Checklist

    Risk Symptom Mitigation
    Capacity delays Uncontrollable arrival pace Staged rollout, heterogeneous mixed deployment
    Ecosystem adaptation Missing operators, framework incompatibility Abstract the backend interface to hide differences
    Power and cooling Density exceeds design limits Liquid-cooling retrofit, power capping
    Supply chain compliance Uncertain procurement and leasing paths Upfront compliance review, traceable sourcing
    Operational complexity Slow fault localization Unified observability and automated inspection

    8. Conclusion

    For hyperscale self-reliant compute clusters, the deciding factor is not single-point peak performance but whether the closed loop of “staged delivery—unified scheduling—model adaptation—cost governance” can keep running. Only by turning every thousand cards into a deliverable, observable, and billable production unit can effective compute be steadily expanded under real-world supply constraints.