Qwen3.8-27B-pi-adapted
LoRA adapter for coding agents
2 min readupdated
This adapter (a lightweight add-on built on top of the base model) was trained using reinforcement learning to act as the "brain" for the pi coding agent on software engineering and terminal tasks. The model significantly boosts accuracy on complex engineering challenges, delivering results comparable to the base model's maximum reasoning mode while generating 4.5 times fewer tokens. This release will benefit developers and researchers using local LLMs for coding automation and terminal workflows.
Key features
- High accuracy: performance gains on SWE-bench Pro and Terminal-Bench 2.1 compared to the base model.
- Token efficiency: matches the accuracy level of the base model's heavy reasoning mode without enabling the special thinking mode.
- Fewer steps: requires half as many interaction turns to solve similar tasks.
- Engineering-ready: optimized specifically for agent tools and terminal calls.
What you can do
- Run a coding agent: connect the model via vLLM or transformers serve to power the local pi agent.
- Fix bugs: automate finding and fixing bugs across code repositories using terminal turns.
- Test benchmarks: evaluate quality on SWE-bench Pro or Terminal-Bench 2.1.
- Use GGUF: run a quantized version of the adapter locally using llama.cpp or Llama.app on macOS.
Example
vllm serve Qwen/Qwen3.8-27B \
--enable-lora --max-lora-rank 32 \
--lora-modules qwen3.8-pi=harness-hub/Qwen3.8-27B-pi-adapted \
--language-model-only --enable-prefix-caching --mamba-cache-mode align \
--enable-auto-tool-choice --tool-call-parser qwen3_xml --reasoning-parser qwen3 \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--max-model-len 131072Read more
Details• SWE-bench Pro (hard 51): accuracy jumped from 39.2% to 64.7%.
• Terminal-Bench 2.1: accuracy increased from 39.5% to 55.8%.
• Training: the adapter uses a LoRA rank of 32 and was trained on pi agent trajectories.
• Limitations: recommended to use with the reasoning mode disabled (`enable_thinking: false`).










Comments