News · Models · News

Hugging Face Qwen3.8-27B-pi-adapted LoRA release: 65% on SWE-bench Pro

By Kalpak Kale · · 4 min read

  • News update
  • Hugging Face
  • Qwen3.8
  • LoRA adapter
  • SWE-bench Pro
  • coding agents
Detailed close-up of computer motherboard showing components like RAM slots and capacitors.
Photo by Valentine Tanasovich on Pexels

In one line: Hugging Face released Qwen3.8-27B-pi-adapted, an Apache-2.0 LoRA adapter that lifts Qwen3.8-27B from 39.2% to 64.7% on SWE-bench Pro with thinking off, and no price is published.

Hugging Face's harness-hub team released Qwen3.8-27B-pi-adapted, a rank-32 LoRA adapter for Qwen3.8-27B. It is trained with reinforcement learning to work inside the pi coding agent, not as a general chat model. The adapter is Apache-2.0 and works only with Qwen3.8-27B. It applies to the q, k, v, o, gate, up and down projections.

The headline result is a jump on SWE-bench Pro hard 51 from 39.2% to 64.7% pass@1 with thinking off. On Terminal-Bench 2.1, pass@1 rises from 39.5% to 55.8%. No price is published for the adapter or the base model; both are open weights under Apache-2.0.

What got released

  • LoRA rank 32, alpha 64, on Qwen3.8-27B. Merged BF16 checkpoint is about 54 GB.
  • Base model is a 27B dense hybrid with 262,144 native context. It alternates Gated DeltaNet linear-attention blocks with Gated Attention blocks across 64 layers.
  • Deployment routes: vLLM with LoRA enabled, llama.cpp with a GGUF adapter on a Q8_0 base, Llama.app on macOS with a 32,768-token context, or merge with PEFT on CPU and serve the BF16 result.
  • Inference VRAM is not disclosed. Training used 2x NVIDIA B200.

How the adapter was trained

Hugging Face calls this a harness adapter: one LoRA per model and harness. Training runs inside the unmodified pi harness on verifiable tasks.

  • Algorithm: AsyncGRPO from TRL, 8 rollouts per task at temperature 0.8.
  • Tasks: 750 scale800 tasks interleaved with 300 TermGrade tasks.
  • Reward: verifier correctness plus a tool-efficiency bonus with weight 0.1.
  • Budget: up to 50 agent steps and 1,800 seconds per rollout, thinking off.
  • Checkpoint: step 160. The run stopped at step 191 of 1,000 planned.

Every tool call passes through safeagents, a rule-based proxy that blocks calls such as fetching benchmark answers from the Hub. Blocked rollouts score 0, so reinforcement learning pushes the model away from reward hacking.

Benchmarks and what they do not show

All numbers are self-reported on small sets, using the pi harness and one attempt per task.

  • SWE-bench Pro hard 51: base 39.2%, pi-adapted 64.7%, difference +25.5 percentage points, p = 0.0023.
  • Terminal-Bench 2.1 on 86 tasks: base 39.5%, pi-adapted 55.8%, difference +16.3 points, p = 0.0013.
  • The adapter solved 15 new SWE-bench Pro tasks and lost 2. On Terminal-Bench 2.1 it gained 16 and lost 2.
  • Median turns fell from 59 to 23 on SWE-bench Pro and from 18 to 8 on Terminal-Bench 2.1 for tasks both models solved.
  • The adapter generates about 4.5 times fewer tokens than the base model with thinking.

The base model with thinking already reaches 64.7% on SWE-bench Pro. So the adapter matches thinking-level accuracy without paying for long reasoning traces. With thinking on, the adapter reaches 66.7% on SWE-bench Pro and 56.6% on Terminal-Bench 2.1.

Deployment and local use

For vLLM, serve Qwen/Qwen3.8-27B with --enable-lora --max-lora-rank 32, thinking disabled, and point pi at http://localhost:8000/v1. For llama.cpp, load the GGUF adapter on a Q8_0 base. On macOS, register the adapter in Llama.app with a 32,768-token context. You can also merge with PEFT on CPU and serve the 54 GB BF16 result without LoRA flags.

One server can host pi and OpenCode adapters side by side because they share one base model. This matters for a small team running local coding agents: you keep the open base model and swap small harness-specific adapters. For a broader look at coding tools, Kalpak's coding and developer tools directory lists what else is available. I have written about shipping client products with an agentic coding tool in A brief goes in, software comes out, and the adapter model fits that pattern: one open base, cheap adapters per harness.

What I would try

For a team building or running local coding agents, the adapter is worth a test only if you already use pi or plan to. The large gain on SWE-bench Pro is encouraging, but the eval sets are small and self-reported. I would first run the GGUF adapter on a local Q8_0 base with llama.cpp to check token savings on a few real repo issues that I know well. If the adapter cuts turns and tokens without losing reliability, it could reduce compute cost for repeated agent runs. I would watch whether Hugging Face releases adapters for other harnesses and whether the token efficiency holds outside pi. Nothing to change in client delivery yet, just measure.

Quick answers

What is Qwen3.8-27B-pi-adapted?

Hugging Face's Qwen3.8-27B-pi-adapted is an Apache-2.0 LoRA adapter for Qwen3.8-27B trained with reinforcement learning to work inside the pi coding agent. It is not a general chat model.

How much does Qwen3.8-27B-pi-adapted improve SWE-bench Pro?

On SWE-bench Pro hard 51, Qwen3.8-27B-pi-adapted improves pass@1 from 39.2% to 64.7% with thinking off, according to Hugging Face's self-reported pi harness numbers.

Does Qwen3.8-27B-pi-adapted cost anything?

No price is published. The adapter and base Qwen3.8-27B are open weights under Apache-2.0, so you pay only for your own compute.

Sources

Where next

  1. Decide what the system must do

    Design around the user's intent before choosing a model or a vector store.

  2. Pick tools that are actually used

    Browse by category; each entry shows the review or discussion that verified it.

  3. Run a small experiment

    One proxy, nineteen developers, and what changed in the numbers.

  4. Test before you ship

    A weighted 21-case evaluation that decides whether a chatbot goes live.

  5. Make it repeatable

    Shipping client products without a dev team assigned, and the process behind it.

  6. Keep up without the noise

    One update a day, each from a primary source you can read yourself.

Start here Three short screens of questions, then one plan across all six steps, written for your goal.

Type to search. Enter opens the first result. Esc closes.