Compute for Chinese AI Teams: Crossing the Compute Gap in the AI Era

    This article explains why compute supply, not algorithms, now sets the pace of large model development, and breaks the problem into three bottlenecks: physical limits (power, racks, networking), economic limits (utilization over procurement), and organizational limits (scheduling and engineering maturity). It then lays out four engineering paths: elastic rental with hybrid scheduling, heterogeneous compute pooling with a unified abstraction layer, parallelism and communication optimization, and inference-side cost engineering. A phased rollout plan and closing recommendations help teams make limited compute support continuous model iteration.

    1. Introduction: The Compute Gap in Front of the Industry

    As large model technology evolves quickly, one fact keeps proving itself: the cycle of algorithm innovation is being redefined by the capacity of compute supply. A frontline practitioner who has long worked on intelligent computing observes that most model R&D teams lack the funding to build their own super-scale training clusters, yet they must race against peers whose iteration cycles keep shrinking. Even the leading teams with relatively ample funding, which have closed large financing rounds and plan to deploy over a hundred thousand accelerators in a northern region, have founders who repeatedly admit in public that what truly constrains the company’s growth is compute resources themselves.

    This means compute is no longer a simple matter of “buying cards.” It is a gap that has to be crossed: on this side are limited budgets, limited racks, and limited power; on the other side are ever-expanding model parameters, context lengths, and user concurrency. This article tries to break the gap into buildable segments and offers a crossing plan from an engineering perspective.

    2. The Nature of Compute Constraints: Three Overlapping Bottlenecks

    2.1 Physical Bottleneck: Power, Racks, and Networking Run Out Before Chips Do

    The deployment order of a large-scale training cluster is often not “get the cards first, then find a data center.” Instead, power capacity, cooling capacity, rack load bearing, and high-speed interconnect cabling jointly determine the ceiling. Communication overhead among accelerators within a single cluster rises nonlinearly with scale, and when cross-node bandwidth is insufficient, parallel efficiency decays rapidly.

    2.2 Economic Bottleneck: Utilization Matters More Than Procurement Volume

    The fixed cost of a self-built cluster is extremely high. Once task placement is poorly arranged, expensive compute sits idle during data loading, checkpoint writes, log synchronization, and similar stages. A common industry lesson is that improving effective compute utilization usually delivers better value than additional procurement.

    2.3 Organizational Bottleneck: Scheduling and Engineering Capability Determine Actual Output

    The same hardware can differ severalfold in end-to-end throughput under different scheduling policies and different parallel partitioning schemes. Without mature job orchestration, fault self-healing, and observability, the larger the cluster, the worse the stability.

    3. Path 1: From “Building a 10,000-Card Cluster” to “Elastic Rental + Hybrid Scheduling”

    For the vast majority of teams, a more pragmatic approach is to treat compute as an elastically scalable shared resource and hide the underlying differences behind a unified scheduling layer. A typical architecture looks like this:

    1. Business entry layer: training jobs / inference services / data processing
    2. ↓
    3. Unified scheduling layer: queue priority, quota management, topology awareness
    4. ↓
    5. Resource pool: self-owned nodes + cloud elastic nodes (container platform / bare metal)
    6. ↓
    7. Storage and observability: object storage + distributed cache + logging + monitoring and alerting

    Key design points include:

    • Separate queues from quotas: allocate training quotas by project and give inference services an independent queue, so long-running jobs do not squeeze out resources for online requests.
    • Topology-aware scheduling: place tasks within the same parallel group in the same high-speed interconnect domain whenever possible, reducing cross-domain communication.
    • Elastic scaling: run stateless tasks such as data preprocessing and batch evaluation on elastic nodes first, scaling out at peaks and releasing at troughs.

    4. Path 2: Pooling Heterogeneous Compute with a Unified Abstraction

    In reality, accelerator models often come from multiple batches and multiple supply channels, forming a de facto heterogeneous environment. Engineering does not need to insist on a single hardware type; instead, build a unified abstraction layer:

    1. Device discovery and labeling: tag each card with memory capacity, interconnect capability, and the data center it belongs to.
    2. Capability tiers: divide resources into three tiers — training, fine-tuning, and inference — and match jobs to demand.
    3. Unified runtime: package drivers and runtime dependencies in containers so the same image can start on different nodes.
    4. Failure isolation: when a node fails, mark it unschedulable automatically and resume the job from the most recent checkpoint.

    An illustrative example of resource labels and scheduling constraints:

    1. task:
    2. name: pretrain-stage-2
    3. required_labels:
    4. tier: training
    5. interconnect: high
    6. min_nodes: 16
    7. max_nodes: 64
    8. checkpoint:
    9. interval_steps: 500
    10. resume: auto

    5. Path 3: Parallel Strategies and Communication Optimization to Use Every Card Fully

    Given fixed hardware, the core levers for higher throughput are parallel partitioning and communication compression:

    • Data parallelism + gradient accumulation: when node bandwidth is limited, trade gradient accumulation for a larger effective batch and lower communication frequency.
    • Keep tensor parallelism inside a node: confine high-frequency communication partitions to the same high-speed interconnect domain, and do only low-frequency synchronization across nodes.
    • Pipeline parallelism + recomputation: trade a small amount of repeated computation for memory space, so larger models fit.
    • Mixed precision and operator fusion: reduce memory usage and memory access overhead while preserving convergence.
    • Tiered checkpoints: write hot checkpoints to local high-speed disks and asynchronously flush cold checkpoints to object storage, so training is not blocked by storage.

    Pseudocode example (showing how optimizer state offloading works with gradient accumulation):

    1. accum_steps = 8
    2. for step, batch in enumerate(loader):
    3. loss = model(batch) / accum_steps
    4. loss.backward()
    5. if (step + 1) % accum_steps == 0:
    6. optimizer.step() # update only after accumulation completes
    7. optimizer.zero_grad()
    8. if (step + 1) % 500 == 0:
    9. save_checkpoint(stage="hot", path=local_ssd)
    10. async_upload(local_ssd, object_storage) # async cold backup upload

    6. Path 4: Inference-Side Cost Engineering, Often Worth More Than Training

    For online services facing users, cost is mainly determined by memory usage and concurrency. Common optimization measures include:

    • Dynamic batching: merge scattered requests into batches to raise request throughput per unit of memory.
    • Key-value cache reuse: reuse the cache for requests with shared prefixes to avoid repeated computation.
    • Quantization and sparsification: lower weight precision and memory access volume within an acceptable quality range.
    • Tiered caching: put high-frequency results in an in-memory cache and compute long-tail requests back at the source.
    • Elastic replicas: automatically scale replica count by traffic metrics, with scaling thresholds set alongside monitoring and alerting.

    It is worth stressing that any optimization must take a quality baseline as its premise, with both an offline evaluation set and online metrics acting as dual safeguards, to avoid “cost down, quality regressed.”

    7. Implementation Advice: A Phased Crossing Route

    1. Phase 1 (within 1 month): complete resource inventory and labeling, set up unified queues and quotas, and connect logging and monitoring with alerting, solving visibility first.
    2. Phase 2 (2 to 3 months): implement checkpoint self-healing and elastic scaling, and migrate stateless tasks to the elastic resource pool, solving stability.
    3. Phase 3 (3 to 6 months): tune parallel strategies and communication topology, and build an inference-side cost dashboard, solving efficient usage.
    4. Phase 4 (ongoing): form a capacity forecasting mechanism, driven by historical utilization and business growth curves, to guide procurement and rental decisions.

    8. Conclusion

    The compute gap cannot be jumped in a single leap, but it can be crossed in segments. For most teams, the deciding factor is not how many accelerators they own, but whether scheduling is fine-grained, whether parallelism fits the hardware topology, and whether inference cost keeps being pushed down. Do the four things well — elastic rental, heterogeneous pooling, communication optimization, and cost engineering — and limited compute can still support continuous model iteration. In this process, an elastic foundation built from common cloud capabilities such as container platforms, object storage, logging, and monitoring and alerting is gradually becoming the practical ticket for crossing the compute gap.