How Trillion-Parameter Models Are Built: Scaling Reinforcement Learning and Long-Horizon Agent Capabilities
A new generation of trillion-parameter models highlights a shift in frontier AI development: post-training compute and runtime infrastructure are becoming as important as pretraining scale. This article examines large-scale reinforcement learning across hundreds of domains, realistic coding evaluations, long-horizon Agent infrastructure, sandboxing and recovery mechanisms, multi-agent orchestration, prompt caching, and the cost–latency trade-offs involved in deploying these systems.
1. From Parameter Scale to Post-Training Compute
A team recently released its most capable model yet, with roughly 3 trillion parameters and support for context windows of up to one million tokens. The model focuses on code generation, 3D content creation, financial research, and long-horizon Agent tasks. It was also accompanied by a faster version that reportedly maintains a similar level of intelligence while delivering approximately 2–3 times higher output speed.
The most significant change in this upgrade is not the parameter count itself, but the substantial increase in post-training compute. Reinforcement learning (RL) has been expanded across hundreds of downstream domains, allowing the model to improve continuously in realistic task environments through large-scale joint training.
This shift requires a broad set of system-level improvements, including:
- RL training infrastructure: Supports parallel training across hundreds of domains while maintaining consistent and stable policy updates.
- Long-context inference optimization: Keeps latency under control during both prefill and decoding for inputs containing up to one million tokens.
- Sandbox infrastructure: Provides Agents with isolated, replayable, and parallel execution environments.
- Scheduling and environment-quality systems: Allocates resources across large numbers of training and inference tasks while validating data and environment quality.
For developers, the message is clear: beyond pretraining, investment in post-training compute is becoming a key factor in separating model capabilities—especially for Agents that must perform work continuously rather than simply answer individual prompts.
2. How to Evaluate and Interpret Coding Intelligence
In coding-related evaluations, the model achieved a score of 65.7% on a benchmark based on real terminal environments, placing it in the same general tier as leading closed-source models. On the team’s internal long-horizon coding test, its score increased from 55.95% for the previous generation to 61.2%.
Two principles are essential when interpreting these results.
1. The evaluation environment must be realistic and resource-constrained
Traditional code-completion benchmarks can become unreliable when benchmark data has leaked into training data. By contrast, terminal-environment evaluations require an Agent to set up the environment, install dependencies, debug across multiple steps, and verify the result inside a restricted command-line environment. Each task includes dedicated checks, making the evaluation closer to an actual software development workflow.
2. Long-horizon performance is a core dimension
Real engineering tasks often take tens of minutes or several hours. They may involve modifying files, running tests, tracing errors, and repeating the process several times. Higher long-horizon scores primarily indicate better control over cumulative errors during multi-step decision-making.
For developers selecting or building a coding Agent, this suggests prioritizing end-to-end tasks with execution feedback instead of evaluating only one-turn generation quality. A simple self-test could use the following workflow:
# Use "fix a repository with failing unit tests" as the standard task1. Initialize an isolated container environment with network and resource limits2. Inject an open-source sample project with known defects3. Run the Agent: allow it to read code, run tests, modify code, and run tests again4. Measure: task completion rate / average number of steps / human interventions / token usage
Task completion rate reflects intelligence, while step count and token usage indicate efficiency. The number of human interventions reflects autonomy. Only by considering all three can developers reach a relatively objective conclusion.
3. Long-Horizon Agents: Infrastructure Challenges Beyond Conversation
Another major focus of the upgrade is the release of a cloud-based task framework, or Harness, designed to support long-running Agent tasks and multi-agent collaboration. It supports tasks that operate continuously around the clock, indicating that the industry is converging on an important conclusion: Agent capabilities depend not only on the model, but also on the runtime infrastructure.
A reliable long-horizon Agent system typically needs to address the following challenges.
1. Context and memory management
A one-million-token context window helps reduce forgetting, but long-running tasks can still exceed the context limit or make costs difficult to control. A common approach is a layered memory architecture:
# Pseudocode: layered memory managementclass AgentMemory:working_set: list # Working memory within the current task windowepisodic: VectorStore # Searchable vectorized archive of key eventsscratchpad: KVStore # Structured intermediate state: plans, variables, file pathsdef compact(self):# Periodically summarize working memory and write important facts to episodic memory...
2. Sandboxing and security boundaries
Long-running Agents need isolated execution environments. Container-level isolation, filesystem snapshots, network allowlists, and resource quotas are all essential. Without these controls, a single uncontrolled command could cause irreversible damage.
3. Failure recovery and observability
For systems that run continuously, failure is a normal condition rather than an exception. Production systems need to provide:
- Persistent, replayable event logs for every operation;
- Checkpoint and restore support for resuming interrupted tasks;
- Integration with monitoring and alerting systems so abnormal behavior—such as repeated loops or unauthorized operations—can trigger an automatic circuit breaker.
4. Multi-agent coordination protocols
Multi-agent systems need clearly defined roles, message formats, and conflict-resolution mechanisms. Otherwise, Agents may overwrite one another’s outputs or enter infinite conversation loops. Common orchestration patterns include a master–worker architecture, with an Orchestrator coordinating Workers, and a shared-state blackboard model.
4. Cost and Speed: Engineering Trade-Offs in Inference Services
The model’s API uses a typical tiered pricing structure: cached input, uncached input, and output are priced at progressively higher levels. The faster version costs roughly twice as much in exchange for 2–3 times higher output speed. These choices reflect two general engineering concerns.
1. Prompt caching
Long-context applications, such as codebase question answering and long-document analysis, often reuse large input prefixes across multiple requests. Cache hits can reduce the cost of these repeated sections by roughly an order of magnitude.
Prompt design should therefore follow the principle of stable prefix plus dynamic suffix. System instructions, codebase indexes, and other stable content should be placed in the prefix to maximize cache reuse, while the user’s real-time input should be placed at the end.
2. Choosing between speed and quality
The faster version represents the latency benefits of inference optimizations, such as speculative decoding, more aggressive quantization, or alternative scheduling strategies. A practical selection strategy is:
- Interactive scenarios—including IDE completion and real-time conversations: prioritize the low-latency version.
- Background batch processing—including overnight code reviews and bulk report generation: prioritize the standard version to reduce costs.
5. Conclusion
This upgrade illustrates how the focus of large-model competition is changing.
First, large-scale post-training RL enables models to achieve verifiable improvements across hundreds of real-world domains. Second, Agent infrastructure is becoming a foundational capability in its own right. Long-horizon task frameworks, sandboxes, schedulers, and environment-quality checks are becoming just as important as the model itself.
For development teams, regardless of which model they choose, four components provide a broadly applicable foundation for long-running Agent applications:
- Stable-prefix caching;
- Layered memory;
- Isolated sandboxes;
- Replayable event logs.
As model weights become increasingly available for open use, private deployment and cloud hosting are likely to coexist, giving organizations of different sizes more flexible implementation paths.
