How Trillion-Parameter LLMs Are Built: RL Post-Training at Scale and Long-Horizon Agent Engineering
A recent trillion-parameter-class model upgrade highlights a major shift in LLM development: capability gains now come less from scaling pretraining and more from massive post-training, especially reinforcement learning across hundreds of downstream domains. This article breaks down the infrastructure behind large-scale joint RL training, the engineering challenges of long-horizon agents, the trade-offs between inference cost and speed, and what these trends mean for developers and enterprises choosing models and managing AI costs.
From Scaling Parameters to Scaling Post-Training: A Paradigm Shift in LLM Capability
A major LLM team recently released its most capable model to date—a 3-trillion-parameter model supporting a million-token context window—with the upgrade focused on code generation, 3D creation, financial research, and long-horizon agent tasks. A companion “high-speed” version delivers roughly 2–3x faster output at the same intelligence level. This “same capability, two tiers” release strategy itself reflects the industry’s ongoing effort to balance inference cost against user experience.
Notably, the most significant change in this generation isn’t a larger pretraining run, but a substantial increase in post-training compute and the extension of reinforcement learning to hundreds of downstream domains. This represents an important paradigm shift: as pretraining data scales approach their limits, marginal capability gains increasingly depend on high-quality post-training—particularly systematic investment in the RL stage.
From a technical perspective, reinforcement learning plays three roles in post-training:
- Capability alignment: reward signals guide the model toward behaviors that match human preferences or task objectives;
- Capability emergence: on verifiable tasks like coding, math, and reasoning, RL significantly amplifies the base model’s potential;
- Generalization at scale: extending RL from a single domain to hundreds of downstream scenarios requires reward modeling, environment construction, data allocation, and supporting systems—this is the core engineering challenge of this model generation.
Systemic Infrastructure Upgrades for Large-Scale Joint Training
Running RL training stably across hundreds of domains takes far more than algorithmic innovation—it demands a re-architected infrastructure stack. Based on widely shared industry practice, these upgrades typically span several layers:
1. Production-grade RL training frameworks
Traditional RLHF pipelines are mostly serial, offline “generate–evaluate–update” workflows. Large-scale multi-domain RL requires generation, reward computation, and policy updates to run highly in parallel. The framework must support asynchronous sampling, elastic scaling, and fine-grained GPU scheduling so that the generation stage doesn’t become a throughput bottleneck.
2. Long-context inference optimization
A million-token context window places extreme demands on KV cache management and attention computation. Common optimizations include:
- PagedAttention-style paged memory management to reduce cache fragmentation;
- Operator fusion and sparsification of attention kernels;
- Prefix caching to reuse computation for repeated system prompts.
3. Sandboxes and execution environments
For coding and agent tasks, RL reward signals come from executing the model’s output in real environments. This requires large-scale, well-isolated, quickly resettable sandbox infrastructure. Containerization and microVM technology are typical choices here, with the key tensions being startup speed, resource isolation, and security.
4. Environment quality checking and scheduling
The quality of hundreds of RL environments varies widely. Without an automated environment quality-check platform, low-quality or exploitable tasks lead to reward hacking. The accompanying scheduler must dynamically allocate compute based on domain difficulty and sampling efficiency.
Long-Horizon Agents: From “One-Shot Answers” to 24/7 Work
Another focus of this upgrade is long-horizon agent capability. In real-terminal coding benchmarks, the model scored 65.7%, approaching the level of leading closed-source models; on internal long-horizon coding tests, its score rose from 55.95% in the previous generation to 61.2%.
A long-horizon agent is a system that can run continuously for hours or even days, completing multi-step complex tasks. The main technical challenges include:
- Context management: when tasks exceed the context window, memory compression, external storage, and state snapshots are needed;
- Error recovery: over long tasks, the cumulative probability of single-step failure is high, requiring checkpoint rollback and self-healing retries;
- Multi-agent collaboration: task decomposition, role assignment, and message protocols allow multiple agents to advance subtasks in parallel.
Notably, the team also opened up its agent execution framework—which supports long-running 24/7 tasks and multi-agent collaboration—as a managed service. This signals a broader trend: competition among model providers is extending from “the model itself” to “agent runtime infrastructure.” Whoever can keep models working continuously and reliably will control the entry point in the agent era.
Balancing Inference Cost and Speed: Cache Pricing and the High-Speed Tier
For API pricing, the model uses a typical tiered cache billing structure: cached-hit input costs 1.3 RMB per million tokens, uncached input 13 RMB, and output 68 RMB; the high-speed version costs roughly 2x the standard version. This structure has direct practical implications for developers:
Optimization examples:1. Put stable system prompts and few-shot examples first and keep themfixed to maximize prefix cache hit rates—input costs can drop ~90%;2. Choose the high-speed version for latency-sensitive scenarios(e.g., real-time coding assistants), trading ~2x price for 2–3x throughput;3. Use the standard version for batch offline tasks (e.g., document analysis)to prioritize cost control.
What This Means for Developers and Enterprises
From this round of upgrades, several takeaways stand out for technical teams:
- Post-training compute is the new competitive frontier—when evaluating models, look beyond parameter count to the depth of RL investment in your target domains;
- Agent infrastructure matters as much as model capability—the reliability of long-horizon tasks often depends on sandboxes, scheduling, and memory management rather than raw model intelligence;
- Cache-friendly prompt design should be part of your engineering standards, since it directly affects your inference bill;
- Validate models in your own domain by prioritizing real-world task completion rates over static knowledge benchmarks.
Competition among LLMs has moved from the “parameter arms race” into the “systems engineering” era. Understanding these underlying dynamics is what enables more rational decisions in technology selection and cost control.
