Harness adapters: 319 MB that tune Qwen3.8 27B for agents
Hugging Face trained small add-on files that make Qwen3.8 27B better inside pi, Hermes Agent and OpenCode. Here's what they need and how to run one.
If you run a coding agent on your own machine, the model and the agent app were almost never made for each other. Hugging Face tried to fix that on November 20 with "harness adapters": small add-on files that retrain Qwen3.8 27B to work better inside one specific agent app. Each one is about 319 MB, they're free under Apache 2.0, and they run in llama.cpp today. The catch is that you still need the full Qwen3.8 27B, and Hugging Face suggests its larger 8-bit file.

What a harness adapter is
A "harness" is the agent app that wraps the model: it sends your task, runs the commands the model asks for, and feeds the results back. Hugging Face picked three: pi, Hermes Agent and OpenCode. Its point is that a model is trained to do well in general, so in any one app it leaves some accuracy and speed on the table.
An adapter (technically a LoRA) is a small file of changes that sits on top of the original model without replacing it. Hugging Face trained one per app with reinforcement learning, where the model attempts tasks inside the real app and gets rewarded when the task's hidden tests pass. The training set was 871 coding tasks from 35 code repositories, and the tasks used in the test benchmarks were removed from it first.
There are four files to choose from:
- pi, Hermes Agent and OpenCode adapters: one per app, about 319 MB each as a GGUF, the file format llama.cpp uses.
- A "super-adapter": the three merged into one file of about 956 MB that works in all three apps.
How much better is it?
By Hugging Face's own tests, clearly better inside the app each adapter was trained for. With thinking (the model's long hidden reasoning) turned off, every adapter beat plain Qwen3.8 27B on both benchmarks. The biggest jump was pi on the 51 hardest SWE-bench Pro tasks, from 39.2% to 64.7% solved on the first try.

The part that matters most at home is speed. On the tasks both versions solved, the adapters made 56–72% fewer tool calls on SWE-bench Pro. Under pi, the adapter with thinking off matched the base model with thinking at its highest setting on Terminal-Bench 2.1 (56.6% vs 54.2%), while writing about 4.5 times fewer tokens. On a home GPU that writes 10 to 40 tokens a second, fewer tokens means finished jobs, not a long wait.
Read these numbers with care:
- They are Hugging Face's own tests. Nobody has re-run them independently yet.
- They were run at full precision on a data-center server (vLLM), not with the GGUF files you'd download. The GGUF cards say those files haven't been re-tested and that a compressed base model will move the results.
- Thinking still wins on the hardest tasks. Plain Qwen3.8 27B with thinking on solved 74.5% of the SWE-bench Pro set, ahead of the pi adapter's 64.7% without thinking, at about 4.5 times the tokens.
- Don't compare across apps. Each app used its own default settings, so a higher bar for one app doesn't mean that app is better.
- Outside coding, little changes. On 300 business-automation tasks in a different agent loop, the adapters stayed close to the base model, and the Hermes one scored a few points lower (17.7% vs 23.0%).
Hugging Face also flags an open question: without thinking, the adapters learned to write short reasoning-like text before each tool call, a kind of thinking through the back door. It says the results still hold under the same token budget.
What you need to run it
The adapter is small, but it isn't a model on its own. It loads on top of a Qwen3.8 27B file, and it only works with that base model.

The adapter cards call the 8-bit Q8_0 base (28.6 GB in ggml-org's files) a good default, because the adapters were trained on full-precision weights and a closer base gives closer behavior. They say the 4-bit Q4_K_M file (19.4 GB) works but drifts further. The pi card's Llama.app instructions use a 4-bit file of about 17 GB.
For the 4-bit route, the site's Qwen3.8 27B pages already give agentic-coding verdicts (OpenCode, 32K context), and a 319 MB adapter adds little to that:
| Machine | Agentic coding verdict | File and speed on that page |
|---|---|---|
| MacBook Air M5, 24 GB | borderline | 3-bit, 6–9 tok/s |
| Mac mini M6, 32 GB | borderline | 4-bit, 4.9–8 tok/s |
| MacBook Pro M5 Pro, 48 GB | acceptable | 3-bit, 11–19 tok/s |
| Mac Studio M5 Max, 64 GB | acceptable | 5-bit, 15–25 tok/s |
| RTX 4060 Ti 16 GB PC | borderline | Q4_K_M, 4.7–8 tok/s |
| RTX 3090 24 GB PC | comfortable | Q4_K_M, 30–40 tok/s |
| RTX 4090 24 GB PC | comfortable | Q4_K_M, 35–45 tok/s |
| RTX 5090 32 GB PC | excellent | Q5_K_M, 45–60 tok/s |
| DGX Spark 128 GB | acceptable | Q4_K_M, 11–15 tok/s |
The suggested 8-bit file is a harder ask. Our engine, set to llama.cpp at 8-bit with the 64K-token context the cards use, needs about 32 GB for the model and its context. On that setting it rates a 24 GB RTX 4090, an RTX 5090, a DGX Spark and a 64 GB Mac Studio all borderline, and it doesn't fit on 32 GB Macs. So if your machine is in the comfortable rows above, start with the 4-bit or 5-bit file and only move to 8-bit if you have memory to spare.
How to try it
The pi card gives a one-line route in llama.cpp with a ready-merged 8-bit file:
llama serve -hf harness-hub/Qwen3.8-27B-pi-adapted-GGUF:Q8_0 --chat-template-kwargs '{"enable_thinking": false}' -c 65536 --alias qwen3.8-pi
To use your own base file instead, download the base GGUF and the 319 MB adapter, then pass the adapter with --lora. The Hermes Agent and OpenCode cards follow the same pattern and show the settings to point each app at the local server. Keep thinking off with the single-app adapters, as they were trained that way; the super-adapter is meant to be used with thinking on. Hermes Agent also needs at least 64,000 tokens of context. On a Mac, the pi card has steps for Llama.app, the llama.cpp team's app. None of the cards give steps for Ollama or LM Studio.
If you already run Qwen3.8 27B in an agent, this is the cheapest upgrade on offer: a 319 MB download for the app you use. For other recent takes on the same model, see DaisyRose-27B, a full retrain for long agent jobs, and NariQ's 10 GB files. To check your own machine, run the compatibility check, and see chat vs agents for why agents need more memory than chat.
Sources
- Introducing harness adapters: adapt your favorite model to your harness, Hugging Face blog, November 20, 2026
- harness-hub/Qwen3.8-27B-pi-adapted: results, training, license and Llama.app steps, Hugging Face
- harness-hub/Qwen3.8-27B-pi-adapted-GGUF: file sizes, llama.cpp commands and limitations, Hugging Face
- harness-hub/Qwen3.8-27B-hermes-adapted-GGUF, Hugging Face
- harness-hub/Qwen3.8-27B-opencode-adapted-GGUF, Hugging Face
- harness-hub/Qwen3.8-27B-super-adapter-GGUF, Hugging Face
- ggml-org/Qwen3.8-27B-GGUF: base model file sizes, ggml-org on Hugging Face
- Qwen3.8 27B: can I run it?, iownchatgpt.com's estimate engine, checked November 22, 2026