APIRON // Intel
Back to the feed
Hugging FaceModels

Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost

The brief

Hugging Face introduces harness adapters: small LoRA adapters trained with reinforcement learning inside a specific agent harness, so a model such as Qwen3.8-27B is tuned to how it is actually used. The team trained one adapter each for the pi, Hermes Agent and OpenCode harnesses, running each harness as it ships. On pi, the Terminal-Bench 2.1 score rose from 39% to 55% pass@1 with frozen base weights, while average token use fell from 2.9K to 1.5K per task.

The training tasks combined two Hugging Face Hub sources with tasks generated by Tasksmith, and each task was screened with openenv validate and checked against the base model. The three adapters were also merged into one super adapter that runs unchanged across all three harnesses. Datasets, training and agent rollouts all run on Hugging Face Jobs, and the post shares a reusable recipe and a collection of artifacts.

  • Harness adapters are LoRA weights trained with RL inside the agent harness itself, rather than in a re-implemented agent loop.
  • On the pi harness, Terminal-Bench 2.1 pass@1 rose from 39% to 55% while average tokens per task dropped from 2.9K to 1.5K.
  • The three per-harness adapters were merged into a single super adapter that runs unchanged under pi, Hermes Agent and OpenCode.

Why it mattersIt offers a reusable, reproducible recipe that could let developers gain both accuracy and efficiency from RL tuned to their own harness and tasks, without changing the base model's weights.

Summary written by AI from the original article. It may miss nuance, so check the source before relying on it.

Continue at Hugging FaceRead the full story