A LoRA trained by harness-hub on Qwen3.8-27B using TRL's AsyncGRPO reinforcement learning (rank 32, uploaded on 11 16, still being updated as of 11 24), specifically designed to serve as the underlying model for the open-source coding agent pi, handling software engineering and terminal tasks. Training used Harbor tasks (alternating between 750 scale800 tasks and 300 TermGrade tasks), with rewards based on task verifier correctness plus a small bonus for tool efficiency. Thinking was disabled during training, and it is also recommended to keep thinking disabled during usage. The same account has another similar adapter trained for OpenCode; the full recipe will be published on the Hugging Face blog.
Why It Matters By swapping only the LoRA while keeping the same base model, performance on coding and terminal tasks improves significantly, with far fewer generated tokens. The training script has been added to TRL, allowing it to be used as a reference for training other agent frameworks.
Upvotes 130.5 · Likes 1156 · Downloads 3844
Reasons
- The author claims that under the pi framework (single attempt, 100 step limit, thinking disabled): on SWE-bench Pro's hardest 51 problems, the score rose from 39.2% to 64.7%, and Terminal-Bench 2.1 rose from 39.5% to 55.8%; Terminal-Bench 2.1 matches the base model with maximum thinking enabled (56.6% vs. 54.2%), while SWE-bench Pro remains about 10 points lower (64.7% vs. 74.5%)
- On problems solved by both models, the number of required rounds is less than half that of the base model; compared to the base model with maximum thinking enabled, approximately 4.5 times fewer tokens are generated per problem and approximately 3 times fewer model calls are made
- The model card publishes all evaluation trajectories and notes results after rerunning following two corrections (truncated thinking output and base model failures due to sandbox tunnel interruptions); Apache 2.0
Usage
- vLLM: Run
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, and disable thinking usingenable\_thinking false; in pi's~/.pi/agent/models.json, the API must be set toopenai-completions - Local: Serve Qwen3.8-27B's Q8_0 GGUF model with the Qwen3.8-27B-pi-lora-F16.gguf adapter using llama.cpp, configured with the pi-llama extension; on macOS, it can be registered in Llama.app; alternatively, use PEFT to merge into a standalone BF16 model of approximately 54GB
- For OpenCode users, switch to harness-hub/Qwen3.8-27B-opencode-adapted; the author claims that with thinking disabled, SWE-bench Pro's hardest 51 problems improve from 35.3% to 51.0%
Risks
- Scores were measured only under the pi framework, at temperature 0.8, and in text-only settings; the author states these cannot be directly compared to scores on Qwen3.8-27B's official model card; only two benchmarks were evaluated, and SWE-bench Pro used only the hardest 51 problems
- Training stopped at step 191 out of a planned 1000 steps, and the released version is from step 160; the GGUF version has not been re-evaluated, and low-bit base models may deviate from training-time performance; scores are self-reported by the author and have not been independently verified in this entry