Training Trillion-Parameter Multimodal Models: Long-Horizon Agent Training and Domestic Accelerator Optimization
This article explains how modern trillion-parameter multimodal models are built: why sparse Mixture-of-Experts architectures have become the mainstream choice, how long-horizon agent capabilities are strengthened through trajectory data and large-scale reinforcement learning, how native multimodality unifies visual and text tokens, and how engineering teams train long sequences on memory-constrained accelerators using combined parallelism strategies, achieving roughly 86% higher per-GPU throughput than a DDP baseline.
How Trillion-Parameter Multimodal Models Are Built: Long-Horizon Agent Training and Accelerator Optimization in Practice
1. Why “Trillion Parameters + Sparse Activation” Has Become the Mainstream Choice
In recent years, model parameter counts have kept climbing, but the training and inference costs of dense models grow linearly—or even superlinearly—with parameter count. Simply stacking more parameters is no longer sustainable. The industry has therefore widely shifted to Mixture-of-Experts (MoE) architectures: total parameters can reach the 1.6-trillion scale, while each token activates only tens of billions of parameters (around 48 billion, for example). This preserves a large knowledge capacity while keeping the compute cost of each forward pass within an acceptable range.
This “large total parameters, small active parameters” design delivers three benefits:
- Decoupled capacity and cost: The total number of expert networks determines the model’s knowledge ceiling, while the routing mechanism determines actual compute. The two can be tuned independently.
- Friendlier training throughput: Fewer active parameters means lower per-device compute density. Combined with expert parallelism, different experts can be sharded across devices to improve overall utilization.
- Flexible inference deployment: Expert replicas can be spun up or down dynamically based on load, scaling out through expert replication during traffic peaks.
Of course, MoE introduces new problems: load imbalance can turn certain experts into hotspots, and routing instability can hurt training stability. Mitigations include dynamic expert replication and auxiliary load-balancing losses.
2. Capability Reinforcement for Long-Horizon Agent Tasks
The competitive focus of large models is shifting from “single-turn Q&A” to “long-horizon agent tasks,” where a model must maintain goal consistency across tens or even hundreds of steps of tool calls, code edits, and environment feedback. Progress in this direction typically requires three technical tracks working together.
1. Injecting long-horizon trajectory data. Traditional SFT data is dominated by short-context, single-task samples, whereas agent tasks require the model to have seen “full engineering” trajectories—for example, locating bugs across multiple rounds in a complex codebase, refactoring modules, and getting tests to pass. Introducing large volumes of long-horizon trajectory data during long-sequence training is the foundation for end-to-end engineering capability.
2. Large-scale long-horizon reinforcement learning. SFT can only imitate trajectories; reinforcement learning lets the model receive reward signals based on task completion in real or simulated environments, learning to plan, trial-and-error, and backtrack autonomously. This is especially critical for tasks like complex codebase development and full project construction, which cannot be measured by single-step correctness—only the final deliverable can serve as the reward.
3. Tiered evaluation on agent benchmarks. The industry commonly evaluates models with automated task benchmarks, general agent-operation benchmarks, and terminal-operation benchmarks. Note that different benchmarks emphasize different things: some focus on tool orchestration and task decomposition, others on precise operation in command-line environments. Models rarely lead on every dimension simultaneously. This is a reminder that when selecting models, you should match evaluation dimensions to your actual business scenarios rather than relying on a single leaderboard.
3. Native Multimodality: Unified Tokenization of Visual Signals
Another major direction is the “native unification” of multimodality. Early multimodal approaches typically used a bolt-on structure of “visual encoder + adapter layer + language model,” where vision and text traveled separate processing paths, often causing disconnects in fine-grained understanding and generation tasks.
The core idea of native multimodality is to convert visual signals into multi-level discrete tokens, so that visual and text inputs are processed uniformly by the same backbone model. The multi-level design preserves information at different granularities, from low-level textures to high-level semantics, enabling the model not only to “see” but also to “draw”—supporting bidirectional tasks such as visual programming, creative design, and 3D content generation.
From a practical standpoint, such models already achieve considerable completion quality on tasks like generating front-end pages and producing chart-based presentations: overall structure is complete, style is consistent, frameworks are sensibly scaffolded, and they can even distill trends and risk points from materials such as financial reports. However, clear weaknesses remain at the detail level—spatial and layering relationships among visual elements are prone to errors, the information density and layout quality of generated pages need improvement, and some conclusions may be stated too absolutely. The takeaway: structured generation capability is close to usable, but fine-grained visual-spatial reasoning and layout aesthetics remain the next battleground.
4. Long-Sequence Training on Domestic Accelerators: A Parallelism Combination Punch
For training clusters built on domestic accelerators, per-device memory is generally under 80GB, while long-sequence training demands enormous memory for activations, optimizer states, and parameter replicas. This creates severe engineering constraints. Effective optimization strategies in the field can be summarized as a combination of “one re-architecture, multiple parallelisms, and off-graph offloading.”
Re-orchestrating parallelism degrees across supernodes. Rearrange FSDP (Fully Sharded Data Parallel), EP (Expert Parallel), and CP (Context Parallel) degrees over the supernode topology so that communication patterns match the network topology: parameter aggregation and All-to-All routing are confined as much as possible within high-speed interconnect domains, reducing cross-node communication bottlenecks.
Hybrid vocabulary parallelism. To address the memory pressure on the embedding layer caused by multilingual and multimodal mixed vocabularies, shard the vocabulary dimension across multiple devices so that no single device holds the complete vocabulary matrix.
Dynamic expert replication. Monitor the load heat of each expert during training, dynamically replicate hotspot experts, and redistribute token routing to mitigate the load imbalance inherent to MoE and prevent some devices from idling.
Double-sharded FSDP. On top of standard parameter and gradient sharding, apply finer-grained secondary sharding to optimizer states, further reducing resident memory and freeing room for long-sequence activations.
Moving visual encoding out of the training graph. Decouple the visual encoder’s forward computation from backbone training; encoding results are cached and supplied as inputs to the backbone, so the visual encoder’s activations and gradients consume neither training memory nor compute windows.
After stacking these optimizations, in long-sequence SFT tasks the FSDP configuration achieves roughly an 86% improvement in per-device throughput compared to a traditional DDP (Distributed Data Parallel) baseline. The logic behind this number is clear: DDP requires every device to hold a complete model replica, which is neither feasible nor efficient at very large parameter scales. Sharding plus multi-dimensional parallelism essentially assigns the three contradictions—“model too large, sequence too long, memory too small”—to the parallelism dimension best suited to resolve each one.
5. Takeaways for Developers
Synthesizing the above trends, several practical references emerge:
- Evaluate agent capability by long-horizon performance: High single-turn generation quality does not imply the ability to complete multi-step engineering tasks. When selecting models, build cross-step, real-world workflow tests.
- Unified multimodal architecture is the trend: If your business involves document understanding, interface generation, and chart production simultaneously, a natively unified processing path offers advantages in consistency and development cost.
- Limited memory does not mean you cannot train large models: With the FSDP + EP + CP combination and off-graph computation offloading, cards with modest memory can still support long-sequence training. The key is aligning the parallelism strategy with the hardware topology.
- Reserve a human review step for generative applications: Current models are fairly reliable in data accuracy and rigor of conclusions, but layout, details, and phrasing nuance still require human oversight.
The race in large models and agents has entered a stage of “system capability” competition, where model architecture, training data, reinforcement learning frameworks, and underlying compute scheduling are all indispensable. Understanding how these technical elements work together is more valuable in the long run than chasing single-point leaderboard rankings.
