webAI-Official/TwIL-8B
Experiment: one LoRA adapter per agent harness (pi, hermes, opencode) on a model not trained on agentic data, with more agent steps and a longer rollout timeout.
Command builder
Train · Local machine · 4 GPUs, H200 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/TwIL-8B
bash train_local.sh
Guide
LoRA adapters for pi, hermes and opencode on webAI-Official/TwIL-8B,
a model not trained on agentic data. Trained on 400 SmolDataEnvs tasks (150 medium, 250 hard) and 230 traj2envs tasks.
Setup and shared settings: ../README.md. Full hyperparameters: recipe.yaml.
| HF Jobs | Local (untested) | |
|---|---|---|
| Train | bash train_hf_jobs.sh (h200x4, ~48h) |
bash train_local.sh (4 GPUs) |
| Eval | bash eval_hf_jobs.sh (h200) |
bash eval_local.sh (1 GPU) |
Model-specific flags:
- vLLM serves the model with chat_template.jinja, which the HF Jobs scripts upload to the bucket
as twil_chat_template.jinja. The trainer uses --qwen3-5-response-template.
- --tool-call-parser qwen3_coder --reasoning-parser qwen3, --token-budget 65536
- --agent-step-limit 30 --agent-timeout 1200: the model needs more steps per task.
- --max-inflight 12 (48 for the LFM models): its long reasoning fills vLLM's memory sooner.
Steps: the launch command and the released checkpoints use 100 steps (--max-steps 100), but the blog post's table
says 300.
Released checkpoints (job 6aedb49dc78863f9c63408be):
| Harness | Step | Repo |
|---|---|---|
| pi | 90 | harness-hub/TwIL-8B-pi |
| hermes | 60 | harness-hub/TwIL-8B-hermes |
| opencode | 100 | harness-hub/TwIL-8B-opencode |
Hyperparameters
Serving (vLLM)
Hardware
Datasets
Training
Evaluation
TRL version
This recipe runs on huggingface/trl main at 9f8725f7, the merge of #7966: no fork and no patch, but not in a release yet. The launchers install it for you.
pip install "trl @ git+https://github.com/huggingface/trl.git@9f8725f7ac8e840f1304c10c4521fc3c38de8ca5"