{"version":1,"type":"story","url":"https://digestai.news/story/hugging-face-introducing-harness-adapters","json":"https://digestai.news/story/hugging-face-introducing-harness-adapters.json","markdown":"https://digestai.news/story/hugging-face-introducing-harness-adapters.md","slug":"hugging-face-introducing-harness-adapters","headline":"Hugging Face: Introducing harness adapters","summary":"# Introducing Harness Adapters\n\nCombining RL on a custom task distribution with your favorite agent harness yields more accurate and efficient models for that target harness and task combination. Models are not fully optimized for all harnesses, so combining them can leave performance and efficiency on the table. With RL, you can train a custom harness adapter to squeeze everything out of your model for your specific harness and tasks.\n\nWe trained one LoRA adapter per agent harness (pi, Hermes Agent, OpenCode) with RL inside the harness itself. Datasets, training, and agent rollouts all happen on the Hub in Jobs using TRL's AsyncGRPOTrainer, OpenEnv, and harbor. Each harness adapter beats the base model under its own harness for both performance and efficiency.\n\nWe have built ready-to-use docker images for all our RL tasks that come with the target harnesses already pre-installed inside. In our final docker images, we use Pi 1.5.2, OpenCode 2.2.7, and Hermes Agent v0.22.6. The diagram from the aforementioned blogpost explains well the entire protocol.\n\nWe combined together task retrieval of existing RL envs, task generation with Repo2RLEnv, task validation with OpenEnv, and sampling into a single data pipeline to build the highest quality set of validated and relevant tasks for improving Qwen3.8-27B on agentic coding.\n\nThis section describes how we built it so you can try it out on your own domains. RL training needs tasks the agent can attempt, a verifier that scores each attempt, and evidence that the verifier is right. A verifier that accepts wrong answers teaches the wrong behavior. A task that is already feasible will not teach the model anything.\n\nWe used Tasksmith to target gaps by mapping the skills our target benchmarks test (Terminal-Bench 2.1, hard subset of SWE-bench Pro, and DeepSWE) with merged pull requests from Python repositories. From 30 merged pull requests, Tasksmith produced 24 tasks in 10 Python repositories that passed its checks.\n\nThis recipe leverages the Harbor integration in OpenEnv and TRL's OpenEnv guide to train the model inside the harnesses we chose for final training. We have built ready-to-use docker images for all our RL tasks that come with the target harnesses already pre-installed inside.","keyPoints":["LoRA adapters were trained on Qwen3.8-27B within each agent harness (pi, Hermes Agent, OpenCode)","Each adapter improves performance and efficiency under its own harness","The task set was built from Hub sources and generated by Tasksmith"],"whyItMatters":"This work demonstrates how to optimize AI models for specific tasks and environments using reinforcement learning, potentially improving the overall effectiveness of AI systems in real-world applications.","category":{"slug":"models","name":"Generative AI & Models","url":"https://digestai.news/category/models"},"entities":{"companies":["Hugging Face"],"models":["Qwen3.8-27B","LoRA adapters"],"people":[]},"firstPublishedAt":"2026-11-20T00:00:00Z","updatedAt":"2026-11-20T00:00:00Z","sourceCount":2,"hasPrimarySource":true,"sources":[{"outlet":"Hugging Face","title":"Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost","url":"https://huggingface.co/blog/harness-adapters-at-scale","publishedAt":"2026-11-20T00:00:00Z","type":"primary","primary":true,"lead":true},{"outlet":"MarkTechPost","title":"New LoRA Adapter Lifts Qwen3.8 Coding Success From 39% to 65%","url":"https://marktechpost.com/2026/11/18/hugging-face-qwen3-8-27b-pi-adapted-lora","publishedAt":"2026-11-18T16:07:50Z","type":"press","primary":false,"lead":false}],"sourceNotes":null,"discussions":[],"thread":null,"cite":{"text":"Digest AI, \"Hugging Face: Introducing harness adapters\", 20 November 2026, https://digestai.news/story/hugging-face-introducing-harness-adapters","publisher":"Digest AI","title":"Hugging Face: Introducing harness adapters","datePublished":"2026-11-20T00:00:00Z","url":"https://digestai.news/story/hugging-face-introducing-harness-adapters"},"generatedBy":"Written by Digest AI's editorial model from the linked sources; the sources are the record.","license":"Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse"}