Skip to content
All news
AnnouncementAI-written

Hugging Face adds RL‑trained harness adapters for Qwen3.8‑27B, raising Pi pass@1 to 55%

Hugging Face released RL‑trained LoRA harness adapters for the Qwen3.8‑27B model, merged into a single super‑adapter that works across Pi, Hermes Agent and OpenCode harnesses, and demonstrated a pass@1 increase to 55% on Pi with token usage cut by nearly half.

The blog post was published on November 20, 2026 announcing harness adapters that use reinforcement learning to adapt a model to a specific agent harness for better performance and lower token usage. The adapters are provided as a single super‑adapter that runs unchanged across the Pi, Hermes Agent and OpenCode harnesses.

One LoRA adapter was trained for the Qwen3.8‑27B model per harness (Pi, Hermes Agent, OpenCode) using reinforcement learning inside the harness. Training leveraged AsyncGRPOTrainer from TRL, OpenEnv, and Harbor within Hugging Face Jobs. The Docker images used for training include Pi 1.5.2, OpenCode 2.2.7, and Hermes Agent v0.22.6 pre‑installed.

On the Pi harness, the adapter raised Terminal-Bench 2.1 pass@1 from 39% to 55% and cut average token usage from 2.9K to 1.5K per task. Experiments show that each harness‑specific adapter outperforms the base Qwen3.8‑27B model on both accuracy and efficiency benchmarks.

The custom task dataset was built from three sources: SWE‑smith, SWE‑Gym, and Tasksmith, filtering about 59,000 Harbor tasks down to high‑quality training tasks. Tasksmith generated 24 tasks from 30 merged pull requests, with 17 tasks passing a second validation run. Each task is validated with openenv validate, checking semantic rewards such as oracle_max, floor_gap, canary_floor, and episode_determinism.

All resulting artifacts—including adapters, GGUF files, RL task definitions, and a safeagents plugin—are published in a public Hugging Face collection. The three individual LoRA adapters were merged into a single super‑adapter that runs unchanged across all three harnesses.