TRL /Recipes

LiquidAI/LFM2.5-24B-A2B

One LoRA adapter per agent harness (pi, hermes, opencode), trained with async GRPO inside the unmodified harness on verifiable Harbor tasks, with safeagents checking every tool call.

AsyncGRPOTrainerH200LoRA r32200 stepspi · hermes · opencodeloraagentic-rlharborsafeagentsmulti-harness

Command builder

Train · Local machine · 4 GPUs, H200 class (untested)

Not run as written yet
hf download trl-lib/trl-recipes --repo-type space --include "recipes/harness-adapters/*" --local-dir trl-recipes
cd trl-recipes/recipes/harness-adapters/LFM2.5-24B-A2B
bash train_local.sh

Guide

LoRA adapters for pi, hermes and opencode on LiquidAI/LFM2.5-24B-A2B, trained for 200 steps on 300 SmolDataEnvs tasks (100 medium, 200 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, ~36h) bash train_local.sh (4 GPUs)
Eval bash eval_hf_jobs.sh (h200) bash eval_local.sh (1 GPU)

Model-specific flags: - --tool-call-parser lfm2 --reasoning-parser qwen3 - vLLM on GPU 0 and one trainer per harness on GPUs 1, 2 and 3 (--train-device 1,2,3)

Released checkpoints (job 6aedb47a0e0338d1bb8107e8):

Harness Step Repo
pi 170 harness-hub/LFM2.5-24B-A2B-pi-v2
hermes 50 harness-hub/LFM2.5-24B-A2B-hermes-v2
opencode 160 harness-hub/LFM2.5-24B-A2B-opencode

Hyperparameters

lora_r32
lora_target_modulesall-linear
learning_rate1e-5
num_generations8
gradient_accumulation_steps4
max_staleness4
temperature0.8
max_completion_length16,384
max_output_tokens32,768
max_model_len131,072
agent_step_limit17
agent_timeout_s600
max_inflight48
tool_efficiency_weight0.1
max_steps200
save_steps10

Serving (vLLM)

tool_call_parserlfm2
reasoning_parserqwen3

Hardware

HF Jobsh200x4 untested
Local machine4 GPUs, H200 class (untested) untested

Datasets

Training

Evaluation

final-heldoutFineEnvs/SmolDataEnvs-harbor-train, 150 easy/medium tasks from index 1000
traj2envs-heldoutharness-hub/traj2envs-rl, the 40 tasks from index 230

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"

Files

Shared by the project

Added 2026-11-13 Report an issue