Domestic AI Compute Breakthrough: A System-Level Engineering Guide

    This article explains why inference compute has become the main bottleneck for large-scale LLM deployment and how to maximize usable throughput under per-card constraints. It defines system-level effective compute across throughput, scaling efficiency, long-run stability, and cost efficiency, then covers high-speed interconnect, layered parallelism, unified scheduling, migration and precision alignment, and capacity governance. The goal is to turn limited resources into predictable business throughput.

    1. The Starting Point: Why Inference Compute Becomes the Bottleneck

    As large model applications move into large-scale production, the structure of compute demand has shifted. Training relies on centralized, large-scale parallelism with bursty demand. Inference, by contrast, serves continuous, fluctuating, and unpredictable online requests, so consumption looks more like a steady stream. When a business runs multiple models, context lengths, and invocation patterns at the same time, the resource gap on the inference side widens quickly.

    A typical scenario: a platform plans to introduce a large-scale accelerator card cluster in its own data center specifically for inference workloads, at a scale of hundreds of thousands of cards. The point of such planning is not simply to pile up hardware, but to fill a structural gap in inference compute. Even so, chip delivery, rack power, network cabling, cluster bring-up, and pre-launch stress testing all take time, so a time gap between supply and demand is unavoidable in the short term.

    The engineering question worth discussing is therefore not “how many cards are missing,” but: under constrained per-card conditions, how can systems engineering convert available compute into business throughput as fully as possible?

    2. Operating Logic: Constrained Per Card, Breakthrough at the System Level

    The mainstream operating logic of domestic compute can be summarized in eight words: constrained per card, breakthrough at the system level.

    Per-card process technology, memory bandwidth, and inter-card interconnect are constrained by external supply chains. That is an objective reality. The industry’s response is not to compete purely on single-card benchmark scores, but to use high-speed interconnect to combine dozens or even thousands of accelerators into a “super node” cluster, compensating for the per-card gap with effective system-level compute. This is similar to a central kitchen: when a single burner is not powerful enough, dozens of burners are connected and a unified scheduling system assigns orders, controls heat, and serves dishes in parallel.

    This approach has passed the prototype validation stage and entered commercial deployment at scale. A new-generation super node form factor has reached thousand-card scale and begun commercial rollout, while the previous generation has hundreds of deployments in the field. Industry observations show that in a given measurement period, domestic accelerators accounted for more than half of shipments in the China market, and the share gap between the top two vendors narrowed to single-digit percentage points. More importantly, “domestic chips paired with domestic models” has largely achieved Day 0 adaptation, and the trial-and-error cost of migrating models to a domestic foundation has dropped significantly.

    3. System-Level Effective Compute: Definition and Measurement

    “System-level effective compute” is the core metric of this round of breakthroughs. It is not a simple sum of peak compute, but the effective throughput a cluster sustains under real business workloads. A measurement framework can be built around four dimensions.

    1. Effective throughput (tokens/s or QPS): the business volume a cluster stably delivers under a given context length distribution and concurrency pressure.
    2. Scaling efficiency: whether throughput grows close to linearly as cards scale from 64 to 512 and 1024. Below roughly 70%, communication or scheduling is usually the bottleneck.
    3. Long-run stability: performance decay and recovery time over 24 hours or more of continuous operation.
    4. Cost efficiency per unit: total cost per million tokens, including cards, network, storage, power, and amortized operations.

    The following is an illustrative stress test and metric collection logic (pseudocode that only expresses the measurement approach):

    1. def benchmark(cluster, workload_profile, duration_hours=24):
    2. results = []
    3. for scale in [64, 256, 1024]:
    4. c = cluster.resize(scale)
    5. tps, p99 = [], []
    6. for _ in range(duration_hours * 60): # sample every minute
    7. metrics = c.run_step(workload_profile)
    8. tps.append(metrics.output_tokens_per_sec)
    9. p99.append(metrics.latency_p99_ms)
    10. results.append({
    11. "cards": scale,
    12. "throughput": mean(tps),
    13. "stability": 1 - stdev(tps) / mean(tps),
    14. "latency_p99": percentile(p99, 95),
    15. })
    16. return results

    4. Interconnect and Scheduling: Making the “Central Kitchen” Run Smoothly

    At the system level, the breakthrough comes down to three engineering tasks: high-speed interconnect, layered parallelism, and unified scheduling.

    For high-speed interconnect, a super node typically uses high-bandwidth intra-domain interconnect inside the node to minimize inter-card communication latency. Across nodes, it relies on high-throughput networks, while topology-aware scheduling keeps tasks in the same parallel group within the same interconnect domain as much as possible, reducing cross-domain hops.

    For layered parallelism, inference commonly combines tensor parallelism (TP) and pipeline parallelism (PP). TP is sensitive to communication bandwidth and should be kept within the interconnect domain; PP is more tolerant of bandwidth and can span nodes. For long-context scenarios, sequence parallelism can also be introduced to reduce per-card memory pressure.

    For unified scheduling, an inference-oriented scheduler is needed with request classification, priority preemption, dynamic batching, and elastic scaling. The following is an illustrative scheduling policy:

    1. scheduler:
    2. batching: continuous # continuous batching to improve card utilization
    3. max_batch_tokens: 32768
    4. priority_classes:
    5. - name: interactive # online interaction, low latency first
    6. latency_target_ms: 800
    7. preemptible: false
    8. - name: batch_offline # offline batch jobs, preemptible
    9. preemptible: true
    10. scaling:
    11. metric: queue_wait_time
    12. target_ms: 200
    13. cooldown_minutes: 3

    In related practice, Baidu AI Cloud typically combines common capabilities such as a container platform, message queues, object storage, and monitoring and alerting: the container platform handles elastic scaling of inference services, message queues smooth out request spikes, object storage holds models and datasets, and the monitoring and alerting system supports long-run observation and self-healing from anomalies.

    5. Migration and Adaptation: The Critical Path to Lower Trial-and-Error Cost

    Day 0 adaptation for domestic chips paired with domestic models means a model can run on a domestic foundation on the day it is released, but there is still engineering distance between “it runs” and “it runs well.” Migration is best advanced in this order:

    1. Operator coverage check: get the forward pass working first, then compare numerical error layer by layer to locate uncovered operators or abnormal precision.
    2. Precision alignment: compare output distributions before and after migration on a unified evaluation set, and set an acceptable deviation threshold.
    3. Performance tuning: apply graph optimization and operator fusion to hot operators such as attention, normalization, and quantization.
    4. Long-run validation: run continuous stress tests and fault injection to verify degradation and recovery when some cards fail.

    Illustrative precision alignment check logic:

    1. def align_check(baseline_logits, target_logits, atol=1e-3):
    2. diff = abs(baseline_logits - target_logits)
    3. assert diff.max() < atol, f"precision deviation too large: {diff.max()}"
    4. return {"max_diff": float(diff.max()), "mean_diff": float(diff.mean())}

    6. Cost and Capacity Governance

    For a cluster at the scale of hundreds of thousands of cards, power, cooling, and operations costs cannot be ignored. Capacity governance should follow three principles: first, separate inference and training resource pools to avoid contention; second, establish a tiered degradation mechanism that provides a smaller parameter model as a fallback for low-priority requests during peaks; third, put cost efficiency per unit into the daily operations dashboard and review scaling efficiency and utilization weekly.

    7. Conclusion

    The breakthrough in domestic compute is not a race on single-point parameters, but systems engineering across interconnect, scheduling, software stacks, and engineering governance. For developers and enterprises, the way to convert limited resources into certain business throughput during the window when compute supply lags demand is to focus on the core metric of system-level effective compute, build measurable stress testing and long-run stability systems, and plan a clear migration path and cost governance mechanism.