LiquidAI/LFM3-1.7B
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.
Command builder
Train · Local machine · 2 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/LFM3-1.7B
bash train_local.sh
Guide
LoRA adapters for pi, hermes and opencode on LiquidAI/LFM3-1.7B,
trained for 400 steps on 550 SmolDataEnvs tasks (300 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 (h200x2, ~48h) |
bash train_local.sh (2 GPUs) |
| Eval | bash eval_hf_jobs.sh (h200) |
bash eval_local.sh (1 GPU) |
Model-specific flags:
- LFM3 is not in released vLLM yet. The launcher builds vLLM at commit fac2ce2e
(--vllm-commit) and overlays three model files from
atmikshetty/vllm@5f67fbcb
(--vllm-overlay).
- --trust-remote-code for both the trainer and vLLM.
- --tool-call-parser qwen3_coder --reasoning-parser qwen3, --token-budget 65536
- The model is small, so the three trainers share GPU 1 (--train-device 1,1,1).
Released checkpoints (job 6aedb4820e0338d1bb8107eb):
| Harness | Step | Repo |
|---|---|---|
| pi | 400 | harness-hub/LFM3-1.7B-pi |
| hermes | 400 | harness-hub/LFM3-1.7B-hermes |
| opencode | 400 | harness-hub/LFM3-1.7B-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"