Training a SOTA Multimodal Model End-to-End on Domestic Chips: An Experience Analysis
This article examines what it means to run the full pipeline—data preparation, training, compilation, and inference deployment—for a state-of-the-art multimodal image generation model entirely on a self-controlled domestic hardware and software stack. Instead of reviewing a specific product, it frames the topic as a general engineering problem and breaks down the four layers that must form a closed loop, then proposes six quantifiable evaluation dimensions, practical prompt engineering tips, and deployment and cost optimization recommendations, along with current limitations and future directions.
1. Introduction: Why a Fully Domestic Pipeline Matters More Than Another Text-to-Image Model
Image generation technology is evolving quickly, and the market is not short of models that can turn text into images. What is genuinely scarce is engineering practice in which the entire chain—from data preparation and model training to inference deployment—closes the loop on a single, self-controlled software and hardware stack.
The conventional path is usually to complete pre-training and fine-tuning on mainstream overseas accelerators first, and then try to migrate inference to domestic chips. The risk with this path is that operator adaptation, mixed-precision strategy, and distributed parallelism configuration during training do not share the same underlying semantics as graph optimization during inference. Migration can therefore introduce precision drift, performance regression, and missing long-tail operators. When the full pipeline runs on the same domestic stack, by contrast, the operator libraries, communication libraries, compiler, and runtime are co-designed, which significantly improves engineering consistency and reproducibility.
This article does not benchmark any specific product. Instead, it abstracts the phenomenon into a general engineering question: how to build and evaluate a multimodal image generation capability that reaches mainstream industry levels on a self-controlled compute foundation.
2. Capability Positioning: What Problem Does It Actually Solve
In functional terms, this class of models belongs to text-to-image generation and typically offers the following general capabilities:
- Bilingual Chinese-English prompt understanding;
- Output across multiple styles, including photorealistic, illustration, and design sketches;
- Unified interaction for image understanding, editing, and generation alongside a multimodal large model system.
Focusing only on “how good the image looks” misses the core value. The value proposition breaks down into three layers:
- Supply chain security: training and inference do not depend on a single external hardware ecosystem, reducing supply disruption and compliance risk;
- Engineering consistency: training and inference share operators and the compilation chain, reducing migration loss;
- Reproducibility: distributed configurations, random seeds, and data versions are easier to align on the same stack, making experimental conclusions more credible.
3. Breaking Down the Fully Domestic Technical Stack
A genuinely end-to-end domestic training pipeline must close the loop across at least four layers.
3.1 Data Layer
This covers the collection, cleaning, deduplication, quality scoring, and copyright compliance filtering of multimodal image-text pairs. A common engineering practice is to build a multi-stage quality funnel: first filter low-quality samples with rules and lightweight classifiers, then run a second pass using image-text consistency scoring, and finally keep a high-quality subset for instruction fine-tuning.
3.2 Training Layer
This involves combined strategies of tensor parallelism, pipeline parallelism, and data parallelism, along with mixed-precision and gradient accumulation settings and memory optimizations such as activation recomputation. The key factor is how deeply the underlying collective communication library and operator libraries are adapted to domestic chips, which directly determines the linear scaling ratio of large-scale training.
3.3 Compilation and Runtime Layer
The graph compiler handles operator fusion and memory planning, while the runtime handles scheduling and resource isolation. The advantage of a fully domestic stack is most visible at this layer: fusion strategies can be customized for the memory hierarchy and compute unit characteristics of domestic hardware.
3.4 Inference Deployment Layer
This includes model quantization, distillation, cache reuse, and batch scheduling. On the inference side, a container platform can provide elastic scaling, object storage can distribute model weights, and logging services with monitoring and alerting can track latency and failure rates.
4. Six Evaluation Dimensions from Hands-On Experience
A quantifiable framework is more useful than subjective impressions when evaluating this class of models:
| Dimension | Focus | Reference Method |
|---|---|---|
| Semantic alignment | Whether prompt details are fully preserved | Build combined prompts with counts, positions, and materials |
| Style controllability | Whether style instructions take effect reliably | Switch multiple style suffixes on the same semantics |
| Chinese understanding | Whether idioms and inverted word order are understood | Test long Chinese sentences and omitted subjects |
| Structural plausibility | Human bodies, hands, and text layout | Zoom in and spot-check locally |
| Inference efficiency | Time to first token and throughput | Run batch stress tests at a fixed resolution |
| Stability | Reproducibility with the same seed | Fix the random seed and generate repeatedly |
A simplified call example (pseudocode that only illustrates the interaction shape):
# Illustrates the interaction shape only, not a specific interfaceresult = image_model.generate(prompt="An old street under neon lights on a rainy night, photorealistic style, 35mm lens",width=1024, height=1024,seed=42, steps=30)result.save("output.png")
5. Prompt Engineering Practices
- Structured description: subject + environment + lighting + lens + style is the most reliable five-part structure;
- Negative constraints: use exclusion terms to suppress common artifacts such as extra limbs and watermarks;
- Style anchoring: use concrete style nouns rather than abstract adjectives;
- Iteration strategy: trial-and-error quickly at low step counts, then raise the step count for refinement once the composition is locked in.
6. Deployment and Cost Optimization Recommendations
- Use quantization and distillation to reduce memory usage, prioritizing throughput over extreme image quality;
- Apply semantic caching to high-frequency request results so repeated prompts hit the cache directly;
- Use a container platform for elastic scaling to avoid wasting resources at peak times;
- Establish canary release and rollback mechanisms, with monitoring and alerting driving quality gating.
7. Limitations and Outlook
This class of models still has room for improvement in very long Chinese semantics, complex spatial relationships among multiple subjects, and precise text rendering. The next priorities for a fully domestic stack are continued improvement of operator coverage, greater compiler optimization depth, and convergence toward a unified multimodal architecture.
8. Conclusion
Whether a multimodal generation model has long-term value cannot be judged by the quality of a single image. It depends on whether the model is built on a self-controlled, engineering-consistent, and reproducible foundation. The significance of a fully domestic pipeline is precisely turning “usable” into “sustainably usable and usable at scale.”
