Training SOTA Multimodal Models on a Full Domestic AI Stack: Text Rendering and Engineering Notes

    This article examines a newly open-sourced image generation model trained end to end on domestic AI chips and a domestic deep learning framework, with a focus on accurate text rendering, especially for Chinese characters. It explains why full-stack domestic training matters, why text rendering is difficult, how to evaluate models beyond public leaderboards, and what to check when reproducing or fine-tuning on domestic hardware and frameworks.

    1. Background: Why Full-Stack Domestic Training Matters

    In mid-January 2026, a research team released a new image generation model as open source, in collaboration with a chip vendor and a framework vendor. The key point is not simply another new model. The entire training process ran on domestic AI chips and a domestic deep learning framework, and the model’s capabilities reached the current SOTA range. This shows that the chain of “chip—framework—operator library—model” can now support frontier multimodal training from an engineering perspective.

    Frontier model training has long relied heavily on a single hardware and software ecosystem, which leads to high migration costs, missing operators, and difficult precision alignment. Full-stack domestic training offers three main benefits:

    • Supply chain certainty: It reduces dependence on a single hardware ecosystem and improves access to compute.
    • Hardware-software co-optimization: When the framework and the chip come from the same source, compilation, operator fusion, and communication libraries can be deeply customized.
    • Reproducibility of the ecosystem: Once the stack works, other teams can reuse it for secondary development.

    2. Core Capability: Why Accurate Text Rendering Is Hard

    Garbled text in generated images has been a long-standing pain point. The difficulty of text rendering comes from the coupling of three constraints:

    1. Strong glyph constraints: Chinese characters have dense strokes and strict structures, and a single missing stroke produces a wrong character.
    2. Hard semantic-visual alignment: The text specified in the prompt must match the scene semantics and the layout position.
    3. Poor long-text stability: As the number of characters grows, the error rate rises non-linearly.

    The model stands out for a significant improvement in text rendering accuracy. It ranks among the leading open-source models on several public text generation benchmarks, with particularly strong accuracy for Chinese character generation. In engineering practice, this is typically achieved through:

    • Cleaning and resampling high-quality image-text alignment data to strengthen the three-way alignment of “text—region—semantics.”
    • Enhancing cross-attention between text encoding and visual decoding to improve glyph controllability.
    • Introducing character-level supervision or recognizer feedback during training to form a closed-loop correction process.

    Illustrative pseudocode (conceptual only, not a specific API):

    1. # Training loop sketch: image-text alignment + character-level feedback
    2. for batch in loader:
    3. text, image, mask = batch
    4. latent = vae_encode(image)
    5. loss_gen = diffusion_loss(model, latent, text)
    6. # Optional: use a general OCR module for character-level checks on the generated result
    7. ocr_out = ocr(generated_image)
    8. loss_ocr = char_level_loss(ocr_out, text, mask)
    9. loss = loss_gen + lambda_ * loss_ocr
    10. loss.backward()
    11. optimizer.step()

    3. How to Interpret Benchmarks: Top Rank Does Not Mean Production-Ready

    Public benchmarks, such as general text generation and long-text generation evaluations, reflect relative performance, but deployment depends on your business distribution. A three-layer evaluation approach is recommended:

    • Benchmark layer: Track public metrics to confirm where the model stands in general capability.
    • Scenario layer: Run A/B tests with real business prompt sets, such as posters, packaging, and screen UIs.
    • Stability layer: Repeat sampling multiple times and measure wrong-character rate, missing-character rate, and layout drift rate.

    The following metric table can guide model selection:

    Metric Meaning Example Suggested Threshold
    Character accuracy Proportion of generated text that matches the prompt Defined by the business
    Long-text degradation Error growth as the character count increases Lower is better
    Layout compliance Whether position, font size, and hierarchy meet expectations Defined by the business
    Inference latency Time to generate a single image Based on SLA

    4. Engineering Deployment: A Reusable Path for Full-Stack Domestic Training

    To reproduce or fine-tune on domestic chips and frameworks, focus on four areas:

    1. Operator coverage and graph compilation: Scan for missing operators in advance, and prioritize the framework’s built-in fused operators.
    2. Precision alignment: Use a small dataset to compare values layer by layer and locate error sources (mixed precision, normalization, attention implementation).
    3. Distributed communication: Adjust the parallelism strategy based on cluster topology (a combination of data, tensor, and pipeline parallelism).
    4. Observability: Connect general logging services and monitoring alerts to track loss, throughput, OOM, and node failures.

    For deployment, general cloud-native capabilities can be used: a container platform to host inference services, object storage to manage models and datasets, a message queue to smooth out task peaks, and monitoring alerts to protect SLAs.

    5. Conclusion

    Running a SOTA multimodal model on a full domestic stack shows that domestic compute can support frontier training. The improvement in accurate text rendering directly addresses the industry’s most painful “garbled text” problem. For enterprises, the rational path is to use a business evaluation set as the benchmark, treat the full domestic stack as an optional foundation, and gradually build standardized processes for data, evaluation, and deployment.