Training Multimodal Image Generation Models End-to-End on Domestic AI Chips: An Architecture and Engineering Breakdown
This article analyzes the shift toward multi-hardware AI ecosystems through the lens of an open-source multimodal image generation model trained end-to-end on domestic accelerators. It explains the hybrid autoregressive-plus-diffusion architecture, how Chinese text rendering and arbitrary aspect ratios are handled, and what a full-stack training suite requires at the framework, scheduling, and operator levels. Readers will also find practical guidance on reproduction order, scenario prioritization, cost considerations, and compliance risks.
1. Technical Background: Where Compute Diversification Meets Generative Model Design
Two industry signals are worth observing together. First, cross-border supply policies for certain high-performance accelerators have shifted. Second, a multimodal image generation model trained entirely on domestic accelerator chips has been released as open source. Each is industry news on its own; together, they point to the same trend: large-scale multimodal training is moving from reliance on a single hardware ecosystem to parallel development across multiple hardware ecosystems.
For developers and enterprise users, this trend carries three practical implications:
- Diversified supply chain risk: Training and inference are no longer tied to the release cadence of a single hardware vendor.
- Engineering capability becomes the core differentiator: Model quality increasingly depends on the maturity of the training suite, operator optimization, and parallelism strategies.
- Chinese-language scenarios are being addressed: Most open-source image generation models have historically offered weak support for rendering Chinese text, leaving poster and cover designs—where text is mandatory—dependent on manual post-processing.
2. Core Architecture: Why “Autoregressive + Diffusion Decoder” Has Become the Default
These models typically adopt a hybrid architecture that can be abstracted as a two-stage pipeline:
- Semantic and layout stage (autoregressive backbone, roughly 9B parameters): Parses prompt semantics, plans the global layout, and decides what should appear in the image and where.
- Pixel and text stage (diffusion decoder, roughly a 7B DiT structure): Renders the semantic plan into pixels and resolves glyph correctness through a dedicated text encoder.
The division of labor is logical. Autoregressive models excel at long-range dependencies and symbol-level reasoning, making them well suited to understanding instructions and producing correct text. Diffusion models excel at reconstructing fine detail in continuous signals, making them well suited to rendering texture. Chaining the two lets the reasoning component own semantics and the rendering component own pixels.
The invocation logic can be understood schematically as follows:
# Pseudocode: expresses the two-stage pipeline relationship only; not a real APIlayout = autoregressive_backbone.encode(prompt) # Semantic parsing + global layoutlatent = layout.to_latent_grid(target_size) # Map to a latent grid at the target resolutionimage = diffusion_decoder.render(latent, glyph_encoder) # Pixel reconstruction + glyph constraints
This direction aligns with the previously emerging idea of combining language model reasoning with image generation, often described as “cognitive generation”: generation is no longer a single-step mapping but a process of reasoning first and rendering second.
3. Chinese Text Rendering: From Missing Glyphs to Poster-Ready Output
Text rendering is one of the hardest parts of multimodal image generation, and Chinese is especially challenging due to its large character set, dense strokes, and high glyph similarity. Engineering approaches typically address this at three levels:
- Glyph encoding: A dedicated text encoder converts the target string into glyph conditions injected into the decoding process.
- Layout constraints: The autoregressive backbone outputs text box positions and font size hierarchy to prevent text from overlapping the main subject.
- Long-text consistency: Long-text rendering evaluations focus on ensuring characters are not missing, duplicated, or misplaced.
Practical tip: When generating Chinese posters, provide conditions for the copy in three separate parts—main headline, subheadline, and body text—rather than passing a single long paragraph. This yields a higher success rate.
4. Arbitrary Aspect Ratios: The Practical Value of Tokenizer Strategy
Traditional image generation models support only preset ratios such as 4:3 or 16:9, whereas posters and social media covers often require non-standard dimensions like 1240x1600. By improving the tokenizer strategy, these models natively support arbitrary aspect ratios within the 1024x1024 to 2048x2048 range.
The engineering value is clear:
- Eliminates the quality loss from generating first and then cropping or stretching.
- Layout design can be produced directly at the final delivery size.
- Batch generation can cover a matrix of platform sizes with a single set of parameters.
5. Full-Stack Domestic Training Suite: The Real Difficulty Is Engineering
“Trained on domestic chips” implies an entire training suite and optimization stack:
- Framework layer: Built on a domestic deep learning framework, with a self-developed end-to-end suite covering data preprocessing, pretraining, supervised fine-tuning, and reinforcement learning.
- Scheduling layer: Multi-level dynamic graph pipeline dispatch removes instruction dispatch bottlenecks; multi-stream parallelism lets communication and computation overlap.
- Operator layer: Fused operators adapted to domestic hardware—such as AdamW with exponential moving average, channel compression operators, and normalization operators—reduce memory access and launch overhead.
For teams planning to reproduce the work, the recommended order is: first, run a small-scale pipeline end to end; second, profile performance at the operator level; finally, scale up parallelism. Skipping the first step and going straight to large scale usually leads to repeated rework on the data side.
6. Deployment Guidance and Risk Notes
- Scenario priority: Chinese posters, educational illustrations, and social covers first; photorealistic portraits next; complex multi-text layouts last.
- Cost perspective: On the training side, track throughput per unit of compute; on the inference side, account for the multiplicative effect of resolution and step count.
- Compliance: Before commercial use, confirm the open-source license terms, generated content labeling obligations, and the compliance of training data sources.
- Deployment shape: Inference services can run on a container platform, with object storage for assets, plus logging and monitoring with alerting for quality tracking.
Overall, the significance of training a multimodal image generation model end-to-end on domestic chips is not simply “one more set of open weights.” It validates that the full engineering stack—framework, operators, parallelism strategy, and data pipeline—can close the loop on non-mainstream hardware. For developers, this is an ideal window to validate Chinese image generation and automated layout production at low cost.
