Large Model Training on Domestic Chips: Where the Real Bottleneck Is
This article breaks down why migrating large model training and inference to domestic accelerators is hard, not because models fail to run, but because equivalent efficiency is difficult to match. It examines four layers of engineering work—operator optimization, communication and parallelism design, mixed precision and memory stability, and inference SLO compliance—and closes with a practical migration checklist covering quantifiable gains, rollback paths, upfront acceptance metrics, and long-tail tuning budgets.
1. Frame the Question Correctly: Not “Can It Train,” but “What Is the Equivalent Efficiency”
One explanation circulating in the industry for why a next-generation flagship model has been delayed is that the team is attempting to move the full training and inference pipeline onto domestic accelerator cards. This claim cannot be verified, but the engineering problem it points to is real and widespread: when the hardware foundation changes, upper-layer model capabilities do not automatically carry over.
A common misconception needs correcting first: the difficulty of migration is not “getting it to run.” Most frameworks provide a hardware abstraction layer, and a small or medium model can typically produce a loss curve within a few days. The real difficulty is equivalent efficiency: whether the same scale of training can be completed with the same number of cards and the same wall-clock time, and whether the same online traffic can be served under the same throughput and latency constraints.
This reframes the problem as a measurable proposition:
Migration feasibility = f(single-card compute utilization, cluster scaling efficiency, numerical consistency, service SLO attainment)
If any one of these degrades significantly, the narrative of “building stronger models with less compute” collapses. This is also why such migrations must use “polished to be good enough” as the release prerequisite, rather than “it runs.”
2. Breaking Down Four Layers of Engineering Work
2.1 Operator Layer: The Underestimated Long Tail
The core operators of a Transformer look few in number—attention, normalization, positional encoding, feed-forward networks, and token embeddings—but each category has a long list of variants: different masking patterns, sliding windows, grouped-query attention, and combinations of normalization placements. Vendor operator libraries typically cover the high-frequency paths, while long-tail combinations often have to be implemented in-house.
The real cost distribution of custom operators is roughly:
- Writing a functionally correct version: about 20% of the effort
- Saturating bandwidth and compute units on the target architecture: about 60%
- Covering backpropagation and numerical edge cases: about 20%
An illustrative performance-tuning workflow (pseudocode, not any specific API):
# 1) Use the theoretical limit as the ceilingroofline = min(peak_flops, mem_bandwidth * arithmetic_intensity)# 2) Measure attainment per operatorfor op in critical_ops:t = benchmark(op, shapes=real_shapes) # must use real shapes, not toy sizesutil = op.flops / (t * peak_flops)if util < 0.5:profile(op) # locate whether it is memory-bound, sync overhead, or a partitioning issue
A rule of thumb from experience: shape distributions in real workloads are highly uneven. Differences in sequence length and batch size can make the same operator behave very differently across branches, and tuning only with regular shapes almost inevitably fails in production.
2.2 Communication Layer: Topology Determines the Parallelism Strategy
At ten-thousand-card scale, communication often becomes the bottleneck before compute does. Collective communication primitives (all-reduce, all-gather, reduce-scatter) must match the interconnect topology: multi-layer switching, high-speed inter-card links, and bandwidth asymmetry between intra-node and inter-node paths can all degrade a “generic ring algorithm” into repeated cross-layer data movement.
More importantly, the parallelism strategy needs to be co-designed with the topology, rather than fixing the parallelism degrees first and tuning communication afterward:
| Parallelism dimension | Communication pattern | Topology-sensitive point |
|---|---|---|
| Data parallelism | Gradient all-reduce; large volume but can overlap with compute | Inter-node bandwidth |
| Tensor parallelism | High-frequency intra-layer communication; latency-sensitive | Must be confined to the high-speed domain within a node |
| Pipeline parallelism | Point-to-point transfers; bubbles exist | Link stability and scheduling |
| Expert parallelism | Dynamic routing results; uneven load | All-gather/dispatch efficiency |
One practical principle: confine tensor parallelism, which is the most latency-sensitive, to the highest-bandwidth domain; place data parallelism, which demands the most bandwidth, at the most bandwidth-rich level; and use gradient accumulation and communication overlap to hide the remaining overhead.
2.3 Mixed Precision and Memory: Stability Matters More Than Peak
Low precision (such as FP8/BF16) can deliver throughput gains, but the cost is a narrower dynamic range. The easiest pitfall during migration is reusing a scaling strategy validated on the old hardware: under the new architecture’s accumulation precision and saturation behavior, silent numerical deviations appear—the loss does not diverge, but convergence slows and final metrics drop.
The same applies to memory. The combination of optimizer state offloading, parameter sharding, and recomputation is strongly tied to the hardware’s memory capacity and host-device bandwidth. Copying the old configuration over may simply swap the bottleneck from compute to data movement.
Recommended minimum validation set:
- Small-scale alignment: fix the random seed and compare step-by-step loss and gradient norm curves;
- Long-run stability test: run for thousands of steps and watch for slow, precision-related drift;
- Ablation: disable low precision, offloading, and recomputation separately, and quantify each one’s contribution and cost.
2.4 Inference Serving: SLOs Are the Acceptance Criteria
Finishing training is only the first half. Online serving must balance throughput and latency, involving techniques such as continuous batching, paged KV cache management, speculative decoding, quantization, and graph optimization. Nearly all of these optimizations depend on fine-grained control over memory layout and execution flow, and must be recalibrated after a hardware change:
- Tail latencies for time-to-first-token and time-per-output-token (P99, not the mean);
- Cache hit rate and preemption/swap-out frequency under high concurrency;
- Memory growth curves and truncation strategies in long-context scenarios.
3. Migration Decision Checklist
Before starting a project like this, four questions are worth asking first, so that the investment is not held hostage by sunk costs:
- Are the gains quantifiable: Do the target hardware’s availability, cost per unit of compute, and supply stability justify the losses during the migration period?
- Is there a rollback path: Keep dual stacks running in parallel and the ability to shift traffic gradually, validating by traffic percentage rather than switching all at once.
- Are acceptance metrics defined upfront: Write model quality, training duration, and service SLOs into the acceptance criteria, rather than measuring them after migration is complete.
- Is there a budget for the long tail: Operator and communication tuning is labor-intensive work and requires a clearly reserved engineering window.
In terms of execution rhythm, a workable path is usually: first complete operator and numerical alignment at small scale on a single node → scale to a single cluster to validate scaling efficiency → use shadow traffic to validate inference consistency → finally shift traffic by percentage. Each step should have a rollback decision point.
4. Conclusion
The release cadence of flagship models increasingly resembles a health check on the maturity of the underlying infrastructure. Algorithm iteration cycles are measured in weeks, while rebuilding the software-hardware stack is measured in quarters—and the difference in these time scales is the root of the “unusual delay” that outsiders perceive. For developers and enterprise users, the transferable lesson is clear: define efficiency, numerical consistency, and service metrics as first-class citizens upfront, and replace one-shot switching with small, rollbackable canary steps. Only then does changing the compute foundation become an engineering optimization rather than a risk exposure. As for which specific link a particular team is stuck on, outsiders have no way to verify; but the evaluation framework above is useful to any team preparing a similar migration.
