Qwen/Qwen3.8-27B
One LoRA adapter per agent harness (pi, hermes, opencode) on Qwen3.8-27B, trained with async GRPO on agentic coding and terminal tasks (scale800 + TermGrade), one job per harness, thinking off.
Command builder
Train · Local machine · 2 GPUs per harness, H200 or B200 class (untested)
hf download trl-lib/trl-recipes --repo-type space --include "recipes/harness-adapters/*" --local-dir trl-recipes
cd trl-recipes/recipes/harness-adapters/Qwen3.8-27B
HARNESS=pi bash train_local.sh
Guide
LoRA adapters for pi, hermes and opencode on Qwen/Qwen3.8-27B, trained for
up to 1,000 steps. Training data is the 750 scale800 tasks interleaved with 300 TermGrade tasks. Setup and shared
settings: ../README.md. Full hyperparameters: recipe.yaml.
| HF Jobs (untested) | Local (untested) | |
|---|---|---|
| Train | bash train_hf_jobs.sh, one h200x2 job per harness |
HARNESS=pi bash train_local.sh, one harness per machine (2 GPUs) |
| Eval | BENCH=sbp\|tb\|s800\|automationbench ... bash eval_hf_jobs.sh (h200) |
BENCH=sbp\|tb\|s800\|automationbench ... bash eval_local.sh (1 GPU) |
How this differs from the LFM / TwIL recipes:
- Training script and TRL. This folder has its own async_grpo_harbor.py, built on
HarnessAsyncGRPOTrainer. That trainer comes from TRL's async-grpo-shared-vllm branch
(younesbelkada/trl@e498acc6), not the launcher's pinned TRL. Its changes relative to upstream are in
trl.patch.
The HF Jobs and local launchers install it from git (--trl-wheel).
- One job per harness, not one job for all three.
- Thinking off. Each run has 50 agent steps and 1800 s, and --no-responses-thinking.
- vLLM settings:
- --language-model-only, plus prefix caching with --mamba-cache-mode align, which the gated-DeltaNet layers
need.
- Safeagents plugin. It is the generic Harbor plugin, scripts/atif_harbor.py.
Evaluation #
Evals compare each checkpoint with a base eval run the same way, under the same tag: run the base once per benchmark
(POLICIES="Qwen/Qwen3.8-27B@pi,hermes,opencode"). s800 is the scale800 held-out set: the repositories left out of
training, under training's own limits (1800 s, 50 steps).
Hyperparameters
Serving (vLLM)
Hardware
Datasets
Training
Evaluation
TRL version
This recipe runs on a TRL fork. trl.patch holds the changes to trl/ relative to the upstream base commit.
younesbelkada/trl@e498acc6 async-grpo-shared-vllmhuggingface/trl@d115286bgit clone https://github.com/huggingface/trl && cd trl
git checkout d115286bc5aef8d346e8510bfe312803c7881c4a
curl -sL https://huggingface.co/spaces/trl-lib/trl-recipes/resolve/main/recipes/harness-adapters/Qwen3.8-27B/trl.patch | git applyDownload trl.patch (5 files changed)