Sakhanda Wire
NVDA $165.05 +31.48% MSFT $492.50 +1.65% GOOGL $282.10 +6.34% META $597.60 +6.55% AMZN $255.39 +3.47%
← Back to the news

Harness adapters improve model performance and token efficiency

Researchers describe a method for adapting a language model to a specific agent harness and task distribution. Using reinforcement learning, they trained LoRA adapters for Qwen3.8-27B while keeping the model’s original weights frozen. The training loop operated inside the selected harnesses rather than a separate reimplementation of the agent workflow.

Adapters were created for pi, Hermes Agent and OpenCode. According to the report, each adapter outperformed the base model under its own harness on the two evaluated benchmarks, while also improving efficiency. In one example, Qwen3.8-27B scored 39% on Terminal-Bench 2.1 with pi and used an average of 2.9K tokens per task. Adding a custom adapter raised pass@1 to 55% and reduced average usage to 1.5K tokens.

The team built and validated coding tasks on the Hugging Face Hub using OpenEnv, Repo2RLEnv and Harbor. The final dataset contained 871 accepted tasks from 35 repositories, including injected bugs, real GitHub issues and tasks generated from merged pull requests. The three LoRAs were also merged into one super-adapter that runs unchanged across all three harnesses.

Written by Sakhanda Wire AI from reporting by Hugging Face. Facts, quotes and full context are in the original article below.

Originally published by Hugging Face on

Read the original on Hugging Face ↗

The reporting and the image belong to Hugging Face and are credited and linked above; the text on this page is Sakhanda Wire's own summary.

← Back to the news

More stories

All the latest news