A LoRA patch made an open coding model use half the tokens on the same benchmark
Hugging Face trained a small add-on for Qwen3.8-27B that boosts one benchmark score and cuts token use, but only inside the specific tool it was trained for.

Hugging Face published a recipe on November 20 for making an open model noticeably better at one specific job, without touching the model’s main weights at all. The team calls the result a “harness adapter,” and the numbers are the kind that make you re-read the chart.
The headline number
Take Qwen3.8-27B running inside a coding-agent tool called pi. Stock, it clears 39% of Terminal-Bench 2.1 tasks and burns about 2,900 tokens doing it. Freeze the model, bolt on a small trained add-on called a LoRA adapter, and it clears 55% of the same tasks using about 1,500 tokens, according to Hugging Face’s own blog post. Roughly 40% more tasks solved, for about half the tokens. Most of that gain came from the model reasoning less, calling fewer tools, and getting the first attempt right more often, Hugging Face says.
Hugging Face trained three separate adapters this way, one each for the agent tools pi, OpenCode and Hermes Agent, using reinforcement learning on coding tasks run inside each harness. That training pipeline is the real product of the post. It stitches together Hugging Face’s AsyncGRPOTrainer, the OpenEnv and Harbor environments, and a task generator called Tasksmith that mines bugs out of real pull requests and GitHub issues. All of it runs on Hugging Face’s own Jobs infrastructure, on 2x Nvidia B200 GPUs per adapter.
| Setup | Terminal-Bench 2.1 pass@1 | Tokens / tool calls per task |
|---|---|---|
| Base Qwen3.8-27B, pi harness | 39% | ~2,900 tokens |
| + pi harness adapter | 55% | ~1,500 tokens |
| Merged super-adapter, half strength, all 3 harnesses | 52.5% average | 25.9 tool calls |
| Merged super-adapter, full strength, all 3 harnesses | 50.0% average | 13.4 tool calls |
Why the gain doesn’t travel
What matters more than the headline figure: the adapter only works that well inside the harness it was trained for. Hugging Face also tried merging the three harness-specific adapters into one “super-adapter” that works across all three tools. Combined at half strength, across all 89 Terminal-Bench 2.1 tasks under every harness, it averaged 52.5%, close to the best single-harness scores, as the table above shows. Add all three updates at full strength instead, and the model gets fast and short, but one of the three harnesses actually falls back to roughly its starting score. Hugging Face settled on half-strength merging for the released version. Fair trade.
There’s an honest wrinkle in the post too. Hugging Face ran the adapters against a different benchmark than the one they were trained on, to see if the gains generalize. They mostly didn’t: the pi and OpenCode adapters stayed close to the untuned model (27.0% and 25.3% pass@1 against a 23.0% baseline), the merged adapter landed almost exactly on the baseline, and the Hermes-trained adapter actually scored a few points lower than the untrained model, at 17.7%. Hugging Face calls the gap “within noise, except perhaps Hermes.” I’d call it the more useful number in the whole post: a harness adapter is a tool for one job, not a general upgrade.
One more thing nobody fully explained yet. Hugging Face noticed the adapted model, running with its thinking mode switched off, still generates a bit of short text before calling a tool, something the untrained base model barely does. They’re calling it “reasoning leakage,” a hint that reinforcement learning pushed the model to recreate some of the slower, deliberate behavior of its own thinking mode even when thinking mode is off. Hugging Face says this is an open question they haven’t fully worked out, and that’s a more honest line than most model-release posts bother with.
A separate Hugging Face page, the pi adapter’s own model card, lists slightly different numbers for a harder SWE-bench Pro slice: 39.2% to 64.7% pass@1 with thinking off and one attempt per task. That gap comes from different benchmarks and settings, not a correction. Both pages are still live.
My read
This isn’t really a story about Qwen getting smarter. It’s a story about how much performance is sitting unused in an open model because nobody tuned it for the specific tool reading its output. The same base weights, pointed at a different agent harness, behave like a different model. That’s useful if you’re building a coding agent and can afford to run a short RL training job against your own harness. It’s close to irrelevant if you’re a developer who just wants to download a model and have it work well everywhere, because an adapter tuned for pi doesn’t transfer its full gain to OpenCode or to a tool nobody has trained for yet.
All three adapters, the merged version, and the training recipe itself are released publicly on Hugging Face, so other teams can repeat this on their own model and harness instead of waiting for someone else to do it. Hugging Face has already published earlier, smaller versions of this harness-adapter idea for narrower coding tasks; this is the same approach scaled up to a 27-billion-parameter model and real-world software engineering work. If you’re already running an open model inside a fixed coding agent and have the GPU budget for a short RL run, this is worth reading end to end. If you’re choosing between open models for general use, the headline 39%-to-55% jump tells you less than it looks like it does.
Hugging Face didn’t say when or whether harness adapters for other open models, like Alibaba’s Qwen4-Max, are coming next.
Terminal-Bench and SWE-bench-style scores from any lab, including Hugging Face's own, are self-reported unless an independent benchmark org re-runs them. Treat the specific percentages as Hugging Face's claim about its own training recipe, not an audited third-party result.
Related: Alibaba’s Qwen4-Max goes closed-weights
Note on sources: I read Hugging Face’s full blog post on harness adapters and the separate model card for the pi-adapted checkpoint in full. I did not independently re-run either benchmark; both sets of numbers are Hugging Face’s own reporting.