Training SOTA Multimodal Models on Domestic Chips: Reliable Text Rendering Breakthroughs

    This article examines how a new open-source image generation model completed its entire pipeline—data preparation, training, and evaluation—on domestic chips, achieving leading results among open-source models in complex visual text generation and long-text rendering. It explains why text rendering is harder than it looks, which engineering constraints full-stack domestic training must solve, what technical elements reliable rendering requires, and how to evaluate, integrate, and control the cost of these capabilities in production systems.

    1. Introduction: The “Last Mile” of Multimodal Generation Is Text

    Over the past two years, image generation has improved significantly in composition, lighting, materials, and style transfer. But in real business scenarios, users often need more than a “good-looking” image—they need a usable one. The value of a poster, an infographic, or an illustrated explainer card often depends on whether the text in the image is accurate, whether the layout is stable, and whether the semantics are coherent. A long-standing pain point in the industry can be summed up in one line: the visuals look like art, but the text is a mess—missing strokes, invented glyph shapes, substituted characters, and lines that run together in long paragraphs. Almost every team that has worked on design automation has run into this.

    A recent technical signal is worth noting: a team open-sourced a new-generation image generation model that completed the entire pipeline—from data preparation and training to evaluation—on domestic chips, and achieved leading results among open-source models in two evaluations: complex visual text generation and long-text rendering. This article does not focus on any specific product. Instead, it abstracts the phenomenon into a general technical question: on a domestic compute foundation, how do you train a multimodal model with reliable text rendering, and integrate it safely and cost-effectively into business systems?

    2. Problem Definition: Why Text Rendering Is Harder Than It Seems

    2.1 Text Is a Discrete Structure; Images Are Continuous Signals

    The main body of image generation is a continuous pixel space, while text carries a discrete symbol sequence. The model must implicitly preserve character order, stroke structure, and semantic boundaries while generating pixels. This leads to three typical error types:

    • Glyph errors: missing strokes and merged structures, especially visible in Chinese characters with dense strokes (such as “藏”, “赢”, and “繁”);
    • Sequence errors: characters out of order, repeated, or missing; the probability accumulates as text length grows;
    • Semantic errors: correct glyph shapes but wrong characters, producing pseudo-text that “looks like characters but reads incorrectly.”

    2.2 Why Evaluation Needs Two Dimensions

    A single metric is easy to distort. The industry typically uses two complementary metrics:

    • Word Accuracy: measures the proportion of generated text that can be correctly recognized, reflecting “whether it was written correctly”;
    • Normalized Edit Distance (NED): measures the character-level difference between predicted and target text; a value closer to 1 means closer to a complete match, reflecting “how far off it is.”

    The leading results mentioned above essentially show that the model converges on both dimensions at once: high overall recognition accuracy and small enough detail-level deviation. In engineering, both metric types should be included in acceptance criteria to avoid the structural defect of “high accuracy coexisting with a high typo rate.”

    3. Compute Perspective: What Full-Stack Training on Domestic Chips Means

    3.1 Full Stack, Not a Single-Point Swap

    The key phrase in “training completed entirely on domestic chips” is full stack. It covers at least: data preprocessing and decoding, operator compilation and graph optimization, mixed-precision training, distributed parallelism, checkpoint saving and recovery, and evaluation inference. If any link falls back to general-purpose hardware, it introduces data migration and precision-alignment costs.

    3.2 Three Engineering Constraints That Must Be Solved

    1. Operator coverage and graph compilation: multimodal models contain many operator types such as convolution, attention, and normalization; long-text rendering also involves high-resolution feature maps. Missing operators cause direct fallback and unpredictable performance.
    2. Numerical stability: under mixed precision, attention and normalization have large differences in numerical range, requiring stable loss scaling and gradient clipping strategies.
    3. Parallelism and communication: the vision branch and language branch are load-imbalanced, requiring a reasonable partitioning strategy to reduce synchronization waits.

    3.3 Illustration: A Minimal Reproducible Training Skeleton

    The following is vendor-agnostic illustrative pseudocode showing the observability points that full-stack training should focus on:

    1. # Pseudocode: only illustrates key stages to monitor in the training loop
    2. for step, batch in enumerate(dataloader):
    3. # 1) Data side: alignment checks for text encoding and image tensors
    4. assert batch["text_ids"].ndim == 2
    5. assert batch["image"].shape[-1] == batch["image"].shape[-2]
    6. # 2) Forward: vision branch and language branch work together
    7. logits, img_tokens = model(batch["image"], batch["text_ids"])
    8. # 3) Loss: joint optimization of pixel reconstruction + text consistency
    9. loss = recon_loss(logits, batch["target_image"]) \
    10. + lambda_text * text_consistency_loss(img_tokens, batch["text_ids"])
    11. # 4) Numerical stability: gradient clipping and loss scaling
    12. loss = loss_scaler.scale(loss)
    13. loss.backward()
    14. loss_scaler.unscale_(optimizer)
    15. torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)
    16. loss_scaler.step(optimizer)
    17. optimizer.zero_grad()
    18. # 5) Observability: throughput, memory usage, operator fallback count
    19. metrics.log(step, loss=loss.item(),
    20. throughput=samples_per_sec(),
    21. fallback_ops=compiler_report.fallback_count())

    The point of this code is not the API, but the reminder to teams: operator fallback count, throughput, and memory watermark should become standard dashboard metrics for domestic compute adaptation.

    4. Capability Breakdown: What Reliable Text Rendering Requires

    • Text conditioning encoding: convert input text into a stable conditional representation that preserves character order;
    • Glyph prior injection: introduce stroke- and structure-level constraints to reduce the chance of merged glyphs in dense Chinese characters;
    • Region-based layout control: constrain different font-size regions separately, such as titles, body text, and seal-style small text;
    • Long-text consistency: suppress repetition and drift as length grows; a common approach combines segmented conditioning with a global consistency loss;
    • Multilingual unification: unify the encoding space for mixed Chinese and English to avoid wrong characters at language switch points.

    5. Evaluation and Acceptance: An Actionable Checklist for Teams

    1. Dual-leaderboard thinking: look at both Word Accuracy and Normalized Edit Distance; do not trust a single score;
    2. Length-stratified testing: measure short titles, paragraphs, and long text separately to locate length-sensitive ranges;
    3. Glyph-difficulty stratification: group common characters, dense-stroke characters, and variant characters, and tally error types;
    4. Layout robustness: stability under different font sizes, contrast levels, and background textures;
    5. Regression baseline: run a fixed small-sample regression after every model or inference-stack upgrade to prevent capability regression.

    6. Integration and Cost: Putting the Capability into Business

    When integrating this type of multimodal capability on the business side, follow the principle of “decoupling + replaceability”:

    • Access layer: wrap model calls through a unified gateway to hide underlying compute differences;
    • Asynchronous processing: image generation takes a long time, so use a message queue for task queuing and peak shaving;
    • Storage and distribution: store generated results in object storage and use content delivery to reduce origin-fetch pressure;
    • Observability: use logging services and monitoring alerts to track failure rate, latency, and cost per image;
    • Cost control: the original text mentions that the cost of generating a single image has dropped to around 0.1 RMB. This kind of price signal means batch production (such as e-commerce assets and educational cards) is feasible, but the total bill still needs to be controlled with three strategies: cache reuse, resolution tiering, and a cap on failed retries.

    Illustrative vendor-agnostic call wrapper:

    1. def render_poster(payload: dict) -> dict:
    2. task = gateway.submit(model="text-to-image", payload=payload)
    3. result = queue.wait(task.id, timeout=30) # asynchronous wait
    4. if result.status != "ok":
    5. metrics.inc("render_fail")
    6. raise RuntimeError(result.message)
    7. url = object_storage.put(result.image_bytes)
    8. metrics.inc("render_ok", cost=result.cost)
    9. return {"url": url, "cost": result.cost}

    7. Limitations and Outlook

    It should be stated objectively that improved text rendering does not mean every scenario is ready for use. Extremely long text, complex layouts, specialized terminology, and trademark-style glyphs remain difficult. Full-stack training on domestic chips also still needs continued investment in the operator ecosystem, compilation toolchains, and distributed stability. Expected directions include stronger region-based layout control, editable layered output (separating the text layer from the background layer), and structured generation interfaces for enterprise template systems.

    8. Conclusion

    The value of the “domestic chips + domestic models” combination lies not in slogans, but in advancing compute autonomy and usable capability at the same time: on one hand, it validates the engineering feasibility of full-stack domestic compute; on the other, it pushes text rendering—a long-standing weak point—to a level that is production-ready. For developers, the pragmatic approach is to use dual-dimension metrics for acceptance, layered testing to locate weaknesses, and a decoupled architecture to control cost and risk, gradually scaling up in real business.