Training Multimodal Image Generation Models on Domestic Chips: A Full-Stack Technical Analysis

    This article analyzes an open-source multimodal image generation model trained end to end on domestic chips. It breaks down the full-pipeline training approach, the three-layer training engineering stack, the hybrid autoregressive-plus-diffusion architecture, and key capabilities such as arbitrary aspect ratios and Chinese text rendering. Developers will find practical guidance on evaluation, model selection, and integration, along with a neutral view of what full-stack hardware independence means for reproducible AI development.

    1. Background: Two Signals Worth Reading Together

    Two recent industry developments are worth observing side by side. First, export policies for high-end accelerator cards from a major international chip vendor toward China appear to be easing. Second, a domestic team, working with partners across the chip and framework layers, released and open-sourced the first multimodal image generation model trained end to end on domestic chips.

    These two events may seem unrelated, but they point to the same underlying issue: training and inference for multimodal large models are shifting from dependence on a single source of compute to full-stack self-sufficiency. Policy easing is only a short-term supply variable. Once full-stack domestic capability is proven, the critical path of model development is no longer locked to a single hardware ecosystem. For developers and enterprise users, the real benefit is not “spending less on GPUs,” but gaining a reproducible, portable, and continuously iterable engineering paradigm.

    Using this open-source model as a technical sample, this article abstracts its architecture, training engineering, capabilities, and deployment approach into a neutral, general-purpose analysis.

    2. The Core Breakthrough: What “Full Pipeline on Domestic Chips” Actually Means

    Many teams claim to “support domestic chips” when they have only migrated inference, while training still depends on external ecosystems. The key difference here is a genuinely end-to-end pipeline:

    • Data preprocessing: cleaning, deduplication, tokenization, and packing of large-scale image-text data on domestic compute;
    • Large-scale pretraining: all gradient updates for the base autoregressive model on a domestic cluster;
    • Supervised fine-tuning (SFT): instruction and style alignment without switching hardware;
    • Reinforcement learning (RL): preference alignment and reward optimization closed within the same domestic chips.

    Unifying the full pipeline matters for three reasons. First, it avoids precision drift caused by inconsistent tensor formats and operator semantics across ecosystems. Second, scheduling, fault tolerance, and checkpoint resumption for training jobs can be handled within one operations stack. Third, reproducibility improves significantly, sharply reducing the cost of moving from research to production.

    3. Training Engineering: Frameworks, Toolkits, and Performance Optimization

    3.1 Framework Layer: Unified Graph and Device Abstraction

    Training runs on a domestic deep learning framework (referred to here generically as a “domestic framework”). A device abstraction layer hides chip-level differences and decouples model code from hardware. This is the prerequisite for “write once, migrate across devices.”

    3.2 Toolkit Layer: A Custom Suite Covering Four Stages

    The team built a custom training suite that chains the data pipeline, pretraining, SFT, and RL into a single observable workflow. In engineering terms, this typically includes:

    1. Data pipeline -> Pretraining (parallel strategy + fault tolerance) -> SFT (instruction construction) -> RL (reward modeling)
    2. | | | |
    3. Quality filtering Gradient accumulation / mixed precision Sample mixing Preference sampling

    3.3 Optimization Layer: Removing Dispatch Bottlenecks and Overlapping Communication with Computation

    • Multi-level pipelined dispatch in dynamic graphs: splitting operator dispatch for a single layer into multiple pipeline stages to relieve host-side dispatch bottlenecks and improve device utilization;
    • Multi-stream parallelism: running compute streams and communication streams concurrently so that AllReduce/AllGather overlap with matrix computation;
    • Ascend-friendly fused operators: fusing AdamW with EMA, fusing channel-wise context (COC) style operations, and fusing RMS Norm to reduce intermediate tensor writes and kernel launch overhead.

    These are not “magic parameters” but standard systems engineering: fusing memory-bound steps, hiding communication inside computation, and turning dispatch into a pipeline.

    4. Model Architecture: A Hybrid of Autoregression and a Diffusion Decoder

    The model uses a “autoregressive base + diffusion decoder” hybrid architecture, with roughly 16B total parameters (a 9B semantic base plus a 7B diffusion decoder).

    4.1 The Autoregressive Part: Understanding

    The 9B autoregressive base handles semantic understanding, instruction following, and global layout planning. It outputs a structured intermediate representation, such as a sequence of layout and semantic tokens. Its strength is strong reasoning and long-context consistency, allowing it to decompose complex instructions like “create a popular-science poster for older adults, with a prominent main title and blank space reserved for a QR code” into an executable layout.

    4.2 The Diffusion Decoder: Drawing and Writing Correctly

    The 7B DiT-style diffusion decoder handles pixel-level generation and works with a glyph encoder dedicated to text rendering. Text is a classic hard problem in image generation, where models often “forget” characters, produce merged strokes, or render wrong glyph shapes. With the glyph encoding branch, text regions are determined jointly by semantic priors and glyph constraints, markedly improving Chinese glyph accuracy.

    4.3 Alignment with Industry Direction

    This approach matches the recent industry trend of combining language model reasoning with image generation, which can be called “cognitive generation”: understand first, then generate. It reframes image tasks from pure visual fitting to reasoning-driven visual planning, with clear advantages in complex layouts and text-heavy scenarios.

    5. Key Capabilities: Arbitrary Aspect Ratios and Chinese Text Rendering

    5.1 Native Support for Non-Standard Resolutions

    Traditional models assume fixed ratios such as 4:3 or 16:9, yet real workloads often need non-standard sizes like 1240x1600. By improving its tokenizer strategy, this model natively supports arbitrary aspect ratios in the range from 1024x1024 to 2048x2048. The engineering value:

    • Posters, social media covers, and e-commerce main images need no second crop, avoiding broken composition;
    • A single generation already matches the target placement size, reducing post-processing.

    Illustrative call (pseudocode, showing only the interaction shape):

    1. # Illustrative only: non-standard resolution text-to-image call shape
    2. image = model.generate(
    3. prompt="Chinese popular-science poster, main title: Sleep and Memory",
    4. width=1240, height=1600, # non-standard aspect ratio
    5. text_guidance=True # enable glyph constraints
    6. )

    5.2 Strength in Chinese Text Rendering

    In two public evaluations, complex visual text generation and long-text rendering, the model ranks among the leading open-source models. Its capabilities can be summarized as: good preservation of Chinese stroke structure, stable long-text layout, and high readability for mixed Chinese-English text.

    6. Evaluation and Selection Advice

    Practical recommendations for developers:

    1. Start with a small-sample validation: use 20–50 real business prompts covering layout, text length, and Chinese-English mixing;
    2. Measure text accuracy, not just visual appeal: build automated glyph correctness checks, such as OCR read-back comparison;
    3. Decide resolution strategy up front: enumerate target placement sizes and generate directly at non-standard resolutions;
    4. Assess migration cost on the training side: if fine-tuning is needed, confirm that the data pipeline, SFT, and RL can be closed within the same domestic compute stack.

    7. Open Source and Access (Neutral Description)

    The model is open source. Code and weights are typically published on mainstream code hosting platforms, model communities, and domestic model communities; online trials may be available on related open platforms. Developers can integrate in four steps: environment setup, weight loading, inference calls, and business integration. For production, it is recommended to build a complete pipeline with a container platform, object storage, logging services, and monitoring and alerting.

    8. Conclusion

    The real value of a multimodal image generation model trained end to end on domestic chips is not a single benchmark result, but proof that a full-stack domestic training paradigm is feasible: architecturally, an autoregressive base handles cognition while a diffusion decoder handles generation; in engineering, pipelined dispatch, multi-stream parallelism, and fused operators squeeze out compute; in capability, arbitrary resolutions and Chinese text rendering fit real business needs. For teams, this means a reproducible, portable, and continuously evolving path toward technical independence.