Qwen3.8-27B-pi-adapted: Efficient LoRA Adapter for Coding Agents

Linkharness-hubTool

A LoRA adapter trained with reinforcement learning optimises Qwen3.8-27B for the pi coding agent across software engineering and terminal tasks. Operating with thinking disabled, it approaches maximum-effort reasoning accuracy while cutting token generation by approximately 4.5×, making local agent execution significantly faster and lighter.

Key points

  1. Scores 55.8% (up from 39.5%) on Terminal-Bench 2.1 without thinking, matching the base model running at maximum reasoning effort (54.2%).
  2. Increases the success rate on SWE-bench Pro (hard 51) from 39.2% to 64.7%.
  3. Generates roughly 4.5× fewer tokens per task compared to the base model with thinking enabled.
  4. Requires less than half the interaction turns of the base model on tasks both solve successfully.
  5. Can be served locally via vLLM, transformers serve, llama.cpp, or loaded as GGUF quantisations.

Why it matters

Software engineers and agencies deploying local coding agents can substantially reduce compute overhead and execution latency without sacrificing task accuracy.

Analysis

Targeted Optimisation Over Token Overhead

The Qwen3.8-27B-pi-adapted LoRA adapter targets a core bottleneck in agentic workflows: excessive reasoning traces that burn context limits and time budgets. Trained with reinforcement learning techniques (including TRL and GRPO) specifically for the pi coding agent harness, the adapter is optimised to execute software engineering and terminal tasks directly.

Performance and Benchmark Highlights

  • Reduced Timeouts and Steps: On SWE-bench Pro, 20 of the base model's 31 failed attempts timed out after reaching the 100-step ceiling, whereas none of the adapter's failures did. On tasks both models solve, the adapter requires less than half the turns.
  • Reasoning Parity Without Hidden Chains: On Terminal-Bench 2.1, the adapter with thinking disabled matches the base model running at its highest reasoning effort (xhigh)—56.6% vs 54.2% across paired tasks. On SWE-bench Pro, it achieves 64.7% versus 74.5%, but generates around 4.5× fewer tokens.
  • Direct Tool Orchestration: Rather than relying on massive hidden <think> blocks, the adapter produces concise natural-language reasoning (approx. 160 tokens per turn) directly between tool invocations.

Deployment Considerations

When deploying via vLLM, reasoning should remain disabled (enable_thinking: false). Because the underlying model features a hybrid architecture, --mamba-cache-mode align must be specified alongside prefix caching to avoid re-evaluating the full history on each agent step. Compatibility is also provided for GGUF in llama.cpp and transformers serve.

Found in

Summary generated by AI (Gemini 3.8 Flash, 25 November 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Video

    Video:CURT

    Harness Adapters: LoRA Fine-Tuning for Coding Agents

    Hugging Face introduced harness-specific LoRA adapters trained via reinforcement learning for individual coding agents. Using Qwen 3.8 27B inside the Pi agent, the approach delivers massive benchmark gains with substantially lower token and step counts. The video demonstrates how training works, how reward hacking is prevented, and where the limits lie.

    AI & LLMs· Demo

  • Link:ybelkada

    Harness-Hub: LoRA Adapters Tuned for Coding Agent Frameworks

    Harness-Hub provides small LoRA adapters trained with reinforcement learning to specialise open models for specific agent harnesses such as Pi, OpenCode, and Hermes. This enables models to achieve high benchmark scores without reasoning modes while significantly cutting token usage and tool calls. It helps developers run fast, cost-effective coding agents locally or self-hosted.

    AI & LLMs· Tool

  • Article:Younes B, Lysandre, Nathan Habib

    Harness Adapters: Safe RL for Efficient AI Agent Development

    Hugging Face researchers introduce Harness Adapters: compact LoRA adapters trained via reinforcement learning directly inside agent harnesses like pi, opencode, and hermes. Served from a single base model, they reduce tool calls while maintaining or improving accuracy. A proxy called safeagents blocks reward-hacking shortcuts.

    AI & LLMs· Announcement

  • Link:Kwaipilot

    KAT-Coder-V2.5-Dev: Open-Weight MoE Model for Coding Agents

    Kwaipilot has released KAT-Coder-V2.5-Dev, an open-weight Mixture of Experts model based on Qwen3.6-35B-A3B. Featuring 35 billion total and 3 billion activated parameters, it has been specifically post-trained for agentic software engineering tasks.

    AI & LLMs· Tool

  • Article:Luis Chavez-Mattos

    Ornith 1.5 35B-A3B Benchmarks: MoE Model Outperforms Qwen3.6 in Coding and Agentic Tasks

    Deep Reinforce has introduced Ornith 1.5 35B-A3B, a mixture-of-experts model activating roughly 3 billion parameters per token out of 35 billion. According to published benchmarks, it surpasses direct competitors like Qwen3.6-35B across coding and agentic tasks, while closing the gap on much larger models such as Qwen3.5-397B.

    AI & LLMs· News

  • Link:Unsloth AI

    Unsloth Releases Dynamic V3.0 GGUF Quants for Qwen3.8-27B

    Unsloth AI has published GGUF quantizations for the Qwen3.8-27B model under an Apache-2.0 licence. Utilizing their new Dynamic V3.0 quantization format, Unsloth claims over 10% higher top-1 accuracy at identical sizes compared to alternative quants. Qwen3.8-27B is a 27-billion parameter dense vision-language model featuring native text, image, and video comprehension alongside granular thinking controls.

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.