How Trillion-Parameter Open Models Are Built: Post-Training RL and Long-Horizon Agent Practices

    This article analyzes how a trillion-parameter open-weight model is built around post-training reinforcement learning and long-horizon agents. It covers the shift from pre-training to post-training, the systems engineering required for large-scale RL—including training frameworks, sandboxed execution, scheduling, and environment quality checks—and the evaluation of long-horizon agent capabilities. It also examines API pricing and cost optimization, hosted agent services, the tradeoff between open weights and safety diffusion, and practical lessons for teams building production agent applications.

    1. From the “Pre-Training Race” to the “Post-Training Race”: A New Paradigm for Model Capability Gains

    Over the past two years, the competitive focus in the large-model industry has shifted noticeably. During the pre-training stage, the ceiling of using more compute and data to gain basic capabilities has gradually become apparent. What increasingly determines how a model performs on real tasks is the post-training stage—specifically, the deep combination of supervised fine-tuning (SFT) and reinforcement learning (RL).

    Recently, one model team released its most capable trillion-parameter model, supporting a million-token context window and placing emphasis on code generation, 3D creation, financial research, and long-horizon agents. From a technical-route perspective, the core change in this upgrade is not simply a larger parameter count. Rather, it is a substantial increase in post-training compute and the expansion of reinforcement learning to hundreds of downstream domains.

    This change sends a clear industry signal: model differentiation is shifting from “basic intelligence” to “sustained execution capability in real work environments.”

    2. Systems Engineering for Large-Scale RL

    Expanding reinforcement learning from a single domain to hundreds of downstream domains is far from simply stacking reward functions. It requires systematic infrastructure reconstruction. According to public information, the changes cover several key layers, and these layers also apply to any team building its own RL training system.

    2.1 Refactoring the RL Training Framework

    Traditional RLHF frameworks are usually designed for a single alignment objective. When tasks expand to hundreds of domains such as code, tool calling, and long-horizon planning, several issues must be addressed:

    • Heterogeneity of reward signals: Code tasks can be verified with unit tests, while rewards for research-oriented tasks often need a hybrid design based on rules or LLM-as-Judge evaluation.
    • Trajectory management: The interaction trajectory of a long-horizon task may contain dozens of tool calls. Storage, replay, and truncation strategies for trajectories directly affect training stability.
    • Sample efficiency: Multi-domain joint training requires carefully designed curricula and sampling ratios to avoid capabilities trading off against one another.

    2.2 Sandboxed Execution Environments

    Reward verification for code and agent training depends on real execution. This means the training pipeline must include:

    1. ┌─────────────────────────────────────┐
    2. │ RL training main loop │
    3. ├─────────────────────────────────────┤
    4. │ Policy model → generate actions/code│
    5. │ ↓ │
    6. │ Sandbox cluster (container isolation, resource quotas) │
    7. │ ↓ │
    8. │ Execution results → test-case validation → reward signal │
    9. │ ↓ │
    10. │ Reward feedback → PPO/GRPO policy update │
    11. └─────────────────────────────────────┘

    Sandbox infrastructure must guarantee three properties: isolation (preventing malicious or incorrect generated code from affecting the host), consistency (the same task runs in an identical execution environment across different nodes), and high throughput (RL requires massive rollouts, and sandbox scheduling often becomes the bottleneck). A common practice is to use a container platform to launch one-time execution environments in batches, distribute task artifacts through object storage, and collect execution records through a logging service.

    2.3 Scheduling Systems and Environment Quality Checks

    Uneven quality across hundreds of training environments is a hidden killer for RL training. Industry best practices include:

    • Building an environment-quality scoring platform to automatically detect issues such as ambiguous task descriptions and rewards that can be gamed through reward hacking.
    • Using a scheduling system to dynamically balance training ratios across domains, monitor reward curves for each domain, and promptly retire degraded environments.

    3. Long-Horizon Agent Capabilities: Evaluation Is Harder Than Training

    In this upgrade, code and long-horizon agents are the most prominent directions. On a coding-agent benchmark oriented toward real terminal environments, the new model’s score is already close to the level of the strongest current closed-source models. What developers should note here is the evaluation methodology itself.

    3.1 End-to-End Evaluation in Real Restricted Environments

    Unlike traditional code-completion evaluation, the new generation of evaluation emphasizes completing complex tasks in resource-constrained real terminal environments, with dedicated validation tests for each task. This type of evaluation is closer to real work scenarios: the model must autonomously explore the file system, install dependencies, run tests, and iteratively fix issues based on failure information.

    3.2 Long-Horizon Task Evaluation

    Internal long-horizon code tests show that the model has improved clearly compared with the previous generation. The difficulty of long-horizon tasks lies in error accumulation: a small early deviation can be amplified exponentially after dozens of execution steps. General techniques for improving long-horizon capabilities include:

    • Decoupling planning from execution: first generate an explicit task plan, then execute and validate it step by step.
    • Context compression: although a million-token context alleviates forgetting, structured summaries of historical trajectories can still significantly improve efficiency and accuracy.
    • Self-reflection mechanisms: force the model to review goals and detect drift at key checkpoints.

    4. Inference Services and Cost Structure: A Developer’s View

    For API pricing, the model uses typical tiered billing: cached input is priced far below uncached input, and output is priced highest. This pricing structure has direct implications for application architecture:

    1. Make good use of prompt caching: place long, stable system prompts and knowledge-base prefixes at the front of requests. After cache hits, input cost can be reduced by about an order of magnitude.
    2. Optimize for output-cost dominance: the unit price of output tokens is several times that of input. Controlling redundant output—for example, by requiring structured and concise response formats—is the first lever for cost optimization.
    3. Use high-speed versions to trade price for time: the same-capability model offers a version with 2–3x output speed at about 2x the price of the standard version. For interactive scenarios such as an IDE coding assistant, latency is experience and worth paying for; for offline batch tasks, the standard version is more economical.

    5. Hosted Agent Services: The Industry Trend Toward Agent Infrastructure

    In addition to the model API, the team also launched a hosted agent service, providing an execution framework that supports long-running agents as cloud infrastructure. It supports 24/7 long-horizon tasks and multi-agent collaboration.

    This trend deserves attention from all technical decision-makers. Building a production-grade long-horizon agent is far more than calling a model API. It also requires solving:

    • State persistence: tasks run across hours or even days, requiring reliable state storage and checkpoint recovery mechanisms.
    • Tool sandbox governance: permission boundaries and auditing for file-system and network access.
    • Multi-agent orchestration: task decomposition, communication protocols between sub-agents, and conflict resolution.
    • Observability: trajectory tracing, cost accounting, and anomaly alerts, usually built on general cloud capabilities such as message queues, container platforms, and monitoring and alerting.

    Moving these harness capabilities down into platform services means enterprises can use “serverless agents” in the same way they use serverless compute—focusing on business logic without building execution infrastructure themselves.

    6. Open Weights and Safety Diffusion: The Tradeoff

    Notably, the model’s full weights are planned to be opened approximately ten days after release. This “product first, open source later” cadence reflects a difficult tradeoff:

    • Rapid openness benefits ecosystem building and research reproducibility, expanding community influence.
    • Delayed openness leaves a window for safety evaluation and abuse-risk testing. In particular, weights whose capabilities approach top closed-source models require a more cautious evaluation process before diffusion.

    Common industry practices include pre-release red teaming, dangerous-capability evaluations such as probing for cyberattack and biohazard-related capabilities, and accompanying responsible-use guidelines. Enterprises planning to deploy open weights should likewise establish internal safety evaluation and access auditing mechanisms.

    7. Conclusion

    Three judgments with broad value for technical teams can be drawn from this release:

    1. The marginal returns from post-training compute are now exceeding those from pre-training. RL infrastructure—sandboxes, scheduling, and environment-quality platforms—is the new core competitiveness.
    2. The key to long-horizon agent capability lies in engineering, not a single model capability point. Building evaluation systems and ensuring execution-environment reliability are equally important.
    3. Agents are becoming infrastructure. State management, sandbox governance, and observability form a new layer of the technology stack.

    For developers planning to build their own agent applications, regardless of which model service they choose, the architecture principles above—cache-friendly prompt design, cost-aware model selection, sandboxed tool execution, and reliable state persistence—are best practices that can be implemented immediately.