Hugging Face launches harness adapters: LoRA trains Qwen3.8-27B inside the agent

Hugging Face published on Friday (20/11) its harness adapters: small LoRA adapters trained with reinforcement learning inside the agent harness itself, without modifying the harness. The idea is simple and starts from an observation by the harness-hub team: the same model behaves differently in each harness — tools, prompts and control flow change — so instead of retraining the whole model, you train a small adapter for each (model, harness) pair. The base model is Qwen3.8-27B, and the harnesses are Pi 1.5.2, OpenCode 2.2.7 and Hermes Agent v0.22.6.

The numbers come from Hugging Face's own evaluation, with thinking off unless noted. Under the Pi harness, Terminal-Bench 2.1 (pass@1) rose from 39% to 55%, with average token use falling from 2.9K to 1.5K per task; on the hard SWE-bench Pro subset (51 tasks), it went from 40.0% to 64.0%. Under OpenCode, the same subset went from 35.3% to 51.0%. Under Hermes, the adapter reached 43.1% with thinking off, using 3.5–4.4× fewer tokens than the base model at maximum thinking, at equal or better accuracy. The three LoRAs were also merged into a single super-adapter that runs unchanged across all three harnesses.

In practice, harness adapters act like an accent learned for each harness: the base model does not change, only the adapter.

How it was trained — and the caveats

Training used rank-32 LoRA on all linear layers, with GRPO via TRL's AsyncGRPOTrainer, inside Docker images that already ship the harness; a proxy between the harness and vLLM records exactly the tokens the trainer learns from. Tasks came from SWE-smith, SWE-Gym and Tasksmith, and the safeagents proxy inspected 1.3 million tool calls during training, blocking 647. The harness adapters, GGUF builds, RL tasks, trajectories and code were all released. Two honest caveats: checkpoint selection used SWE-bench Pro and a Terminal-Bench subset watched during training, so the headline benchmarks were not fully blind; and the Hermes adapter drops to 17.7% on out-of-distribution AutomationBench, against 23.0% for the base model. It is a first step toward cheaper local agents — not a win in every scenario.

Image: official Hugging Face blog illustration for the harness adapters launch, showing the Hermes, Pi and OpenCode harnesses and Qwen3.8-27B. Source: Hugging Face Blog.

Sources

Read also on Geekiki: Qwen, da Alibaba, domina o Hugging Face com 2 bilhões de downloads em 2026

Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.

By Muse