How Trillion-Parameter Models Are Built: Post-Training RL and the Evolution of Long-Horizon Agents
The next generation of large language models is shifting its competitive focus from scaling pretraining data and parameters to scaling post-training reinforcement learning. This article examines how RL across hundreds of domains, long-context reasoning, agent evaluation, inference optimization, and managed agent infrastructure are shaping practical model capabilities and deployment economics.
1. From Parameter Scaling to Post-Training: A New Path to Better Model Capabilities
A model provider recently released its most capable model to date, with roughly three trillion parameters and support for a context window of up to one million tokens. The model emphasizes code generation, 3D creation, financial research, and long-horizon agent tasks. A high-speed version was also introduced, reportedly delivering output speeds approximately two to three times faster.
Regardless of the specific product, the release highlights a broader trend that developers should pay attention to: the center of gravity for improving large language models is shifting from pretraining—scaling data and parameters—to post-training, where fine-tuning and alignment are applied at much greater scale.
Pretraining determines what a model knows, while post-training increasingly determines what it can do. The marginal returns from pretraining are declining as high-quality public data becomes harder to obtain and simply adding more parameters produces progressively smaller gains. By contrast, large-scale reinforcement learning allows models to repeatedly try, fail, and improve in realistic task environments. This has become a major factor separating leading models from the rest of the field.
2. Scaling Reinforcement Learning Across Hundreds of Domains
Traditional large-model alignment workflows have focused primarily on reinforcement learning from human feedback (RLHF), with an emphasis on conversational quality, safety, and a relatively limited set of capabilities. Newer approaches expand reinforcement learning across hundreds of downstream domains, including code repair, mathematical reasoning, tool use, and multi-step planning.
This approach introduces several major challenges:
Reward design
Reward functions can vary significantly across domains. Code tasks can receive objective rewards from unit tests, while open-ended research tasks may require a hybrid reward mechanism based on evaluator models or multidimensional scoring.Environment construction
Reinforcement learning requires large numbers of interactive training environments. Examples include code sandboxes with complete dependencies, verifiable mathematical provers, and simulated tool APIs. The quality of these environments directly limits the potential of RL training.Training stability
Jointly training across hundreds of domains can create conflicts between tasks and encourage reward hacking. Careful curriculum design and task-sampling weights are needed to prevent these problems.
To support this type of large-scale joint training, the provider reportedly made systematic improvements to its RL framework, long-context inference engine, training efficiency, sandbox infrastructure, scheduling system, and environment-quality inspection platform. This suggests that competition in post-training is fundamentally also competition in infrastructure.
A typical multi-domain RL training pipeline might look like this:
# Illustrative pseudocode: multi-domain RL training loopfor batch in task_sampler.sample(domains=["code", "math", "agent", "research"]):trajectories = policy.generate(batch.prompts, max_context=1_000_000)rewards = [verifier.evaluate(t) for t in trajectories] # Sandbox verificationadvantages = compute_group_advantage(rewards) # Relative advantage within a grouppolicy.update(trajectories, advantages)env_checker.audit(batch) # Check environment quality and prevent reward leakage or task degradation
3. Long-Horizon Agents: Capability Gains Driven by Evaluation
Coding and long-horizon agents were among the most visible areas of improvement in this upgrade. In a programming-agent benchmark that simulates realistic, resource-constrained terminal environments, the model achieved a score of 65.7%, placing it in the same general tier as leading closed-source models. On the provider’s internal long-horizon coding evaluation, its score increased from 55.95% in the previous version to 61.2%.
The value of these evaluations is that they test more than single-turn code completion. They measure multi-step task completion over extended execution periods. An agent may need to inspect code in a terminal, install dependencies, run tests, identify failures, and iteratively implement fixes.
Improving this type of capability generally requires three elements to work together:
- Reliable tool use: The model must generate accurate commands, parse command output, and handle errors. A mistake at any stage can cause the entire task to fail.
- Strategic context management: A one-million-token context window allows an agent to retain a much longer execution history, but compressing, summarizing, and retrieving the most relevant information remains an important engineering challenge.
- Failure recovery: Errors are inevitable in long-running tasks. The model must learn to backtrack, choose alternative paths, and divide tasks into smaller parts rather than repeatedly falling into the same failed loop.
4. Inference Speed and Cost: The Engineering Behind Faster Models
The high-speed version reportedly increases output speed by approximately two to three times while maintaining the same level of intelligence. Improvements of this kind usually come from a combination of optimizations at multiple layers:
- Inference-engine optimization: More efficient KV-cache management, continuous batching, and operator fusion.
- Speculative decoding: A smaller model drafts tokens while the larger model verifies them, accelerating generation without reducing output quality.
- Parallelism strategies: Coordinated scheduling of tensor parallelism, pipeline parallelism, and expert parallelism.
- Cache-aware pricing: Input tokens are divided into cached and uncached tiers for billing—for example, 1.3 yuan per million cached tokens, 13 yuan per million uncached tokens, and 68 yuan per million output tokens.
This type of tiered pricing encourages developers to design reusable context structures. Stable prefixes, such as system prompts and long documents, can be placed at the beginning of requests to maximize cache hits and substantially reduce costs.
5. Managed Agents: Agent Infrastructure as a Service
Another important development is the emergence of managed agent services. Providers are offering the execution frameworks, or agent harnesses, required to keep agents running for long periods as cloud infrastructure. These services are designed to support 24/7 long-horizon tasks and collaboration among multiple agents.
The underlying architecture offers useful guidance for enterprise developers. A production-grade long-horizon agent system typically includes:
- Task orchestration layer: Decomposes high-level goals, assigns subtasks, and manages execution state.
- Sandbox execution layer: Provides isolated environments for code execution, file-system access, and network operations.
- Persistent state layer: Uses message queues, object storage, and databases to preserve task context and support resumable execution.
- Observability layer: Provides logging, monitoring, alerting, and distributed tracing to improve the reliability of long-running tasks.
6. Conclusion
This release illustrates three broad conclusions that are relevant to developers:
- Scaling post-training reinforcement learning is becoming a major dividing line in model capability.
- Long-horizon agent performance is emerging as a practical test of a model’s real-world value.
- Inference efficiency and cost optimization—including cache-friendly request design—directly affect deployment economics.
For enterprises planning to build agent applications, understanding these trends and combining them with general cloud capabilities such as container platforms, object storage, and message queues is likely to be a valuable area of investment. The provider has also stated that the complete model weights will be released in the near future, which could further accelerate development across the open-source ecosystem.
