Hundred-GPU Clusters Are Closing In on the Cost-Performance Frontier for Agent Training
A recently published long-horizon agentic reinforcement learning recipe shows that a 64-accelerator cluster can train a capable coding agent in fewer than five days using a 300B-class foundation model. The approach combines full-parameter language-model RL, carefully filtered environments, algorithms designed for long and stale rollouts, and a shared training-and-evaluation harness—achieving frontier-level benchmark performance at a substantially lower per-task cost. This article distills the methodology for teams seeking to reproduce similar results on their own clusters.
1. Why Long-Horizon Agentic RL Is So Expensive and Difficult
Programming and terminal-based agents have improved rapidly on real-world software engineering tasks. However, cost remains a persistent challenge. A single task can cost surprisingly much when run with leading reasoning models, while academic labs and smaller teams often lack the compute required to reproduce frontier-level results.
A research team recently published a long-horizon agentic reinforcement learning recipe that offers a useful reference point. Using only 64 accelerators and fewer than five days of training, the team trained a coding agent on a roughly 300B-parameter foundation model. The resulting system reached a level comparable to leading commercial reasoning models, achieving approximately 46.2% Pass@1 on a terminal-task benchmark. Its per-task cost was more than 30 times lower than that of a comparison model operating at its highest reasoning intensity. More importantly, the team released the complete training recipe.
This article abstracts the reusable methodology without focusing on specific products or model names, providing practical guidance for developers deploying similar systems on their own clusters.
2. Start with a Strong Foundation Model: The Trade-Offs of Full-Parameter RL
The approach does not begin with pretraining from scratch. Instead, it starts from a sparse mixture-of-experts (MoE) foundation model with approximately 321B total parameters and about 17.4B parameters activated per token, then applies full-parameter reinforcement learning:
- All language-model parameters are trained, covering roughly 320B parameters, including the multi-token prediction (MTP) layers, to fully leverage the foundation model’s capabilities.
- The vision tower and sparse-attention index module are frozen, preventing noisy gradients from disrupting multimodal and retrieval-related pathways during text-only tasks.
The rationale is that agent capability primarily depends on long-horizon decision-making and tool use on the language side. The vision and indexing modules are not the main bottlenecks for terminal and programming tasks. Freezing them can therefore reduce memory requirements and improve training stability.
For teams with limited resources, this is a cost-effective starting point: concentrate optimization on the language side while preserving components that are not central to the target workload.
3. Three Critical Components
According to the team, three elements are central to achieving near-frontier training efficiency with a cluster in the hundred-accelerator range.
3.1 Carefully Filtered Agentic RL Environments
RL sample efficiency depends heavily on the task-difficulty distribution. Tasks that are too easy provide little learning signal because the model is almost always correct. Tasks that are too difficult are similarly uninformative because the model almost always fails. The most valuable tasks fall within a learnable range, where the pass rate is neither too high nor too low.
In practice, teams can estimate the pass rate of each task through multiple samples and filter the environment accordingly:
# Pseudocode: filter agentic RL environments by learnabilitydef select_tasks(tasks, policy, k=5, p_low=0.1, p_high=0.9):kept = []for t in tasks:rewards = [run_rollout(policy, t) for _ in range(k)]pass_rate = mean(rewards)# Remove tasks that are too easy or too difficult# because they provide weak gradient signalsif p_low <= pass_rate <= p_high:kept.append(t)return kept
The environment must also provide reliable signals. Test cases, grading scripts, and initial states should be reproducible. Otherwise, false failures and false successes can contaminate the reward signal and undermine training.
3.2 An RL Recipe for Long, Stale, and Low-Precision Rollouts
Long-horizon agent rollouts have three inherent challenges, each of which requires a corresponding design choice:
- Long sequences: A single trajectory can contain tens of thousands of tokens. Training must control memory use and sequence length through techniques such as segmented or streaming generation and suitable advantage estimation.
- Stale data: In asynchronous sampling, the policy may be updated after rollout data has been generated. Importance-sampling corrections, such as clipped ratio objectives, are needed to limit distribution drift.
- Low precision: Low-precision inference and training improve throughput, but numerical stability must be protected through methods such as loss scaling and selectively falling back to higher precision for critical operators.
A simplified training loop looks like this:
for step in range(total_steps):batch = sample_rollouts(policy, tasks) # Asynchronous and potentially staleadv = compute_advantages(batch) # Advantage estimation for long trajectoriesfor _ in range(epochs):loss = clipped_policy_loss(batch, adv) # Clipped importance ratios reduce stalenessloss.backward() # Maintain numerical stability in low precisionoptimizer.step()
The objective is not simply to increase rollout throughput. The entire pipeline must remain stable while learning from long trajectories generated by policies that may already be outdated.
3.3 A Shared Programming Harness for Training, Optimization, and Evaluation
This is one of the most easily underestimated components. Agent performance depends on both the model and its execution framework, or harness. If the tool-calling protocol, error format, or feedback mechanism used during training differs from the evaluation setup, skills learned by the model may not transfer.
The team therefore used the same harness for optimization, training, and evaluation. This ensured that the action space, observation format, and failure feedback were fully aligned, eliminating a fundamental source of train–evaluation mismatch.
4. Interpreting the Results: The Performance–Cost Pareto Frontier
On a log-scale chart comparing Pass@1 with per-task cost, leading models form a Pareto frontier: achieving a higher pass rate generally requires spending more.
The value of this approach is that it effectively shifts the entire curve toward the lower-left. At the same level of task success, the cost is substantially lower; at the same cost, the pass rate is significantly higher.
Because the model was deployed by the research team and the cost was calculated using the publicly stated price of the foundation model, the result provides a more compelling example of approaching frontier performance at lower cost.
5. Transfer and Generalization
The recipe was not effective only on a single benchmark. According to the report, its benefits transferred to two additional software engineering benchmarks, including tasks similar to DeepSWE and SWE-Bench Pro.
This suggests that the model learned general long-horizon engineering capabilities—reading code, modifying code, running tests, interpreting errors, and iterating—rather than overfitting to one test set. That generalization is a compounding benefit of combining full-parameter RL with reliable environments.
6. Practical Guidance for Developers
Teams seeking to reproduce similar results on a cluster with roughly one hundred accelerators can use the following checklist:
- Freeze non-core modules first, concentrating the training budget on full-parameter updates to the language side.
- Build a task pool with controllable difficulty and reliable signals, and continuously filter tasks into the learnable range.
- Use a unified harness so that the actions, observations, and feedback formats used in training exactly match those used in evaluation.
- Harden the algorithms and numerical pipeline against long sequences, stale rollouts, and low-precision computation.
- Build an elastic and reproducible experiment pipeline for compute, storage, and tracking by using general-purpose cloud capabilities such as container platforms, object storage, logging, monitoring, and alerting. This can reduce the operational burden of maintaining the cluster.
Long-horizon agentic RL does not require a cluster with thousands of accelerators to approach the performance–cost frontier. With careful environment filtering, a robust RL recipe, and a unified harness, a hundred-accelerator-scale cluster can train a low-cost, transferable coding agent within a matter of days. For resource-constrained teams, this methodology may be more valuable than any individual model or benchmark result.
