Training Multimodal Image Generation Models End-to-End on Domestic AI Chips: Architecture and Engineering Breakdown
This article analyzes the first open-source multimodal image generation model trained end-to-end on domestic AI chips, covering data preprocessing through large-scale pretraining. It breaks down the hybrid autoregressive plus diffusion decoder architecture, explains how dedicated glyph conditioning and layout planning improve Chinese text rendering, and looks at native support for non-standard resolutions. It also outlines the end-to-end training stack optimizations across the framework, scheduling, communication, and operator layers, plus practical guidance for enterprises evaluating adoption.
1. Why End-to-End Domestic Chip Training Matters
Two pieces of industry news have been discussed together recently: export restrictions on certain high-end accelerator cards have eased, and the first multimodal image generation model trained end-to-end on domestic chips—from data preprocessing to large-scale pretraining—has been open-sourced. Viewed side by side, they point to the same conclusion: competition in multimodal generation is shifting from isolated model quality toward the systematic competition of training foundations, engineering pipelines, and ecosystem compatibility.
For developers and enterprise users, end-to-end domestic chip training is not just about running on alternative hardware. It delivers three practical benefits:
- Supply chain certainty: training and inference are no longer tied to a single hardware ecosystem, reducing exposure to supply disruptions and quota fluctuations.
- Adjustable cost structure: another available foundation means more flexible scheduling and budgeting when compute is tight.
- Reusable engineering capability: the adaptation process pushes teams to standardize data, operators, communication, and scheduling, producing reusable training infrastructure.
Policy easing and model release have no technical causal link, but together they show that the “compute-framework-model” triangle of multimodal generation is being restructured, and engineering adaptation capability is becoming a core competitive advantage.
2. Architecture Breakdown: Autoregression for Understanding, Diffusion Decoder for Rendering
These models typically use a hybrid “autoregressive + diffusion decoder” architecture that decouples semantic understanding from pixel generation.
2.1 Autoregressive Backbone: Semantic Understanding and Global Layout
The autoregressive part is usually a 9B-class language model base that handles two tasks:
- Semantic parsing: understanding objects, attributes, relationships, and layout intent in the prompt.
- Global planning: deciding composition, element placement, text content, and hierarchy.
Its strength is “think first, then draw,” treating generation as a reasoning-driven, constrained sequence decision process rather than one-shot pixel prediction.
2.2 Diffusion Decoder: 7B DiT and Text Rendering
The decoder typically uses a 7B-class DiT structure paired with a dedicated text encoder to address the common “forgot how to write” problem in generative models. The backbone outputs semantic and layout conditions, the decoder performs high-fidelity pixel reconstruction under those conditions, and text is handled by a dedicated encoding path that keeps glyph shapes correct and strokes complete.
A simplified conditional flow:
# Pseudocode: backbone planning + decoder renderingplan = autoregressive_model(prompt) # output semantic and layout conditionsimage = diffusion_decoder(plan) # conditional pixel generationtext_mask = glyph_encoder(plan.text) # glyph constraints for textfinal = compose(image, text_mask) # compose the final image
The engineering value of this split is that text rendering does not depend on the backbone “incidentally learning” it; a dedicated module guarantees it. This makes text-heavy scenarios such as Chinese posters, educational illustrations, and social media covers more stable.
3. Chinese Text Rendering: From Looking Right to Being Right
The difficulty of Chinese text generation is not looking like text, but correct strokes, legible glyphs, and intact layout. Common optimization approaches include:
- Glyph condition injection: feeding character glyph features into the decoder as an additional condition instead of letting the model infer them from pixels.
- Layout constraints: the backbone first fixes text box positions and font size hierarchy, and the decoder renders within those boxes to avoid text overlapping the subject or overflowing.
- Long-text consistency: targeted training for long sentences and multi-line layouts to reduce line spacing errors and missing characters.
The open-source model already achieves leading results in complex visual text generation and long-text rendering benchmarks, showing that the “dedicated text path + layout planning” approach works.
4. Non-Standard Resolutions: Practical Capability from Tokenizer Strategy
Traditional image generation models usually support only preset ratios such as 4:3 and 16:9, while real business needs often involve non-standard sizes, such as 1240x1600 posters or specific social media covers. By improving the Tokenizer strategy, these models natively support arbitrary aspect ratios in the 1024x1024 to 2048x2048 range.
In engineering terms:
- Design dimensions can be used directly as generation parameters, with no generate-then-crop step.
- Layout elements do not shift due to cropping, keeping the relationship between text and subject intact.
- Batch production can generate a full matrix of channel sizes in one pass, reducing post-processing.
5. Training Stack for Domestic Chips: How End-to-End Optimization Works
End-to-end training relies on a suite covering data preprocessing, pretraining, SFT, and RL, with deep optimization for domestic hardware. It can be understood at four levels:
- Framework layer: a deep learning framework that supports domestic chips, unifying operators and memory management to reduce cross-framework glue code.
- Scheduling layer: dynamic graph multi-level pipeline dispatch removes dispatch bottlenecks so the CPU side no longer stalls GPUs or accelerators.
- Communication layer: multi-stream parallelism overlaps communication with computation, reducing communication bubbles under large-scale parallelism.
- Operator layer: fused operators affinity-tuned for domestic hardware (such as AdamW with EMA, and normalization and activation fusion) reduce memory round trips and kernel launch overhead.
Pseudocode for a training loop:
for step, batch in enumerate(dataloader):with no_sync(model, step): # skip gradient sync for the first few stepsloss = model(batch)if step % accum == 0:all_reduce_grads(model) # overlap communication with computationoptimizer.step() # fused operator updateema.update(model) # fused EMA update
These optimizations share one goal: turning “it runs” into “it runs stably, fast, and efficiently.”
6. Adoption Guidance: How Enterprises Should Evaluate and Integrate
- Scenario fit: prioritize text-heavy and custom-size scenarios; compare quality for purely photorealistic needs.
- Resource planning: on the training side, focus on scheduling and storage throughput of domestic chip clusters; on the inference side, focus on memory and concurrency.
- Engineering support: manage datasets with general object storage, isolate environments with container platforms, and track training stability with logging, monitoring, and alerting.
- Compliance and cost: clarify data licensing and output content compliance, and budget elastic compute against business peaks.
7. Conclusion
The combination of end-to-end domestic chip training, a hybrid autoregressive and diffusion architecture, Chinese text rendering, and non-standard resolutions marks a shift in multimodal generation from a quality contest to an infrastructure contest. For developers, what is worth investing in is not any single model, but reusable training pipelines, transferable adaptation experience, and capabilities built for business-specific sizes and text scenarios.
