What Full-Stack Training of a SOTA Model on Domestic AI Compute Really Means
This article examines the shift from "inference-ready" to "training-capable" domestic AI compute, using a new image generation model that completed the entire pipeline—data preprocessing, large-scale pretraining, supervised fine-tuning, and reinforcement learning alignment—on domestic accelerator cards and an in-house deep learning framework. It explains why image generation is a demanding stress test, breaks down the four engineering bottlenecks (operator and graph compilation, collective communication, long-run stability, and toolchain completeness), and offers practical guidance on building four-stage baselines and domain-specific evaluations.
1. Breaking the Stereotype: From “Inference Works” to “Frontier Training Works”
For the past two years, a quiet consensus existed in China’s AI engineering community: domestic compute was largely good enough for inference, with throughput and latency sufficient for large-scale online serving, but pretraining frontier-level models still seemed to require mature overseas ecosystems. This binary view—inference works, training does not—reduces the compute adaptation problem to a question of operator coverage.
Around 2026, that view began to be systematically revised. A team released a new-generation image generation model that sent a notable signal: its autoregressive base completed an end-to-end build on a cluster of domestic accelerator cards and an in-house deep learning framework, spanning data preprocessing, large-scale pretraining, supervised fine-tuning, and reinforcement learning alignment, and reached open-source state of the art on text rendering, a well-known hard benchmark.
The phrase “full-stack” carries far more technical weight than “a single training run succeeded.” A real production training pipeline includes at least four stages, each with completely different demands on the underlying hardware and software:
- Data preprocessing: decoding, resizing, cropping, tokenization, and packing—a throughput-intensive workload whose bottleneck usually lies in storage bandwidth and the CPU-side pipeline;
- Pretraining: repeated iteration over trillions of tokens or tens of billions of samples, testing collective communication efficiency, GPU memory capacity, and fault recovery;
- Supervised fine-tuning: a sharp drop in data volume but more complex sample construction, sensitive to dynamic graph execution and support for irregular operators;
- Reinforcement learning / preference alignment: sampling and training alternate, requiring the inference engine and training engine to be scheduled together within the same cluster.
Most adaptation work stops at the second stage—not because compute is insufficient, but because the engineering long tail of the last three stages is so long. A model that covers all four stages therefore shows that the maturity of the underlying hardware and software has crossed the threshold from “demo-ready” to production-ready.
2. Why Image Generation Is a “Hell-Level” Stress Test
Choosing image generation rather than a text model as the validation vehicle is a deliberate difficulty choice.
Traditional image generation models typically show a familiar symptom: strong visuals, weak cognition. Compositions look striking, but once asked to render a poster, formula, receipt, or menu containing specific text, the output often degrades into look-alike garbled characters. The root cause is that mainstream approaches perform the entire generation process in a compressed latent space, where high-frequency, strongly structured, stroke-sensitive signals like text are largely discarded during encoding and decoding.
The new generation of approaches shifts toward “cognitive generation,” where the model must master not only texture and lighting but also world knowledge, logical relationships, and the ability to understand symbolic systems. One validated structure is a hybrid architecture:
- An autoregressive backbone acts as the “brain,” with roughly 9B parameters, following the language-modeling paradigm and handling instruction parsing, global layout planning, and knowledge retrieval;
- A diffusion decoder acts as the “painter,” with roughly 7B parameters, restoring high-frequency detail and text strokes in latent space based on a DiT structure.
The engineering significance of this division is that semantics and pixels are decoupled into two modules with different optimization objectives: the backbone can use mature text-side training recipes, while the decoder focuses on reconstruction quality. The cost is a more complex training pipeline that must handle gradient balancing across two-stage or joint training, resolution curriculum learning, and positional-encoding extrapolation under arbitrary aspect ratios. Native support for arbitrary aspect ratios from 1024×1024 to 2048×2048 is the outward sign that this extrapolation capability meets the bar.
A schematic organization of the training stages can be abstracted as:
# Pseudocode: illustrates stage division only, not a specific framework APIfor stage in ["pretrain_ar", "pretrain_dit", "sft_joint", "rl_align"]:loader = build_dataloader(stage, resolution_curriculum=stage_res[stage])for batch in loader:loss = model.forward(batch) # backbone and decoder unfreeze per stageloss.backward()optimizer.step_with(grad_clip=1.0) # hybrid architecture needs stricter grad clippingckpt.maybe_save(stage) # long training runs must support checkpoint resume
3. Four Bottlenecks in Connecting the Full Pipeline on Domestic Compute
The first is operators and graph compilation. Once diffusion and autoregression are combined, the model contains attention variants, convolution/block transforms, and dynamic-shape control flow. If the framework’s graph optimization handles dynamic shapes poorly, execution falls back to interpretation in many places and performance drops off a cliff.
The second is collective communication. The main cost of large-scale pretraining comes from gradient synchronization and tensor-parallel communication, which require a topology-aware communication library and a sensible parallelization strategy (a three-dimensional combination of data parallelism, tensor parallelism, and pipeline parallelism). As the cluster grows, slow nodes drag down the overall synchronization cadence.
The third is long-run stability. Frontier model training often runs for weeks, and hardware failures, memory fragmentation, and numerical overflow are routine. Without fine-grained fault tolerance and automatic rollback, the share of effective training time drops significantly.
The fourth is toolchain completeness. Data version management, experiment tracking, visualization and monitoring, and evaluation pipelines—these “non-model” capabilities determine a team’s iteration speed. A reusable common practice is to run training jobs on a container platform, store datasets and checkpoints in object storage, decouple data preprocessing from training consumption with a message queue, and track loss curves, throughput, and hardware health with logging and monitoring/alerting services.
4. Practical Takeaways for Developers
- When evaluating domestic compute, do not draw conclusions from single-operator benchmarks; build an end-to-end baseline covering all four stages and measure the share of effective training time;
- On architecture selection, a hybrid architecture can substantially mitigate symbol- and text-generation defects, but budget for a longer integration and debugging cycle;
- Data matters more than the model: much of the gain in text rendering comes from high-quality image-text alignment data and OCR-style label cleaning;
- Evaluation must include knowledge-intensive and text-rendering tracks; generic aesthetics metrics cannot reflect cognitive ability;
- If you use cloud resources, consider running elastic compute for fine-tuning and alignment and stable long-cycle compute for pretraining to balance cost and efficiency.
5. Conclusion
The real significance of completing end-to-end frontier model training on domestic compute is not a leading benchmark score but that the engineering loop holds: data, compilation, communication, fault tolerance, and evaluation are all available at once. This means the pace of innovation is no longer constrained by a single supply path, and teams can refocus on architecture and data themselves. For developers, the practical next step is to build your own four-stage baseline and domain-specific evaluation set, replacing impression-based judgment with reproducible data.
