Training SOTA Multimodal Models on Domestic AI Chips: Text Rendering, Evaluation, and Low-Cost Inference
This article examines how a new open-source image generation model was trained end to end on domestic AI accelerators and achieved leading results among open-source models in complex visual text generation and long-text rendering. It breaks the milestone into three practical engineering questions: how domestic chips can support a full multimodal training pipeline, why text rendering is difficult and how it should be evaluated, and how to bring inference cost down to roughly 0.1 RMB per image. Readers will find explanations of word accuracy and normalized edit distance, common failure modes, operator fallback and mixed-precision strategies, parallelism and curriculum data scheduling, cost levers across model serving and scheduling, and a set of deployment recommendations with known limitations.
1. Introduction: Multimodal Generation Enters the “Readable Text” Stage
Over the past two years, the main line of image generation has been making pictures look better: more natural textures, more stable composition, more controllable style. But once the goal shifts from “a good-looking image” to “a usable image” — posters, illustrations, infographics, hand-written style layouts — the requirement changes fundamentally: the text inside the image must be correct, complete, and ready for layout. The long-standing pain point can be summarized in one sentence: the picture looks great, but the text is a mess, with missing strokes, invented symbols, and semantic drift.
A recent landmark result: a team open-sourced a new-generation image generation model that was trained entirely on domestic accelerators and ranked among the best open-source models in two evaluations, complex visual text generation and long-text rendering. The significance is not just a high score. It validates three things at once: domestic compute can carry the complete training pipeline of a SOTA-level multimodal model; text rendering is a capability that can be quantified and optimized as an engineering problem; and inference cost can be pushed into a very low range (an API price on the order of about 0.1 RMB per image has already appeared in the industry).
This article is not about any specific product. It abstracts the event into three general technical questions: how domestic chips carry multimodal training, why text rendering is hard and how to evaluate it, and how low-cost inference is implemented in engineering practice.
2. Why Text Rendering Is the Hard Part of Multimodal Generation
2.1 The Generation Paradigm Conflicts Structurally with Text
Mainstream image generation follows the paradigm of “text encoder — diffusion or flow-matching denoising — decode to pixels”. Inside the model, text has no natural structural constraint; it is merely encoded into a set of vectors and then gradually “drawn” by the denoising process. This is in inherent tension with the discrete, strongly constrained nature of text:
- Strokes are high-frequency detail, and diffusion only stabilizes high-frequency information in the later stages, so strokes easily stick together or break;
- When there are many characters packed densely, attention has to switch back and forth between glyph shape and semantics, making long-range consistency hard to maintain;
- Mixed Chinese-English typesetting, vertical layout, and stylized lettering further amplify the alignment difficulty.
2.2 Two Typical Failure Modes
In practice, text rendering failures fall into two categories:
- Glyph-level errors: missing strokes, extra strokes, mirroring, substitution of similar-looking characters;
- Sequence-level errors: dropped characters, repeated characters, wrong order, and collapse in the second half of long text.
The first relates to the ability to reconstruct high-frequency detail; the second relates to the ability to model long-range dependencies. This also explains why evaluation looks at both accuracy and edit distance.
3. How to Read the Evaluation: Metric Meaning and Limits
The source material mentions two leaderboard dimensions, complex visual text generation and long-text rendering, with figures such as word accuracy of 0.9116 and normalized edit distance of 0.9557. For developers, understanding what the metrics mean and where they stop is more important:
- Word Accuracy: the share of text in the generated image that can be recognized and correctly matched, reflecting whether the text was written correctly;
- Normalized Edit Distance (NED): the recognition output is compared with the target text as a sequence, and after normalization a value closer to 1 means a smaller difference, reflecting how far off the result is;
- Per-language evaluation (Chinese / English / average): used to expose differences in mixed Chinese-English typesetting and font coverage.
Limits of interpretation: leaderboard scores depend on the conventions of the recognition model and cannot be compared directly across leaderboards; real business use also depends on layout fidelity, font size hierarchy, whitespace, and readability, which automatic metrics usually do not cover. The practical recommendation is to build a small in-house business evaluation set and treat the usability rate as the final deciding metric.
4. Running SOTA Training on Domestic Chips: Challenges and General Solutions
“Trained entirely on domestic chips” is the most engineering-valuable part of this story. It relies on no proprietary interface; it is a reusable general methodology.
4.1 Operators and Precision
Multimodal training involves a large number of operators: convolution, attention, normalization, interpolation, and more. On domestic chips, the common problem is that some operators are missing or perform poorly. The general solution is an operator allowlist plus a fallback strategy: prefer the high-performance implementation, fall back to a generic implementation for missing operators, and set a performance budget for the fallback path.
# Illustration: operator fallback and performance budgetfor op in model.ops:if backend.has_fast(op):op.use(backend.fast(op))else:op.use(backend.generic(op))budget.record_fallback(op) # Track the extra time introduced by fallback
4.2 Mixed Precision and Numerical Stability
The recommended approach is the industry-standard mixed-precision strategy: use low precision for matrix multiplications to raise throughput, keep normalization and loss accumulation at higher precision, and apply dynamic loss scaling for overflow. Text tasks are more sensitive to numerical stability, because glyph detail is a high-frequency signal and low-precision noise shows up directly as stroke jitter.
4.3 Parallelism and Communication
The combination of data parallelism, tensor parallelism, and pipeline parallelism remains mainstream. Domestic clusters need particular attention to the collective communication library and topology matching, so that inter-node bandwidth does not become the bottleneck. In practice, communication-computation overlap and gradient bucketing can hide latency.
4.4 Data and Curriculum Learning
Improving text rendering depends heavily on data mixture. The general approach is curriculum-style data scheduling: start mainly with natural images to establish a visual prior, then gradually raise the proportion of text-dense samples, and finally add long-text and mixed Chinese-English samples, forming an easy-to-hard training path.
5. Low-Cost Inference: The Engineering Levers Behind About 0.1 RMB per Image
A cost on the order of 0.1 RMB per image is not the result of a single optimization but of several layers of levers stacked together:
- Model side: distillation and quantization reduce the cost of a single forward pass;
- Serving side: batching and dynamic batch assembly raise throughput, and caching frequent prompts and intermediate results avoids rework;
- Scheduling side: elastic scale up and down based on queue length, reclaiming idle compute;
- Storage side: object storage holds source assets and outputs, a message queue smooths peaks, and logging plus monitoring and alerting help locate long-tail latency.
The advice for business teams is to build a two-dimensional “cost-quality” dashboard: put usability rate, average edit distance, and cost per image on the same chart, so that cutting cost does not come at the expense of text correctness.
6. Deployment Recommendations
- Define “usable” first: set a minimum font size, a maximum text count, and an acceptable error rate;
- Build a business evaluation set: cover three layout types — posters, illustrations, infographics — and always test mixed Chinese-English;
- Use two-stage generation: produce composition and layout first, then locally repaint the text regions, which can significantly reduce sequence-level errors;
- Add post-processing verification: read the generated image back with a recognition model, and trigger a retry or local repaint if it fails;
- Canary release and rollback: roll out gradually per tenant and keep the previous version for fast rollback.
7. Risks and Boundaries
- Metrics depend on the recognition convention, so cross-team conclusions require an aligned evaluation protocol;
- Long text is still the weakest link; for very long text, generate in segments and stitch them together;
- Copyright and compliance: fonts, assets, and generated-content labeling must be handled according to platform rules;
- The domestic chip ecosystem is still evolving, so operator coverage and driver versions need to be part of regression testing.
8. Conclusion
Training a SOTA multimodal model on domestic chips marks the start of a positive loop between compute independence and model capability. Turning text rendering from something unpredictable into a quantifiable engineering metric is what moves image generation into a genuinely usable stage. For developers, the pragmatic path is to anchor on business usability, measure with evaluation metrics, treat cost and stability as constraints, and roll out in stages.
