[Image blocked: No description]
A LoRA adapter for Qwen/Qwen3.8-27B, trained with reinforcement learning to work as the model
behind Hermes Agent on software-engineering and terminal tasks.
[!Tip]
Thinking-level accuracy, at a quarter of the tokens. With thinking off, this adapter is level with the base model
thinking at its highest reasoning effort (xhigh) under the same setup: 43.1% vs 45.1% on SWE-bench Pro, 58.8% vs
58.8% on Terminal-Bench 2.1, while generating 3.5–4.4× fewer tokens per task. Keep thinking off. See
Thinking vs no thinking, and the context window note: under Hermes Agent, many thinking-on
sessions ran out of context.
- SWE-bench Pro (hard 51): 29.4% → 43.1% (+13.7 points; 10 tasks newly solved, 3 lost).
- Terminal-Bench 2.1: 44.7% → 58.8% (+14.1 points; 19 newly solved, 7 lost; p = 0.029).
- Less work per task: on the tasks both solve, under 40% of the base model's turns on SWE-bench Pro (22 vs 59) and
on Terminal-Bench 2.1 (8 vs 21), with about 2× fewer generated tokens.
[!Note]
All results are under the Hermes Agent harness: one attempt per task, a 100-step budget, a 131,072-token context
window, thinking off unless stated, text only (the vision tower is not served), sampling at temperature 0.8 with top-p
1.0 (the training sampling). 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), thinking at maximum effort, larger budgets and the full SWE-bench Pro.
Full recipe will be shared in the release blogpost for anyone to build their own harness adapter.
Pick your setup
A real SWE-bench Pro task under Hermes Agent: the base model probes Qt's URL encoding modes for dozens of calls, breaks
the test file with a bad patch and runs out of its budget; this adapter fixes the regex and the path setter, checks the
task's scenarios and passes, in 35 tool calls.
[Image blocked: No description]
Still version, and the task
[Image blocked: No description]
Task: instance_qutebrowser__qutebrowser-deeb15d6f009b3ca0c3bd503a7cef07462bd16b4 from SWE-bench Pro (hard 51): when
incrementing or decrementing a number in a URL, leave percent-encoded parts (such as %3A) intact. Both runs are from the
evaluation above: the base model was graded 0, this adapter 1. Each line is one tool call as the trajectory recorded it,
cut to fit; Hermes Agent's tool names are shortened (python for execute_code, shell for terminal, read for
read_file).
[blocked]
Results
[Image blocked: No description]
[Image blocked: No description]
The four runs are compared on the tasks all of them graded: all 51 of SWE-bench Pro, and 85 of Terminal-Bench 2.1.
"Thinking" is the chat template's thinking mode at its default reasoning effort (xhigh). Thinking-on scores under Hermes
Agent are limited by the context window: see the note below.
Full paired results (intervals and sign tests against the base model)
One attempt per task, thinking off, paired against the base model under Hermes Agent on the same tasks. The interval is
95%; the p-value is an exact sign test on the tasks that changed outcome.
- 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. Four tasks are left out of the comparison because their environment failed to build or their verifier timed out for one of the two runs.
Work per solved task (turns, tool calls and generated tokens)
Medians per task, this adapter / the 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).
- Against the base model, the adapter reaches the same answers in well under half the turns and tool calls: fewer,
more targeted actions instead of long exploration.
- Against the base model with thinking, most of the difference is reasoning: the adapter gets there without it.
- Hermes Agent's traces do not keep the model's reasoning, so this table does not split generated tokens into content
and reasoning.
[blocked]
Thinking vs no thinking
Under this setup, thinking mode on its own brings the base model to this adapter's accuracy, within noise; the adapter
gets there without it, at 3.5–4.4× fewer tokens. Thinking runs use the template's default reasoning effort (xhigh) and
at most 32,768 output tokens per model call.
[blocked]
Context window
All models were evaluated with a 131,072-token context window, under Hermes Agent's default configuration, with no
context compaction set up. A session that outgrew the window ended there and was scored as a failure (0), for every model
alike. With thinking on, Hermes Agent sends each turn's reasoning back to the model, so long sessions run out of
context: many failed thinking-on attempts, for the base model and for this adapter, ended this way, often after a few
dozen steps. Thinking-on scores here reflect this setup, not the best each model could reach with a larger window or
compaction. Thinking-off runs were much less affected.
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. The first release of this adapter, as
harness-hub/Qwen3.8-27B-hermes, reported 27.5% → 49.0% on SWE-bench Pro before these reruns.
- Budget. The base model often works until it runs out of its 100 model calls: on SWE-bench Pro, 14 of its 36 failed
attempts ended this way. The budget is the same for both, so the comparison is fair, but part of the gain is finishing
the work within it.
- Network access. The sandboxes had internet access. Calls outside the task were almost all dependency lookups (a
module path or version a task needed); in the trajectories we kept, we found no attempt by this adapter to look up a task's upstream fix.
- Test files. Agents, the base model and this adapter alike, sometimes write or edit test files while working,
mostly their own scratch scripts to check a change. This cannot affect a grade: 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.
We found no tampering with tests or the verifier.
[blocked]
Evaluation trajectories
Every evaluation attempt behind this card, solved or not, is in the
harness-hub/harness-adapters-trajectories
bucket: base model and adapter, thinking on and off, on both benchmarks, 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. One gap:
for this adapter on SWE-bench Pro with thinking off, the grades of all 51 tasks are there but only 3 trajectories, the
rest were lost when a partial rerun overwrote the archive.
[blocked]
Use with Hermes Agent
Serve the adapter with vLLM and point Hermes Agent at it
1. Serve the adapter with vLLM
This is the configuration of the evaluations. Keep thinking off, as in training: with it on, the adapter is not
significantly more accurate and generates about 3× more tokens. Prefix caching on this hybrid model needs
--mamba-cache-mode align; without it, every agent turn re-reads its whole history.
2. Point Hermes Agent at it
Install Hermes Agent:
Add the server to ~/.hermes/config.yaml:
Hermes Agent needs at least 64,000 tokens of context.
[blocked]
Use with Hermes Agent (transformers serve)
Serve with transformers and point Hermes Agent at it
transformers serve is a lightweight OpenAI-compatible
server, for local use and experimentation (vLLM is faster under load). It handles Qwen's tool calls out of the box.
Serve the merged checkpoint from Merge the adapter into the base model:
--reasoning off keeps thinking off, as in training. The server listens on http://localhost:8000, so the Hermes Agent
configuration from the vLLM section works as is, with default set to the name the server serves,
here ./Qwen3.8-27B-hermes-merged.
[blocked]
Use with Hermes Agent (llama.cpp)
Serve the GGUF adapter with llama.cpp and point Hermes Agent at it
The GGUF version of Qwen3.8-27B-hermes-adapted is in harness-hub/Qwen3.8-27B-hermes-adapted-GGUF. It runs on top of a GGUF of the base model:
Then use the Hermes Agent configuration from the vLLM section with base_url: http://localhost:8080/v1.
The adapter was trained on the BF16 weights: the closer the base GGUF is to them, the closer you get to the trained
behavior. Q8_0 is a good default; lower-bit quants drift further. The GGUF version has not been re-evaluated.
[blocked]
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:
Then serve it like the base model, without the LoRA flags:
The merged checkpoint can also be converted to GGUF and served with llama.cpp the same way.
[blocked]
Training
Method, data, hyperparameters and hardware
The training script is
examples/async_grpo_harbor in TRL.
For a full write-up, please refer to the release blogpost.