Training SOTA Multimodal Models on a Full-Stack Domestic Compute Platform: Architecture and Evaluation Breakdown

    This article analyzes how a full-stack domestic compute stack—non-mainstream hardware paired with a self-developed deep learning framework—can support the complete training pipeline of a state-of-the-art multimodal image generation model. It breaks down the dual-engine architecture that separates planning from rendering, explains text rendering as the hardest control problem, and presents a reusable evaluation framework covering layered metrics, variable control, and cost normalization. It also covers production integration practices, common failure modes, and an optimization checklist.

    1. Technical Background: Why Full-Stack Domestic Training Matters

    Competition in multimodal image generation has shifted over the past two years from “can it generate” to “can it generate under control.” Within controllability, the hardest problem is text rendering: poster headlines, price tags, presentation covers, and social media graphics all require characters in the image to be exactly correct, reasonably laid out, and consistent in both meaning and appearance.

    A key change on the training side is that the industry has begun validating whether non-mainstream hardware combined with a self-developed deep learning framework can support the complete training pipeline of a frontier multimodal model. The value here is not any specific product but engineering reproducibility. If the full chain—data cleaning, distributed parallelism, mixed precision, memory optimization, fault tolerance and recovery, and evaluation regression—runs on domestic chips and a self-developed framework, it means a more diversified compute supply and more room for enterprises when making hardware choices.

    2. Capability Breakdown: Why a Dual-Engine Architecture Fits Image-and-Text Dual Constraints

    The public technical narrative abstracts into a design pattern that has been repeatedly validated: decouple understanding and planning from drawing and rendering.

    • Planning side (autoregressive large model): parses complex instructions, decomposes subtasks, and decides layout structure—for example, main headline on the left, product image on the right, small disclaimer text at the bottom.
    • Rendering side (diffusion-based decoder): handles pixel-level detail, color, lighting, and texture.
    • Text processing module: specifically optimized for glyph shapes, letter spacing, line width, and line breaks, reducing pseudo-text that looks like characters but is actually garbled.

    The engineering significance of this split is that semantic constraints and visual constraints can be optimized and regression-tested separately. Changing prompt templates on the planning side does not affect the visual style; swapping weights on the rendering side does not affect instruction following; the text module can be evaluated on its own using character-level accuracy metrics.

    Illustrative pseudocode (expressing the flow only, not any specific interface):

    1. plan = planner.parse(prompt) # output layout and key points
    2. layout = layout_solver(plan) # generate region and font size constraints
    3. image = renderer.render(layout) # diffusion decoding render
    4. text_ok = ocr_check(image, plan.text) # character-level verification
    5. if not text_ok:
    6. layout = adjust_layout(layout) # fall back and re-layout
    7. image = renderer.render(layout)

    3. Evaluation Methodology: How to Compare Image Generation Models Scientifically

    The testing approach in the original text abstracts into a reusable evaluation framework. The focus is not on any single model but on how to test without falling into traps.

    1) Layered metrics

    • Generation quality and realism: prompt adherence, structural soundness, artifacts and distortion, common failure points such as hands, edges, and textures.
    • Instruction understanding and execution accuracy: whether multiple constraints (count, position, color, text content) are each satisfied.
    • Text rendering specifics: character accuracy, completeness (no missing characters), and layout (no overlap, no out-of-bounds).

    2) Variable control

    • Fix the random seed (where available), resolution, and style prompt to avoid drifting conclusions caused by lucky draws.
    • Repeat each test case multiple times and draw conclusions from pass rate rather than a single image.

    3) Unified cost basis
    Different billing methods (per call or per token) cannot be compared directly and should be converted to cost per qualified image:

    1. cost per qualified image = unit price / pass rate of that case

    This is closer to real business spending than comparing unit prices alone.

    4. Engineering Implementation: General Practices for Connecting Model Capabilities to Production Systems

    Regardless of which class of model service is used, production deployment should follow the same engineering standards:

    • Access layer: wrap generation requests uniformly, with timeouts, retries, and idempotency keys to avoid duplicate charges and duplicate outputs.
    • Storage layer: store images in object storage and metadata (prompt, parameters, version, pass rate) in a database for traceability.
    • Asynchronization: use a message queue to smooth peaks, decouple generation tasks from business logic, and route failures to a retry queue.
    • Observability: use logging services and monitoring alerts to track failure rate, latency, and cost per image; instrument text rendering failures separately.
    • Quality gates: run a fixed regression set before release; online, combine sampled manual review with automated character verification.
    • Cost control: tier by scenario (low resolution for drafts, high resolution for final output) and templatize prompts with low pass rates.

    5. Common Failure Modes and Optimization Checklist

    • Text out of bounds or overlapping: reduce font size, reduce character count, add whitespace constraints, split into multiple lines.
    • Garbled mixed-language text: specify language and character set explicitly, reduce rare characters and stylized fonts.
    • Conflicting instructions: change “simultaneous requirements” into “hierarchical requirements” (layout first, then style).
    • Detail artifacts: increase resolution or repaint by region, avoid carrying too many elements at once.
    • Style drift: fix the style reference and randomness parameters, and establish a style baseline.

    6. Conclusion

    The more important takeaway from completing the full training pipeline with domestic chips and a self-developed framework is that multimodal generation is moving into an engineering stage that is controllable, evaluable, and operable. What enterprises truly need is not to chase a single model but to build an evaluation and release system aligned with the business: measure quality with layered metrics, convert pass rate into cost, ensure stability through asynchronization and observability, and protect experience with regression gates. Mastering this approach is what allows rational technology choices to keep being made as compute and models evolve quickly.