Post-Training and Long-Horizon Agent Practices for a 3-Trillion-Parameter Model

    This article breaks down what a new generation of trillion-scale, million-token models signals for builders: compute is shifting from pre-training to post-training and reinforcement learning. It explains how to scale verifiable task environments, design context budgets for long-horizon runs, read coding-agent benchmark numbers critically, and combine sandboxes, scheduling, and task-level cost models to ship agents that reliably finish multi-step work. The framework is product-neutral and reusable across teams.

    1. Background: Beyond Parameter Count, the Focus Shifts to Agents That Actually Work

    In late October, a major model team released its new flagship model, entering the three-trillion-parameter range with support for million-token context. The emphasis is on code generation, 3D content creation, financial research, and long-horizon task execution. Unlike the earlier narrative of “bigger parameters, higher benchmark scores,” the core message of this generation is that more compute went into the post-training stage, reinforcement learning was extended to hundreds of downstream domains, and the training and inference infrastructure was reworked to match.

    For developers and enterprise users, the technical implication matters far more than the benchmark itself. The industry is moving from “single-turn answer quality” to “task bodies that keep running”: a model must not only answer correctly, but also finish the job reliably in multi-step, resource-constrained environments that require tool calls. This article abstracts a reusable engineering framework from that direction and does not evaluate or recommend any specific product.

    2. Post-Training: Why the Compute Center of Gravity Moved from Pre-Training to RL

    Pre-training sets the knowledge base and the ceiling of language ability, but “can it finish a task by following a process” is decided mostly by post-training. Post-training usually has two stages: supervised fine-tuning, which teaches output formats and basic patterns, and reinforcement learning, which uses verifiable reward signals to let the model try, fail, and converge on better policies under real constraints.

    Extending RL to hundreds of downstream domains essentially means expanding the reward signal from general preferences to automatically judgeable task outcomes—whether code passes tests, whether structured output satisfies a schema, whether a long task reaches a terminal state. The more such verifiable environments exist, the clearer the gains from RL, and the more they depend on supporting infrastructure. Four points typically need engineering attention:

    • Environment scale: task environments must be created, isolated, and recycled in batches to avoid cross-contamination;
    • Judgeable rewards: prefer automated verification to reduce the noise and latency of human labeling;
    • Sampling efficiency: the same batch of tasks needs multiple samples and comparisons, so inference throughput directly determines the training cycle;
    • Stability: monitor the reward distribution continuously during training to prevent policy collapse or reward hacking.

    A schematic training loop can be abstracted as:

    1. for step in range(total_steps):
    2. tasks = env_pool.sample(batch_size) # sample verifiable tasks
    3. trajs = policy.rollout(tasks) # multi-turn tool calls and execution
    4. rewards = verifier.score(trajs) # automated checks: tests/schema/terminal state
    5. policy.update(trajs, rewards) # policy update
    6. metrics.report(rewards, latency, cost) # monitor rewards and resource usage

    The point of this pseudocode is not syntax but four replaceable engineering interfaces: the environment pool, execution trajectories, the verifier, and monitoring. Any team that wants to reproduce similar capability can start by standardizing these four.

    3. Long Context: A Million Tokens Is More Than “Fitting It In”

    The engineering difficulty of million-token context concentrates in three places: memory and bandwidth, the complexity of attention computation, and the effectiveness of long-range information retrieval. Common approaches include paged key-value cache management, tiered caching and retrieval, and chunking long documents for on-demand recall. For the application layer, the more important concern is designing a “context budget”:

    • System prompts and tool definitions consume a fixed budget;
    • Conversation history and intermediate results need compression or summarization;
    • Retrieved snippets should carry source and priority so noise does not crowd out critical positions;
    • For very long tasks, use “rolling summary plus externalized key state” to preserve progress.

    A simplified budget allocation example:

    1. Total window = 1,000,000 tokens
    2. ├─ System/tool definitions ≈ 20,000
    3. ├─ Task state and summary ≈ 80,000
    4. ├─ Retrieval and references ≈ 300,000
    5. └─ Generation and intermediate reasoning ≈ 600,000

    It is worth stressing that long context does not mean stuffing all material in at once. What really affects success rate is information organization and state management: writing “current goal, completed steps, failure reasons, hypotheses to verify” explicitly into external state is what keeps the model from drifting off course in long-horizon tasks.

    4. Coding and Long-Horizon Agents: How to Read the Numbers

    In real, resource-constrained terminal environments, a coding agent must close the loop of compile, test, and fix, which makes such evaluations closer to production than static code generation. Three things matter when reading these results: whether the task is automatically judgeable, whether there is a dedicated test, and whether the baseline ran under the same environment configuration. A single-point difference (for example, within one percentage point) is usually not enough to support a conclusion and needs to be judged together with variance and task distribution.

    The value of internal long-horizon code testing lies in measuring the ability to “still converge after many rounds of modification.” Compared with the previous generation, an improvement in long-horizon scores is often more valuable than a single-point generation gain, because it maps directly to refactoring, bug fixing, and test completion in real development workflows. Engineering teams can build their own evaluation with metrics such as:

    • First-pass rate and final pass rate;
    • Average number of interaction turns and tool calls;
    • Self-repair success rate after failure;
    • Time and resource consumption per task.

    5. Inference and Infrastructure: Fast Mode, Sandboxes, and Scheduling

    Offering a “standard” and a “fast” version of the same model is usually achieved through different parallelism, batching, and caching strategies that raise throughput and cut time-to-first-token while preserving output quality. For interactive coding and real-time collaboration, throughput and latency often affect experience more than peak quality.

    Another key facility for supporting long-horizon tasks is the sandbox and scheduler: each task needs its own file system, network policy, dependency environment, and resource quota, while the scheduler handles queuing, priority, timeout recycling, and failure retries. A minimal viable sandbox policy can be described as:

    1. sandbox:
    2. isolation: container
    3. cpu: 2
    4. memory: 4GiB
    5. network: restricted
    6. timeout: 30m
    7. retry: 2
    8. artifacts: [logs, test_reports]

    In addition, an environment quality check platform ensures that the task environment itself is reproducible and uncontaminated, which is the precondition for trustworthy RL and evaluation results.

    6. Cost Structure and Selection Guidance

    Billing usually separates cached input, uncached input, and output, with the fast version priced at several times the standard one. When estimating cost, enterprises should build a “per-task cost model” rather than looking only at unit price:

    1. Cost per task ≈ input (cached/uncached) + output + tool calls and sandbox time + retry overhead

    For selection, a decision order can be followed: first clarify whether the task needs long-horizon execution and tool calls; then assess latency sensitivity; then run a small-scale comparison on your own task set; finally decide the mix of standard and fast versions. For batch offline tasks, prioritize throughput; for interactive scenarios, prioritize latency.

    7. Hosted Agent Services: Turning the Harness into Cloud Infrastructure

    Providing the execution framework that keeps agents running for long periods as a managed service is another focus of this generation. Its value is standardizing session management, tool gateways, sandbox orchestration, logging and monitoring, and failure recovery, supporting around-the-clock long tasks and multi-agent collaboration. When adopting it, enterprises should pay attention to task isolation and permission boundaries, audit logs, artifact storage, and observability (log services, monitoring alerts, tracing). If using the general capabilities of Baidu AI Cloud, the sandbox can run on a container platform, artifacts can be stored in object storage, a message queue can decouple tasks, and a logging and monitoring system can provide observability, so model capability can be engineered quickly.

    8. Conclusion

    The real signal of this model upgrade is that the industry is directing post-training compute toward “agent environments that can keep working.” For developers, the reusable methodology is: build an environment pool around verifiable tasks, ensure long-horizon stability with externalized state and a context budget, guarantee engineering reliability with sandboxes and scheduling, and make selection with a per-task cost model. The model is only one part; the infrastructure and evaluation system around it determine whether delivery can be stable in the end.