Back to Trending
Modelimage-text-to-text
harness-hub

harness-hub/Qwen3.8-27B-super-adapter

One LoRA adapter for Qwen/Qwen3.8-27B(https://huggingface.co/Qwen/Qwen3.8-27B) behind three coding agents: pi(https://github.com/earendil-works/pi), Hermes Agent(https://github.com/NousResearch/hermes-agent) and OpenCode(https://opencode.ai). It merg...

72likes
1.2kdownloads
2views

Featured achievements

The project's latest awards

2
TINIX TRENDING·Topic: async-grpo

#2 Repository of the week

2
TINIX TRENDING·Topic: dataset:ai-and/termgrade-environments

#2 Repository of the week

2
TINIX TRENDING·Topic: dataset:harness-hub/scale800-harbor

#2 Repository of the day

One LoRA adapter for Qwen/Qwen3.8-27B behind three coding agents: pi, Hermes Agent and OpenCode. It merges three adapters, each trained with reinforcement learning inside one of those harnesses on software-engineering and terminal tasks. The merge itself involves no training.

[!Tip] Use it with thinking on. With thinking on, the super-adapter beats the base model thinking at the same effort (xhigh) on five of six harness–benchmark pairs and ties the sixth: mean pass@1 55.5% → 63.5% across pi, Hermes Agent and OpenCode on SWE-bench Pro and Terminal-Bench 2.1. It also makes 19–48% fewer tool calls per task. If you use a single harness with thinking off, its specialist adapter is the better choice (see below).

  • SWE-bench Pro (hard 51), thinking on: 74.5% → 74.5% under pi, 45.1% → 60.8% under Hermes Agent, 47.1% → 66.7% under OpenCode.
  • Terminal-Bench 2.1, thinking on: 52.9% → 57.6% under pi, 58.6% → 64.4% under Hermes Agent, 54.7% → 58.1% under OpenCode.
  • Thinking off: it beats the base model on all six pairs (mean 39.5% → 49.0%; 71 tasks newly solved vs 34 lost, p < 0.001), with 53–73% fewer tool calls per task.

[!Note] All results are under each harness: one attempt per task, a 100-step budget, a 131,072-token context window, text only (the vision tower is not served), sampling at temperature 0.8 with top-p 1.0. Base model and adapter always run under identical settings. These numbers are not comparable with the ones on the Qwen3.8-27B card, which uses other harnesses (Terminus, Claude Code), larger budgets and the full SWE-bench Pro.

The full recipe is in the release blogpost.

Pick your setup

Results vLLM llama.cpp GGUF Merge How it was made Trajectories

Results

HarnessBenchmarkBaseSpecialistSuper-adapterBase, thinkingSuper-adapter, thinking
piSWE-bench Pro (hard 51)40.0%64.0% (−60%)46.0% (−73%)74.0%74.0% (−48%)
Hermes AgentSWE-bench Pro (hard 51)29.4%43.1% (−56%)47.1% (−60%)45.1%60.8% (−36%)
OpenCodeSWE-bench Pro (hard 51)35.3%51.0% (−72%)45.1% (−63%)47.1%66.7% (−31%)
piTerminal-Bench 2.140.0%56.5% (−56%)48.2% (−56%)52.9%57.6% (−25%)
Hermes AgentTerminal-Bench 2.144.7%58.8% (−70%)55.3% (−53%)58.8%63.5% (−19%)
OpenCodeTerminal-Bench 2.147.6%52.4% (−53%)52.4% (−68%)54.9%58.5% (−22%)

The runs are compared on the tasks all of them graded under each harness: 50–51 of SWE-bench Pro, 82–85 of Terminal-Bench 2.1. "Specialist" is that harness's own adapter (pi, Hermes Agent, OpenCode), with thinking off. "Thinking" is the chat template's thinking mode at its default reasoning effort (xhigh). In parentheses: the change in median tool calls per task against the base model with the same thinking setting, on the tasks both runs solve.

Full paired results (intervals and sign tests against the base model)

One attempt per task, paired against the base model under the same harness and the same thinking setting, on the tasks both runs graded. The interval is 95%; the p-value is an exact sign test on the tasks that changed outcome.

Thinking on

HarnessBenchmarkTasksQwen3.8-27B, thinkingSuper-adapter, thinkingDifference (points)Newly solved / lost
piSWE-bench Pro (hard 51)5174.5%74.5%+0.0 ± 13.46 / 6 (p = 1)
Hermes AgentSWE-bench Pro (hard 51)5145.1%60.8%+15.7 ± 15.913 / 5 (p = 0.096)
OpenCodeSWE-bench Pro (hard 51)5147.1%66.7%+19.6 ± 16.515 / 5 (p = 0.041)
piTerminal-Bench 2.18552.9%57.6%+4.7 ± 9.811 / 7 (p = 0.48)
Hermes AgentTerminal-Bench 2.18758.6%64.4%+5.7 ± 10.814 / 9 (p = 0.41)
OpenCodeTerminal-Bench 2.18654.7%58.1%+3.5 ± 8.28 / 5 (p = 0.58)
All six67 / 37 (p = 0.004)

Thinking off

HarnessBenchmarkTasksQwen3.8-27BSuper-adapterDifference (points)Newly solved / lost
piSWE-bench Pro (hard 51)5040.0%46.0%+6.0 ± 14.28 / 5 (p = 0.58)
Hermes AgentSWE-bench Pro (hard 51)5129.4%47.1%+17.6 ± 15.213 / 4 (p = 0.049)
OpenCodeSWE-bench Pro (hard 51)5135.3%45.1%+9.8 ± 14.810 / 5 (p = 0.30)
piTerminal-Bench 2.18739.1%47.1%+8.0 ± 10.214 / 7 (p = 0.19)
Hermes AgentTerminal-Bench 2.18746.0%56.3%+10.3 ± 9.614 / 5 (p = 0.064)
OpenCodeTerminal-Bench 2.18545.9%50.6%+4.7 ± 10.312 / 8 (p = 0.50)
All six71 / 34 (p < 0.001)

Each benchmark has few tasks, so most single rows are within noise; the pooled results are not.

  • SWE-bench Pro (hard 51): the 51 hardest tasks of SWE-bench Pro, 2 h and 100 agent steps per task.
  • Terminal-Bench 2.1: all 89 tasks of Terminal-Bench 2.1, 1 h and 100 agent steps per task. A few tasks are left out of each comparison because their environment failed to build or their verifier timed out for one of the two runs.
Work per solved task (model calls, tool calls and generated tokens)

Medians per task, super-adapter / base model, over the tasks both solved: same tasks, same outcome, so the numbers measure only how much work each needed. Generated tokens are everything the model writes (visible content, reasoning and tool calls).

TasksModel callsTool callsGenerated tokens
Thinking off
pi · SWE-bench Pro1513 / 4815 / 554.3k / 9.3k
Hermes Agent · SWE-bench Pro1118 / 5824 / 604.0k / 7.6k
OpenCode · SWE-bench Pro1317 / 4920 / 544.2k / 8.5k
pi · Terminal-Bench 2.1258 / 147 / 161.0k / 2.5k
Hermes Agent · Terminal-Bench 2.1359 / 209 / 191.9k / 3.4k
OpenCode · Terminal-Bench 2.1319 / 248 / 251.5k / 3.7k
Thinking on
pi · SWE-bench Pro2028 / 5635 / 6823.0k / 35.9k
Hermes Agent · SWE-bench Pro1828 / 4232 / 5017.0k / 22.5k
OpenCode · SWE-bench Pro1937 / 5143 / 6220.3k / 35.8k
pi · Terminal-Bench 2.13513 / 1612 / 166.6k / 6.8k
Hermes Agent · Terminal-Bench 2.1429 / 108 / 108.4k / 6.5k
OpenCode · Terminal-Bench 2.14210 / 1210 / 1410.7k / 10.4k
  • With thinking off, the super-adapter reaches the same answers in a third to half of the base model's tool calls, with about half the tokens.
  • With thinking on, it still saves a third to a half of the calls and tokens on SWE-bench Pro. On Terminal-Bench, where tasks are shorter, it makes somewhat fewer calls for about the same number of tokens.
  • Some pi sessions have no recorded counts and are left out; they are mostly the base model's longest thinking-on sessions, so the pi savings with thinking on are, if anything, understated.

Super-adapter or specialist?

With thinking off, each harness's own specialist is ahead of the super-adapter on four of six pairs (35 tasks newly solved vs 55 lost against the specialists, pooled, p = 0.045), by the most under pi: 64.0% vs 46.0% on SWE-bench Pro, 56.5% vs 48.2% on Terminal-Bench 2.1. Sharing one adapter across three harnesses costs pi the most of its gain.

  • One harness, thinking off: use that harness's specialist.
  • Several harnesses, or thinking on: use the super-adapter.

Context window

All models were evaluated with a 131,072-token context window and no context compaction. A session that outgrew the window ended there and was scored as a failure (0), for every model alike. With thinking on, Hermes Agent and OpenCode send each turn's reasoning back to the model, so long thinking-on sessions under those two harnesses sometimes ran out of context, for the base model and the super-adapter alike. Qwen3.8-27B's native window is 262,144 tokens: if your hardware allows it, serve with a larger --max-model-len for long thinking-on sessions.

Evaluation checks
  • Infrastructure. During evaluation, the public tunnel between the sandboxes and the model server went down a few times, failing rollouts for reasons unrelated to the model. We check every rollout for this and reran all affected ones, on both sides; the numbers above are the corrected ones.
  • Budget. The base model often works until it runs out of its 100 model calls. The budget is the same for both, so the comparison is fair, but part of the gain is finishing the work within it.
  • Test files. SWE-bench Pro's grader resets all test files and applies the official tests before running them, and Terminal-Bench's tests are copied in only at grading, so an agent editing tests cannot affect a grade.

Evaluation trajectories

Every evaluation attempt behind this card, solved or not, is in the harness-hub/harness-adapters-trajectories bucket, with each attempt's grade, trajectory, harness log and verifier output, scrubbed of secrets. The files carry canary strings: keep them out of training data.

Use

Serve the adapter with vLLM and point a harness at it

1. Serve the adapter with vLLM

vllm serve Qwen/Qwen3.8-27B \
    --enable-lora --max-lora-rank 128 \
    --lora-modules qwen3.8-super=harness-hub/Qwen3.8-27B-super-adapter \
    --language-model-only --enable-prefix-caching --mamba-cache-mode align \
    --enable-auto-tool-choice --tool-call-parser qwen3_xml --reasoning-parser qwen3 \
    --max-model-len 131072

The adapter has rank 96; vLLM only accepts some rank limits, so --max-lora-rank is the next one up, 128. Thinking is on by default in the chat template, which is the recommended setting. To turn it off, add --default-chat-template-kwargs '{"enable_thinking": false}'. Thinking-on runs were evaluated with at most 32,768 output tokens per model call. Prefix caching on this hybrid model needs --mamba-cache-mode align; without it, every agent turn re-reads its whole history.

2. Point a harness at it

pi

Install pi (Node.js 22.19 or newer):

npm install -g --ignore-scripts @earendil-works/pi-coding-agent

Add the server to ~/.pi/agent/models.json:

{
  "providers": {
    "local": {
      "baseUrl": "http://localhost:8000/v1",
      "api": "openai-completions",
      "apiKey": "dummy",
      "models": [{ "id": "qwen3.8-super" }]
    }
  }
}

"api": "openai-completions" matters: without it pi uses the Responses API, which this adapter was not evaluated with.

pi --provider local --model qwen3.8-super --print "Find out why the tests in tests/test_parser.py fail and fix the bug."

Hermes Agent

Install Hermes Agent:

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

Add the server to ~/.hermes/config.yaml:

model:
  default: qwen3.8-super
  provider: custom
  base_url: http://localhost:8000/v1
  api_key: dummy

Hermes Agent needs at least 64,000 tokens of context.

hermes chat -q "Find out why the tests in tests/test_parser.py fail and fix the bug."

OpenCode

Install OpenCode 2 (evaluation used @opencode/cli 2.2.7):

npm install -g @opencode/cli@2.2.7

Add the server to ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "local": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "http://localhost:8000/v1", "apiKey": "dummy" },
      "models": { "qwen3.8-super": {} }
    }
  }
}
opencode run --standalone --model local/qwen3.8-super "Find out why the tests in tests/test_parser.py fail and fix the bug."

Use with llama.cpp

Serve the GGUF adapter with llama.cpp

The GGUF version is in harness-hub/Qwen3.8-27B-super-adapter-GGUF. It runs on top of a GGUF of the base model:

hf download ggml-org/Qwen3.8-27B-GGUF Qwen3.8-27B-Q8_0.gguf --local-dir .
hf download harness-hub/Qwen3.8-27B-super-adapter-GGUF Qwen3.8-27B-super-adapter-lora-F16.gguf --local-dir .

llama serve -m Qwen3.8-27B-Q8_0.gguf --lora Qwen3.8-27B-super-adapter-lora-F16.gguf \
    -c 131072 --port 8080 --alias qwen3.8-super

Then use any harness configuration from the vLLM section with the base URL http://localhost:8080/v1.

The adapter was built from adapters trained on the BF16 weights: the closer the base GGUF is to them, the closer you get to the evaluated behavior. Q8_0 is a good default; lower-bit quants drift further. The GGUF version has not been re-evaluated.

Merge the adapter into the base model

Get a standalone model, with no LoRA at serving time

The adapter can be merged into the base weights with PEFT. The result is a regular Qwen3.8-27B checkpoint (about 54 GB in BF16) that any engine serves without LoRA support. Merge on CPU if the GPU is needed for serving afterwards:

import torch
from peft import PeftModel
from transformers import AutoModelForImageTextToText, AutoTokenizer

base = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3.8-27B", dtype=torch.bfloat16, device_map="cpu")
model = PeftModel.from_pretrained(base, "harness-hub/Qwen3.8-27B-super-adapter").merge_and_unload()
model.save_pretrained("Qwen3.8-27B-super-merged")
AutoTokenizer.from_pretrained("harness-hub/Qwen3.8-27B-super-adapter").save_pretrained("Qwen3.8-27B-super-merged")

Then serve it like the base model, without the LoRA flags:

vllm serve Qwen3.8-27B-super-merged --served-model-name qwen3.8-super \
    --language-model-only --enable-prefix-caching --mamba-cache-mode align \
    --enable-auto-tool-choice --tool-call-parser qwen3_xml --reasoning-parser qwen3 --max-model-len 131072

How it was made

The merge, and the three adapters behind it

The super-adapter merges the three released specialists, each at weight ½:

A LoRA update is scale · B @ A. The three adapters are merged exactly, by concatenation (PEFT's combination_type="cat"): their A matrices stacked along the rank dimension, their B matrices likewise, each times its weight. The result has rank 96 (3 × 32) and applies ½ · (ΔW_pi + ΔW_hermes + ΔW_opencode), which averaging the A and B matrices would not.

The three updates are nearly orthogonal (cosine similarity about 0.01–0.02 per layer), so each keeps most of its effect in the sum. Weights of ⅓, ½ and 1 were compared on all of Terminal-Bench 2.1 with earlier (step-120) adapters; ½ gave the best balance across the three harnesses, so the Terminal-Bench results above are slightly optimistic. SWE-bench Pro played no part in the choice.

The three specialists share one training recipe:

MethodAsyncGRPO (TRL, experimental), LoRA
EnvironmentHarbor tasks served by OpenEnv, rollouts in HF sandboxes, tool calls screened by safeagents
Tasks750 scale800 tasks interleaved with 300 TermGrade tasks
Rewardthe task verifier's correctness (falls back to reward), plus a tool-efficiency bonus of weight 0.1
Learning rate2e-5
LoRAr = 32, alpha = 64, on q, k, v, o, gate, up and down projections
Rollouts8 per task, temperature 0.8, thinking off, up to 50 agent steps and 1,800 s per rollout
Hardware2× NVIDIA B200 per harness: vLLM on one, the trainer on the other

The specialists were trained with thinking off; the super-adapter's thinking-on behavior was never trained, only evaluated. See each specialist's card for its training details.

For a full write-up, please refer to the release blogpost.

Similar Projects

Discover other similar projects and AI models.

Modelimage-text-to-text
harness-hub/Qwen3.8-27B-pi-adapted

!(banner.png) A LoRA adapter for Qwen/Qwen3.8-27B(https://huggingface.co/Qwen/Qwen3.8-27B), trained with reinforcement learning to work as the model behind the pi(https://github.com/earendil-works/pi) coding agent on software-engineering and terminal...

♥0
5.2k
Nov 24, 2026
Modelimage-text-to-text
autotrust/JEV-27B-VL

autotrust/JEV-27B-VL JEV-27B that can see: the same System 1 decisions and System 2, now on images autotrust/JEV-27B-VL is autotrust/JEV-27B(https://huggingface.co/autotrust/JEV-27B) with vision. | | what it does | output | |---|---|---| | System 1...

♥0
63.7k
Oct 14, 2026
Modelimage-text-to-text
harness-hub/Qwen3.8-27B-opencode-adapted

!(banner.png) A LoRA adapter for Qwen/Qwen3.8-27B(https://huggingface.co/Qwen/Qwen3.8-27B), trained with reinforcement learning to work as the model behind the OpenCode(https://opencode.ai) coding agent on software-engineering and terminal tasks. !Ti...

♥0
1.6k
Nov 21, 2026
Modelimage-text-to-text
harness-hub/Qwen3.8-27B-hermes-adapted

!(banner.png) A LoRA adapter for Qwen/Qwen3.8-27B(https://huggingface.co/Qwen/Qwen3.8-27B), trained with reinforcement learning to work as the model behind Hermes Agent(https://github.com/NousResearch/hermes-agent) on software-engineering and termina...

♥0
962
Nov 20, 2026
Modelimage-text-to-text
Qwen/Qwen3.8-27B

Qwen3.8-27B !Note This repository contains model weights and configuration files for the post-trained model in the Hugging Face Transformers format. These artifacts are compatible with Hugging Face Transformers, vLLM, SGLang, TokenSpeed, etc. !Tip F...

♥0
4.8M
Nov 7, 2026
Modelimage-text-to-text
moonshotai/Kimi-K3

📰&nbsp;&nbsp;Tech Blog | &nbsp;&nbsp;&nbsp; 📄&nbsp;&nbsp;Full Report 1. Model Introduction Kimi K3 is an open-weight, native multimodal agentic model and our most capable model to date. It is a 2.8T-parameter model built on Kimi Delta Attention (K...

♥0
498.3k
Sep 2, 2026
Modelimage-text-to-text
Qwen/Qwen3.8-Flash-Next

Qwen3.8-Flash-Next !Note This repository contains model weights and configuration files for the post-trained model in the Hugging Face Transformers format. These artifacts are compatible with Hugging Face Transformers, vLLM, SGLang, TokenSpeed, etc....

♥0
695.3k
Nov 7, 2026
Modelimage-text-to-text
baidu/Unlimited-OCR

Unlimited OCR Works Welcome the Era of One-shot Long-horizon Parsing. Release - 2026/06/23 📄 Our paper is now available on arXiv(https://arxiv.org/abs/2606.23050). - 2026/06/23 🤝 Thanks to the ModelScope community for their support. Our model is n...

♥0
5.1M
Oct 14, 2026
Modelimage-text-to-text
google/gemma-4-31B-it

Hugging Face | GitHub | Launch Blog | Documentation License: Apache 2.0 | Authors: Google DeepMind Gemma is a family of open models built by Google DeepMind. Gemma 4 models are multimodal, handling text and image input (with audio supported on small...

♥0
5.0M
Jul 20, 2026