Models

Hugging Face trained Qwen3.8-27B LoRA adapters for the pi, OpenCode, and Hermes harnesses

Hugging Face released harness adapters — LoRA adapters trained with RL inside unmodified agent harnesses. The adapters raise accuracy and cut token use for Qwen3.8-27B on Terminal-Bench 2.1. Three separate adapters are merged into one super-adapter that runs unchanged across all three harnesses.

Hugging Face trained Qwen3.8-27B LoRA adapters for the pi, OpenCode, and Hermes harnesses
Why this matters for business

Companies can take the ready-made recipe and train small LoRA adapters for their own harness and task set without retraining the full model. This cuts tool calls and token use while holding or raising accuracy on real engineering tasks.

Training adapters for harnesses

Hugging Face trained one LoRA adapter for Qwen3.8-27B for each of three harnesses: pi 1.5.2, OpenCode 2.2.7, and Hermes Agent v0.22.6. Training used GRPO with AsyncGRPOTrainer from TRL inside unmodified harnesses, with a proxy between the harness and vLLM.

All stages—task generation, validation, and rollouts—ran on Hugging Face Jobs with OpenEnv and harbor. Adapters were attached to all linear layers, and thinking mode was turned off during rollouts.

For the final runs, a learning rate of 2e-5 was chosen after 50-step tests. Each adapter was trained on two NVIDIA B200s, with the GPUs split between vLLM and the trainer.

Results on Terminal-Bench 2.1

With the base Qwen3.8-27B model and the pi harness, Terminal-Bench 2.1 scored 39% at an average of 2.9K tokens per task. After the RL adapter was added, pass@1 rose to 55%, and average token use fell to 1.5K.

The model called tools less often and solved tasks on the first try more often. Each of the three adapters improved both accuracy and efficiency on its own harness.

Similar gains were recorded on data-analysis and code-building tasks from earlier experiments.

Merging and distribution

The three separate LoRAs were merged into one super-adapter that runs unchanged under pi, OpenCode, and Hermes Agent. All artifacts—adapters, GGUFs, RL tasks, and the safeagents plugin—are published in a collection on Hugging Face.

The task set was built from SWE-smith, SWE-Gym, and Tasksmith, with 278 valid examples selected after an openenv validate check and a filter on solution variance of the base model.

The recipe is fully reproducible: users can rerun the training for their own tasks and harness.

Test the hypothesis before talking to the team

In a couple of minutes, the Asphera AI consultant will break down your task, show where AI will have an impact, and put together a pilot hypothesis.

Discuss it directly