Training SOTA Multimodal Models on Domestic Chips: Technical Breakthroughs in Text Rendering and High-Resolution Generation

    This article examines how a new open-source image generation model was trained entirely on domestic chips and achieved leading results in complex visual text generation and long-text rendering. It breaks the event down into three general engineering questions: how domestic compute supports multimodal model training, why text rendering is difficult, and how arbitrary-resolution generation can be deployed in production. Readers will find practical notes on operator coverage, mixed precision, parallelism, data pipelines, evaluation metrics, and cost-aware architecture.

    1. Introduction: From “Looking Good” to “Writing Correctly”

    Over the past two years, the main benchmarks for image generation have been aesthetic quality and semantic consistency. In real business scenarios such as posters, covers, infographics, and illustrated layouts, however, whether the text in the image is rendered correctly is often the dividing line between usable and unusable. Missing strokes, merged glyphs, invented symbols, and broken long-text paragraphs have kept generative design tools out of formal production workflows.

    A recent milestone is a new-generation open-source image generation model that was trained entirely on domestic chips and achieved leading results among open-source models in both complex visual text generation and long-text rendering. This article does not focus on any specific product. Instead, it abstracts the event into three general technical questions: how domestic compute can support multimodal model training, why text rendering is difficult, and how high-resolution arbitrary-aspect-ratio generation can be engineered for deployment.

    2. Engineering Challenges of Training Multimodal Models on Domestic Chips

    2.1 Operator Coverage and Graph Compilation

    A multimodal model contains a vision encoder, a text encoder, and a diffusion backbone, so it involves many operator types and many dynamic shapes. The common problem with domestic chip ecosystems is not insufficient peak compute, but missing operators or inconsistent numerical precision in some operator implementations. This forces a fallback to general compute paths, and performance drops sharply. The usual engineering approach is to first build an operator coverage list, replace unsupported operators with equivalent implementations (for example, expressing a complex normalization with composed small operators), and then fix the computation graph to reduce dynamic branches.

    2.2 Mixed Precision and Numerical Stability

    Diffusion model training is sensitive to numerical range, and low precision can easily cause loss spikes. In practice, a mixed strategy of “high precision for critical layers, low precision for the rest” is recommended. Keep higher precision for sensitive modules such as attention softmax and timestep embeddings, and combine this with gradient clipping and loss scaling.

    Illustrative configuration (pseudocode, conveying the idea only):

    1. # Illustrative only: keep sensitive modules at higher precision, run the rest in low precision
    2. model = build_multimodal_model()
    3. model.backbone = model.backbone.to(low_precision_dtype)
    4. model.text_proj = model.text_proj.to(high_precision_dtype)
    5. for step, batch in enumerate(loader):
    6. with autocast(enabled=True):
    7. loss = diffusion_loss(model, batch)
    8. loss.backward()
    9. clip_grad_norm_(model.parameters(), max_norm=1.0)
    10. optimizer.step(); optimizer.zero_grad()

    2.3 Parallelism and Communication Bottlenecks

    Parallelism for multimodal models is usually a hybrid of data parallelism plus tensor/pipeline parallelism. Interconnect bandwidth and topology vary widely across domestic clusters, and communication becomes the bottleneck if the partitioning granularity is poorly chosen. A practical approach is to get a baseline running with data parallelism first, then introduce tensor parallelism only for modules that are tight on memory, and finally use pipeline parallelism to improve overall throughput.

    2.4 Data Pipeline and Checkpoints

    High-quality image-text data requires strict cleaning: deduplication, image-text alignment verification, and augmentation of long-text layout samples. For checkpoints, sharded saving with asynchronous writes is recommended to avoid long rollbacks caused by interrupted training.

    3. Why Text Rendering Is a Hard Problem

    Text rendering is difficult because three constraints must be satisfied at the same time: correct glyphs, reasonable layout, and semantic consistency.

    • Correct glyphs: Chinese characters have dense strokes and many structurally similar characters, so the model must learn fine-grained stroke priors.
    • Reasonable layout: font size, line spacing, alignment, and line breaking are layout decisions that require layout-level supervision.
    • Semantic consistency: the copy must come from the prompt or knowledge content, not merely “look like text.”

    Viable approaches include introducing large-scale, high-quality rendering samples (different fonts, sizes, backgrounds, and perspectives), strengthening region-level text consistency in the training objective, and adding post-processing verification for text regions during inference (a general approach of detection plus redraw).

    4. How to Read the Evaluation: What Leading Two Benchmarks Means

    The two benchmarks, complex visual text generation and long-text rendering, typically focus on metrics such as text accuracy and normalized edit distance. The former measures whether characters are correct; the latter measures overall difference from the target. Leading these benchmarks means the model has crossed the usability threshold of being readable, copyable, and typesettable, rather than improving aesthetics at a single point. For developers, these metrics are closer to business acceptance criteria than subjective visual appeal.

    5. Arbitrary Resolution and Social Scenario Adaptation

    Native support for arbitrary aspect ratios from 1024×1024 to 2048×2048 means a single generation can fit layouts across multiple platforms. Engineering-wise, high resolution significantly increases memory usage and latency. A general strategy is tiled generation, or composing at low resolution first and then upscaling locally, along with safe cropping for extreme aspect ratios.

    6. Cost and Deployment Recommendations

    Low-cost invocation (on the order of about 0.1 RMB per image) changes the economic model of content production. To reproduce similar capabilities in your own business, a general cloud architecture can be used: a container platform hosting the inference service, object storage for assets and results, a message queue for peak shaving, and logging plus monitoring and alerting for stability. Baidu AI Cloud can provide standardized support in these general categories, helping teams quickly engineer model capabilities into production.

    7. Conclusion

    The significance of running SOTA multimodal training with domestic chips and a domestic model is that it validates the feasibility of a software-hardware co-design loop. For developers, the real opportunity is not “another generation model,” but turning text rendering, layout constraints, and high-resolution output into production capabilities that are verifiable, monitorable, and billable.