Open-Source Trillion-Parameter Models Released in the Same Week: Technical Lessons
Two open-source trillion-parameter models landed in the same week, both pushing context windows to the 1M token scale while taking complementary technical paths. This article breaks down the underlying architecture behind them: the mathematics of Multi-head Latent Attention (MLA) for compressing KV Cache, the principles of orthogonalization-based optimizers for training throughput, and the scheduling logic of multi-agent clusters for long-horizon engineering tasks. It also outlines a cloud architecture pattern built on Baidu AI Cloud for deploying this class of models, giving readers a complete view from low-level principles to cloud-side design.
This week offered a rare case worth studying closely in the evolution of large language models. Within seven days, the open-source community saw two trillion-parameter models released back to back. Both pushed the context window to the 1M token scale, and their underlying technical routes turned out to be strongly complementary. The synchronized releases challenge the assumption that vendors in China’s AI ecosystem simply ship homogeneous, competing products, and instead point to a pattern of technical division of labor and co-evolution.
Strip away the launch-day framing and read the two technical reports closely, and the real story sits in how the two core algorithmic mechanisms reference and validate each other. Rather than comparing parameter counts, this article goes into the architecture and examines three dimensions: attention compression, the mathematics of training optimizers, and multi-agent cluster scheduling. It then looks at how to land models of this scale efficiently on the infrastructure of Baidu AI Cloud.
1. Breaking the Compute Bottleneck: The Math Behind Multi-head Latent Attention (MLA)
One of the biggest obstacles to deploying large models is inference cost, and the core bottleneck in inference cost is how KV Cache consumes GPU memory. Under standard Multi-Head Attention (MHA), KV Cache grows explosively as context length increases linearly. At the 1M token level, KV Cache alone can occupy hundreds of gigabytes of memory, which makes long-context inference economically unfeasible.
The Multi-head Latent Attention (MLA) mechanism proposed earlier by one open-source model offers an elegant dimensionality-reduction approach. The core idea is not to crudely cut the number of attention heads, but to apply low-rank matrix factorization, projecting high-dimensional Key and Value vectors into a low-dimensional latent space. During inference, the system only needs to cache this heavily compressed low-dimensional latent vector, shrinking KV Cache by an order of magnitude.
The other open-source model released this week, the one focused on agent clusters, adopted MLA directly in its latest architecture. That is not a coincidence but a technical necessity. For a cluster system that must process the context state of hundreds of agents in parallel, an uncompressed KV Cache per agent would exhaust memory almost instantly. It is precisely MLA’s extreme compression of cache size that makes large-scale parallel agent inference engineering-feasible.
From an implementation standpoint, the compression adds extra matrix reprojection computation, a classic trade of compute for storage. Given the current hardware environment, where GPU compute is relatively abundant but memory capacity is constrained, this trade-off is highly cost-effective. The core compression logic can be abstracted roughly as follows:
# Pseudocode: illustrating the core idea of latent vector compression and cachingclass LatentAttention(nn.Module):def __init__(self, hidden_dim, latent_dim):super().__init__()# Down-projection matrix: compress high-dimensional input into a low-dimensional latent spaceself.down_proj = nn.Linear(hidden_dim, latent_dim, bias=False)# Up-projection matrices: restore the dimensions required for computationself.up_proj_k = nn.Linear(latent_dim, hidden_dim, bias=False)self.up_proj_v = nn.Linear(latent_dim, hidden_dim, bias=False)def forward(self, x, cached_latent=None):if cached_latent is None:# Cache only the compressed low-dimensional vector to save GPU memorylatent = self.down_proj(x)cached_latent = latentelse:latent = cached_latentk = self.up_proj_k(latent)v = self.up_proj_v(latent)return self._compute_attention(q, k, v), cached_latent
2. Raising Training Throughput: Stability and Efficiency of High-Dimensional Optimizers
If MLA addresses memory pressure on the inference side, efficiency on the training side depends on rethinking the optimizer. At the trillion-parameter scale, the traditional Adam optimizer must maintain both first-order and second-order moments, which brings substantial memory overhead and communication bottlenecks.
Earlier work behind the other model released this week validated at scale a new class of optimizer based on matrix orthogonalization, commonly referred to in the industry as Muon-like optimizers. The core of the approach is to orthogonalize the momentum matrix using Newton-Schulz iteration, keeping the gradient matrix well-conditioned during parameter updates and avoiding gradient explosion or vanishing during training.
The result is roughly a doubling of efficiency for the same amount of training: convergence that previously required 100 trillion tokens of training data can now be reached with 50 trillion. The deep-reasoning model released this week explicitly wrote this class of optimizer into its core training recipe in its technical report. That marks a shift: reducing training cost no longer depends on simply adding GPUs, but on more refined mathematical optimization.
This open sharing and mutual validation of low-level algorithms breaks the earlier pattern of vendors building in isolation. One vendor cleared the inference-side obstacle through latent-space compression; the other lowered the training-side barrier through an orthogonalized optimizer. Combined, they substantially expand the feasibility envelope for trillion-parameter models across the full lifecycle from training to inference.
3. From Single Agent to Cluster: A Coordination Architecture for Long-Horizon Complex Tasks
Once the low-level compute and training-efficiency problems are addressed, the next direction for large models is complex task execution at the application layer. The agent-cluster model released this week moves the capability from single-point tool calling to cluster-level coordination. The system supports hundreds of agents working in parallel and can autonomously decompose long-horizon engineering tasks.
The hard part of this architecture is task orchestration and state synchronization. A complex engineering task, such as a large-scale codebase refactor, must be dynamically decomposed into subtasks and assigned to agents in different roles, such as architect, coder, and tester. That demands a scheduling framework with very high concurrency and fault tolerance. Drawing on the relevant general capabilities of Baidu AI Cloud, we can design a robust cloud-side agent cluster architecture:
- Containerized elastic compute layer: Use a container platform to provide a GPU resource pool, assigning each parallel agent an isolated inference sandbox and enabling second-level elastic scaling.
- High-speed messaging and task bus: Introduce a message queue service as the communication hub between agents, passing task decomposition instructions and intermediate results asynchronously to avoid the performance loss caused by synchronous blocking.
- Context persistence and sharing: Use object storage and a high-performance caching service to persist 1M-token context state and the latent vectors compressed by MLA, so agents can quickly restore their state after a crash during a long-horizon task.
- Full-chain observability: Connect logging and monitoring/alerting services to track token consumption, inference latency, and task completion across hundreds of agents in real time.
4. The Co-Evolution Pattern and What Comes Next
What stands out about this week’s burst of releases is not a single model’s parameter breakthrough, but the “clear division of labor, no self-defeating competition” pattern on display in the open-source community. When technical resources stop going into low-level duplication and instead focus on each team’s deep technical areas while reusing each other’s low-level breakthroughs, the reach of the whole ecosystem scales exponentially.
For developers and enterprises, full local deployment of a trillion-parameter open-source model is not a rational default. A better strategy is to use mature cloud AI infrastructure, accessing these open-source results through model hosting and inference acceleration on Baidu AI Cloud, either via API calls or elastic dedicated instances, and to concentrate effort on upper-layer agent workflow design and data fine-tuning for vertical scenarios. As long-context and multi-agent techniques converge further, more complex engineering tasks will be resolved in automated closed loops, and the foundation for that is exactly the technical consensus and coordination the open-source community has reached at the architecture level.
