Training a Text-to-Image Model on Domestic AI Accelerators: Technical Breakdown and Engineering Practice
This article examines the engineering practices behind training a multimodal text-to-image model on domestic AI accelerators, based on publicly disclosed project materials. It covers key optimizations in the training pipeline, including dynamic graph multi-stage pipelining, multi-stream parallelism, and kernel fusion, as well as the hybrid autoregressive-diffusion model architecture, non-standard resolution support, and practical guidelines for validating reported metrics and reproducing results. Intended for developers evaluating similar approaches, the article focuses on what can be verified and what requires independent testing.
Scope and Evidence Boundary
This article is based on publicly available reports and project materials, and does not constitute an independent evaluation of the model. Details concerning training chip scope, parameter counts, benchmark results, and pricing are reproduced as disclosed by the project team. Before citing any of these figures, please refer to the original technical report, benchmark listings, and billing documentation.
Background: Why Compute Policy and Open-Source Models Are Discussed Together
Recent media coverage has noted changes in international compute export policies. Since no official policy document, release date, or scope of application has been made public, this article makes no judgment about whether such policies correlate with model open-sourcing. What can be confirmed is that a domestic team has announced end-to-end training of a multimodal text-to-image model on domestic AI chips and has released the model weights.
For developers, the more practical question is: what does this pipeline depend on from an engineering standpoint, and what work is required to replicate it in a different environment?
Three Engineering Optimizations in the Training Pipeline
The disclosed optimizations fall into three main areas.
1. Dynamic Graph Multi-Stage Pipelining
In distributed training, the host side (CPU) is responsible for graph construction and instruction dispatch, while the device side (NPU or GPU) handles execution. As models grow larger with more operators, instruction dispatch latency can leave accelerators idle. The approach described involves prefetching and asynchronous dispatch, allowing dispatch time to overlap with computation time. To evaluate whether such optimizations are effective, one should compare step time and device utilization before and after enabling them, rather than relying on a single experiment.
2. Multi-Stream Parallelism and Communication-Computation Overlap
Compute and collective communication are placed on different hardware streams, enabling synchronous operations like gradient AllReduce to run in parallel with dense computation such as matrix multiplication. This scheduling is highly sensitive to cluster size and network bandwidth. With fewer nodes, gains may be limited; with more nodes, results depend heavily on network topology.
3. Fused Operators
The report indicates that operations such as AdamW, exponential moving average (EMA), and RMS Norm are fused at the kernel level. Fusion reduces intermediate memory read/write operations and lowers kernel launch overhead. The benefits are strongly tied to specific operator implementations and chip architectures. Migration to other hardware requires reimplementation and verification.
Hybrid Architecture: The Division of Autoregressive and Diffusion Decoders
The model employs a hybrid structure combining an autoregressive model with a diffusion decoder. The design philosophy separates semantic understanding from image generation.
The autoregressive component reportedly has approximately 9 billion parameters and handles complex prompt parsing, entity relationship resolution, attribute binding, and overall composition planning. The diffusion component, with approximately 7 billion parameters, adopts a Diffusion Transformer (DiT) architecture that receives semantic representations and generates image details. A glyph encoder is used to inject Chinese character shape information into the diffusion process, aiming to stabilize stroke rendering and typography.
The advantage of this structure is that both components can iterate independently. The trade-off is a longer inference chain, increased memory consumption, and higher latency. Whether to adopt this approach depends on business requirements for text rendering accuracy. The report does not disclose error rates for text rendering, so it is impossible to determine the improvement over pure diffusion models.
Non-Standard Resolutions: Tokenization and Training Size Distribution
E-commerce posters, social media covers, and long-form illustrated articles commonly require non-standard sizes. Traditional approaches generate a standard size first, then adjust via cropping, padding, or stretching, which can damage composition and text.
According to the project team, the model supports non-standard sizes within a range of 1024x1024 to 2048x2048, such as 1240x1600. This is achieved through improved position encoding and token packing strategies. Exposure to a variety of size distributions during training forms the basis for adapting to custom canvases during inference.
Two points need attention. First, the claimed support range has upper and lower bounds; sizes outside this range may not be usable. Second, support does not guarantee quality stability. Developers should sample outputs at their target sizes and check whether edge text and subjects are truncated.
Evaluation and Pricing: How to Verify Public Claims
The report mentions leading performance among open-source models in complex visual text generation evaluations, and an API price of approximately 0.1 RMB per image. Both claims currently lack complete sourcing.
To validate such figures, check the following in order:
- The name, version, and issuing body of the benchmark;
- The metric type: human scoring, automated metrics, or a hybrid;
- The comparison targets and their model versions;
- Whether the test set size and samples are publicly available;
- The billing unit for pricing, including resolution tiers, retry policy for failed generations, validity period, and concurrency limits.
Only with this information complete can these figures be used for selection decisions. Otherwise, they serve merely as unverified leads.
Pre-Deployment Checklist
To reproduce or try similar approaches on domestic compute environments, consider completing the following steps:
- Record precise versions of the framework, drivers, operator libraries, and compilation toolchain, as version differences can cause inconsistent results.
- Run training and inference on small-scale data first, confirming consistency between single-card and multi-card runs.
- Build a Chinese text rendering test set covering common characters, rare characters, vertical text, multi-line paragraphs, and mixed Chinese-English layout.
- Conduct boundary testing for non-standard sizes, recording which dimensions result in truncation or layout errors.
- Cross-reference the project’s technical report to confirm the boundary between the training pipeline and the open-sourced weights, identifying which components are not public.
Conclusion
The technical directions discussed in the report have practical value. Dynamic graph dispatch optimization, communication-computation overlap, kernel fusion, hybrid autoregressive-diffusion architecture, and non-standard resolution support are all common issues in contemporary multimodal generation engineering. However, the specific figures cited come from the project team’s disclosures and have not been independently reproduced. Developers may use these findings as a research direction and validate them on their own hardware and data before making decisions.
