What Full-Stack Training of a SOTA Model on Domestic AI Compute Really Means

    This article examines what it means when a domestic AI chip and deep learning framework are used to train a state-of-the-art image generation model end to end. It explains why image generation is a far tougher validation target than language modeling, breaks down the hybrid autoregressive-plus-diffusion architecture, and walks through the five stages of the full pipeline: data preprocessing, pretraining, supervised fine-tuning, reinforcement learning alignment, and evaluation. It also provides a practical stability and operator-adaptation checklist for running large-scale training on alternative compute stacks, along with the remaining ecosystem gaps teams should plan for.

    1. The Real Story: Moving from Inference to Training

    For the past two years, AI engineering teams in China have shared a common concern: domestic compute can already support large-scale online inference, but pretraining frontier models still depends heavily on mature accelerator ecosystems from abroad. A recently open-sourced image generation model, developed jointly by an AI research team and a chip vendor, pushes that boundary forward. Its autoregressive base was built end to end on domestic accelerator cards and a domestic deep learning framework, covering data preprocessing, large-scale pretraining, supervised fine-tuning, and reinforcement learning training, and it reached open-source SOTA on authoritative text-rendering benchmarks.

    The value here is not a single benchmark score. It is the phrase “full stack.” Full stack means the toolchain, operator libraries, communication libraries, fault tolerance, and data pipelines have all been stress-tested under real load. SOTA means the model’s capability is not a compromised version. An independently developed compute foundation means a reproducible path has been validated. Only when these three come together does the leap from “usable” to “actually good” happen.

    2. Why SOTA Image Generation Training Is a “Hell-Level” Stress Test

    Choosing image generation as the validation vehicle is far harder than a pure language model, for three reasons:

    1. Multimodal heterogeneity: Text is discrete tokens, while images are continuous high-dimensional tensors. Aligning the two inside one model is more demanding on memory bandwidth and operator precision.
    2. High-resolution long sequences: Native support for 1024×1024 up to 2048×2048 at arbitrary aspect ratios effectively pushes sequence length and activation memory to the limit. The efficiency of nonlinear operators and attention kernels directly determines whether training is feasible.
    3. Cognitive generation targets: The model must not only render appealing images but also understand physical rules, logical relationships, and text symbols. Conventional latent-space diffusion approaches often show “strong visuals, weak cognition,” producing garbled text on posters, which is fundamentally a lack of world knowledge.

    3. Architecture Breakdown: One “Brain” and One “Painter”

    Rather than copying the common latent diffusion route, this class of model uses a hybrid “autoregressive + diffusion decoding” architecture that can be abstracted into two separated responsibilities:

    • Autoregressive base (~9B parameters): Handles semantic understanding, instruction parsing, and global composition, reusing the strengths of a language model base to inject world knowledge into the generation process.
    • Diffusion decoder (~7B parameters): Handles high-frequency detail and text stroke reconstruction, mitigating “forgetting a character mid-stroke.”

    Illustrative forward logic (pseudocode that expresses only the data flow and does not represent any specific API):

    1. # 1) Encode text and conditions
    2. cond = text_encoder(prompt) # semantic vectors
    3. layout = ar_base.plan(cond) # autoregressive base produces global layout/discrete intent
    4. # 2) Diffusion decoding generates pixel detail
    5. latent = diffusion_decoder.decode(layout, cond, resolution=2048)
    6. # 3) Arbitrary aspect ratio adaptation
    7. image = resize_aware_postprocess(latent, target_ratio)

    The engineering value of this split is that once semantics and detail are decoupled, data mixing ratios and loss design can be handled separately. Hard metrics such as text rendering can be optimized in a targeted way without sacrificing overall image quality.

    4. The End-to-End Pipeline: What “Full Stack” Actually Covers

    From an engineering perspective, “full stack” covers at least five stages, each with its own stability risks:

    1. Data preprocessing: Cleaning and deduplicating image-text pairs, copyright and compliance filtering, resolution bucketing, and text-region annotation. On a domestic foundation, you need to confirm the throughput and numerical consistency of multithreaded decoding and image transformation operators.
    2. Pretraining: Mixed ratios of trillions of tokens and image-text pairs, with the focus on parallelism strategies (data/tensor/pipeline/sequence parallelism) and communication library efficiency.
    3. Supervised fine-tuning (SFT): High-quality instruction data, composition preference data, and dedicated text-rendering data.
    4. Reinforcement learning / preference alignment: Using human preferences or rule-based rewards to improve text accuracy and layout reasonableness. This stage is less stable and places higher demands on numerical precision and rollback mechanisms.
    5. Evaluation and regression: Continuous regression across three tracks: text rendering, knowledge-intensive generation, and multi-resolution adaptation.

    5. Engineering Practice: A Stability and Operator Adaptation Checklist

    The most common pitfall in SOTA training on domestic compute is not “insufficient compute” but “an incomplete stack.” Work through the following checklist:

    • Operator coverage and precision: Verify whether high-performance implementations exist for custom attention, variable-length sequences, and arbitrary-aspect-ratio positional encoding. If not, fall back to composite operators and assess the performance cost.
    • Mixed precision strategy: BF16 as the default, FP32 retained for sensitive layers, with automated loss scaling and overflow detection.
    • Fault tolerance and checkpoint resume: Failure is the norm in large-cluster training. Asynchronous checkpointing, tiered storage (object storage + local NVMe), and fast rescheduling are essential.
    • Observability: Logging plus monitoring and alerting that cover throughput, memory fragmentation, communication timeouts, and gradient norm drift.
    • Data pipeline decoupling: Use a message queue to buffer between preprocessing and training, preventing I/O jitter from dragging down GPU/accelerator utilization.
    1. # Illustrative pre-training environment self-check items (not actual commands, only the dimensions to check)
    2. check: operator_coverage -> attention/norm/rope
    3. check: precision_policy -> bf16 + fp32_fallback
    4. check: checkpoint -> async_save + tiered_storage
    5. check: observability -> metrics/log/alert

    6. Practical Benefits for Developers

    1. Supply chain certainty: A reproducible training path means frontier model iteration is no longer held hostage by a single ecosystem.
    2. Optimized cost structure: A domestic foundation combined with elastic scheduling on a container platform lets long-running training be split into preemptible tasks, improving overall utilization.
    3. Architecture dividend: The hybrid architecture provides a directly deployable capability baseline for industry scenarios that need “accurate text and reasonable layout,” such as e-commerce posters, educational diagrams, and infographics.
    4. Reproducible methodology: What full-stack validation leaves behind is a toolchain and set of standards that any team can reuse as an evaluation framework.

    7. A Rational View: Three Gaps Still to Close

    • Ecosystem maturity: The completeness of frameworks, operator libraries, debuggers, and community resources still needs time.
    • Extreme-scale validation: Linear scaling efficiency at larger parameter counts, longer sequences, and higher resolutions must be stress-tested continuously.
    • Evaluation loop: Capabilities like text rendering need finer-grained automated evaluation combined with manual spot checks to avoid “strong on leaderboards, weak in experience.”

    8. Conclusion

    Completing full-stack training of a SOTA-level image generation model on domestic compute is essentially a signal that a “stress test has passed”: it narrows the uncertainty from “can it be trained” to “how to train it better.” For technical teams, the most pragmatic move now is to use the hybrid architecture as a reference, the end-to-end pipeline as the anchor, and the stability checklist as guardrails, then build their own training and evaluation loop on an independently developed compute foundation.