Hugging Face harness adapters lift Qwen3.8-27B to 55% on Terminal-Bench 2.1, company says
Hugging Face has published a reproducible recipe for harness adapters: small LoRA adapters trained with reinforcement learning inside a specific agent harness while the base model stays frozen. The company reports that a Qwen3.8-27B adapter under Pi rises from 39% to 55% pass@1 on Terminal-Bench 2.1 while using fewer tokens.
Hugging Face has published a reproducible recipe for harness adapters: small LoRA adapters trained with reinforcement learning inside a specific agent harness, with the base model frozen. The release covers Qwen3.8-27B adapters for three harnesses (Pi, OpenCode and Hermes Agent), plus a merged super-adapter, GGUF builds, training tasks and a safeagents plugin, all in a Hugging Face collection.
Reported results
According to Hugging Face, general-purpose models lose accuracy and waste tokens once they run inside a particular coding agent. Its figures for Qwen3.8-27B under Pi:
- Terminal-Bench 2.1: base model scores 39% pass@1 at about 2.9K tokens per task. The harness-trained LoRA reaches 55% at 1.5K tokens, mainly by calling fewer tools and succeeding on the first attempt.
- SWE-bench Pro (51 hardest tasks): 39.2% for the base model, 64.7% with the adapter.
- AutomationBench (300 tasks, run in the benchmark's own agent loop): the adapters stayed close to the base model.
How the training works
Many RL setups reimplement the agent loop. This recipe instead runs the shipping harness and trains on tokens that a proxy records between the harness and vLLM. Training uses TRL's AsyncGRPOTrainer, OpenEnv and Harbor. Tasks come from SWE-smith, SWE-Gym and Repo2RLEnv's Tasksmith pipeline. Each task must pass openenv validate and a difficulty screen that keeps only problems the base model sometimes solves.
Each adapter was trained on two NVIDIA B200 GPUs with thinking turned off. Hugging Face then concatenated the three rank-32 LoRAs into a rank-96 super-adapter, scaled at half strength after a plain sum made agents too terse and hurt Pi.
Specialist versus merged adapter
With thinking off, the company says each harness's own adapter still leads on most comparisons and is the better choice when only one harness is in use. The super-adapter, which was not trained with thinking on, is reported to beat or tie the thinking base model on all six harness-benchmark pairs while cutting tool calls. Hugging Face notes the Terminal-Bench figures are slightly optimistic because the merge weight was chosen on that benchmark.
The team also reports that adapters trained with thinking off sometimes emit short, reasoning-like text before a tool call, which it calls reasoning leakage.
Caveats and community response
Hugging Face warns that results should not be compared across harnesses, because Pi applies context compaction by default while OpenCode and Hermes do not.
Mario Zechner, creator of the Pi coding agent, posted a correction on X. Hugging Face had written that Pi does not keep previous reasoning turns, unlike OpenCode and Hermes. Zechner said Pi does send each assistant turn back with its reasoning_content, and that the difference is auto-compaction: 16 of 51 of the published SWE-bench Pro thinking runs compacted. In his words, that is the context overflow difference, not dropped reasoning.
On the merged adapter, @MrNirmata argued the specialist is still the one to ship. The blog's own table, with thinking off, shows the Pi adapter at 64% on SWE-bench Pro hard-51 versus 46% for the super-adapter. Hacker News commenter Wheen wrote that Qwen3.8-27B fails many basic tool calls in Pi and that the adapter seems to mitigate that.
Related approaches
The idea of keeping the production harness in the training loop also appears in Agent Lightning v1.0 and in SkyRL's Harbor integration. Other RL stacks, including verl, SkyRL-Gym, rLLM and ART, typically train against a reimplemented agent interface rather than the unmodified runtime.
The adapters, training data, trajectories and recipe are available on the Hugging Face Hub through the blog post and the Qwen3.8-27B harness-adapter collection.
What this means
The reported gains come from training against the runtime that actually ships, not from changing the base model. Fewer tool calls and fewer tokens per task (about 2.9K down to 1.5K on Terminal-Bench 2.1 under Pi) suggest part of the gain is behavioral fit to the harness. The Pi adapter's 64% against the super-adapter's 46% on SWE-bench Pro hard-51 shows that merging trades per-harness performance for coverage. Teams running a single harness have a clear case for the specialist. The caveats matter when reading the numbers: the merge weight was tuned on Terminal-Bench, compaction defaults differ by harness, and Zechner's correction shows the cross-harness explanation was initially misattributed. Results on AutomationBench stayed close to the base model, so the gains are reported for coding-agent harnesses rather than across all agent loops.
Related Articles
Hugging Face: Qwen3.8-27B is the fastest-liked model ever, and open models trail the proprietary frontier by two to five
Hugging Face's Fall 2026 State of Open Source report says Qwen3.8-27B earned more than 13,000 likes in its first month, the fastest uptake of any model release. It also reports open models trailing the proprietary frontier by roughly two to five months, with a large gap remaining in scientific research benchmarks.
Together AI distills Kimi-K3.1-Pro into Qwen3.8-27B, lifting Lao from 5.5 to 44.3 chrF++ for $260
Together AI reports that a LoRA adapter trained on about 3,800 Kimi-K3.1-Pro translations lets Qwen3.8-27B write Lao, scoring 44.3 chrF++ against the teacher's 47.5. The base model had scored 5.5 and answered in Thai. All experiments together cost $260.
NVIDIA tutorial lifts Nemotron 3.5 Super VL task success from 50% to 85% on 20 held-out tasks
An NVIDIA developer tutorial shows Nemotron 3.5 Super VL, post-trained with NeMo Gym and NeMo RL using GRPO, rising from 50% to 85% task success on 20 held-out tasks in a browser-based support workflow. The customized model succeeded on 7 previously failed tasks and regressed on none, according to NVIDIA.
Reflection AI open-sources Iris safety benchmark and two Beam safeguards, asks NIST for open-weight standards
Reflection AI released an open-source safety benchmark and two safeguards for its 501-billion-parameter Beam model under Project Iris. The company also published its first policy proposal, asking NIST to develop voluntary safety standards for open-weight models.
Comments
Loading...