{
 "id": "harness-adapters/LFM3-1.7B",
 "path": "AsyncGRPOTrainer/harness-adapters/LFM3-1.7B",
 "trainers": [
  "AsyncGRPOTrainer"
 ],
 "project": "harness-adapters",
 "name": "LFM3-1.7B",
 "org": "LiquidAI",
 "avatar": "https://cdn-avatars.huggingface.co/v1/production/uploads/61b8e2ba285851687028d395/EsTgVtnM2IqVRKgPdfqcB.png",
 "hub_url": "https://huggingface.co/collections/harness-hub/lfm3-17b-harness-adapters-6af17c12ba04ccf2dcab301f",
 "meta": {
  "title": "LFM3-1.7B harness adapters",
  "project": "harness-adapters",
  "trainer": "AsyncGRPOTrainer",
  "model_id": "LiquidAI/LFM3-1.7B",
  "description": "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.",
  "tags": [
   "lora",
   "agentic-rl",
   "harbor",
   "safeagents",
   "multi-harness"
  ],
  "harnesses": [
   "pi",
   "hermes",
   "opencode"
  ],
  "date_added": "2026-11-13",
  "blog": "https://huggingface.co/spaces/harness-hub/harness-adapters"
 },
 "hardware": {
  "hf_jobs": "h200x2",
  "local": "2 GPUs, H200 class (untested)"
 },
 "datasets": {
  "train": [
   "FineEnvs/SmolDataEnvs-harbor-train",
   "harness-hub/traj2envs-rl@191a751bda511eada76f6a9a76513d143321a64a"
  ],
  "eval": {
   "final-heldout": "FineEnvs/SmolDataEnvs-harbor-train, 150 easy/medium tasks from index 1000",
   "traj2envs-heldout": "harness-hub/traj2envs-rl, the 40 tasks from index 230"
  }
 },
 "hyperparameters": {
  "lora_r": 32,
  "lora_target_modules": "all-linear",
  "learning_rate": 1e-05,
  "num_generations": 8,
  "gradient_accumulation_steps": 4,
  "max_staleness": 4,
  "temperature": 0.8,
  "max_completion_length": 16384,
  "max_output_tokens": 32768,
  "max_model_len": 131072,
  "token_budget": 65536,
  "agent_step_limit": 17,
  "agent_timeout_s": 600,
  "max_inflight": 48,
  "tool_efficiency_weight": 0.1,
  "max_steps": 400,
  "save_steps": 10
 },
 "vllm": {
  "tool_call_parser": "qwen3_coder",
  "reasoning_parser": "qwen3",
  "trust_remote_code": true,
  "commit": "fac2ce2eb3633c44a104a66dbb30d0e6c7f4493e",
  "overlays_from": "https://github.com/atmikshetty/vllm/tree/5f67fbcbb2336b0e551c0df2b4c0eb51b030c553"
 },
 "trl": {
  "commit": "9f8725f7ac8e840f1304c10c4521fc3c38de8ca5",
  "pr": 7966
 },
 "scripts": {
  "train": {
   "hf_jobs": "train_hf_jobs.sh",
   "local": "train_local.sh"
  },
  "eval": {
   "hf_jobs": "eval_hf_jobs.sh",
   "local": "eval_local.sh"
  }
 },
 "builder": {
  "verified": {
   "hf_jobs": false,
   "local": false
  },
  "eval": [
   {
    "env": "SPLIT",
    "label": "Held-out split",
    "choices": [
     "final-heldout",
     "traj2envs-heldout"
    ]
   },
   {
    "env": "CHECKPOINTS",
    "label": "Checkpoints",
    "input": true,
    "placeholder": "<path|glob|hub id>@<harnesses> ... (empty: the script's default)"
   }
  ]
 },
 "readme": "# LFM3-1.7B harness adapters\n\nLoRA adapters for pi, hermes and opencode on [`LiquidAI/LFM3-1.7B`](https://huggingface.co/LiquidAI/LFM3-1.7B),\ntrained for 400 steps on 550 SmolDataEnvs tasks (300 medium, 250 hard) and 230 traj2envs tasks. Setup and shared\nsettings: [../README.md](../README.md). Full hyperparameters: [recipe.yaml](recipe.yaml).\n\n| | HF Jobs | Local (untested) |\n|---|---|---|\n| Train | `bash train_hf_jobs.sh` (h200x2, ~48h) | `bash train_local.sh` (2 GPUs) |\n| Eval | `bash eval_hf_jobs.sh` (h200) | `bash eval_local.sh` (1 GPU) |\n\nModel-specific flags:\n- LFM3 is not in released vLLM yet. The launcher builds vLLM at commit `fac2ce2e`\n  (`--vllm-commit`) and overlays three model files from\n  [atmikshetty/vllm@5f67fbcb](https://github.com/atmikshetty/vllm/tree/5f67fbcbb2336b0e551c0df2b4c0eb51b030c553)\n  (`--vllm-overlay`).\n- `--trust-remote-code` for both the trainer and vLLM.\n- `--tool-call-parser qwen3_coder --reasoning-parser qwen3`, `--token-budget 65536`\n- The model is small, so the three trainers share GPU 1 (`--train-device 1,1,1`).\n\nReleased checkpoints (job `6aedb4820e0338d1bb8107eb`):\n\n| Harness | Step | Repo |\n|---|--:|---|\n| pi | 400 | `harness-hub/LFM3-1.7B-pi` |\n| hermes | 400 | `harness-hub/LFM3-1.7B-hermes` |\n| opencode | 400 | `harness-hub/LFM3-1.7B-opencode` |\n",
 "files": {
  "train_local.sh": "#!/bin/bash\n# LFM3-1.7B harness adapters on one local machine with 2 GPUs:\n# vLLM on GPU 0, the three trainers sharing GPU 1. The released run used H200s (141 GB).\n#\n# Same launcher and training flags as train_hf_jobs.sh, run here with `uv run` instead of on HF Jobs. Not run locally\n# yet. Needs uv, 2 GPUs and HF_TOKEN (also what the HF sandboxes run under). Runs are written to $DATA_ROOT/runs/.\n#\n#   bash train_local.sh\n#   MAX_STEPS=2 bash train_local.sh                   short smoke run\nset -euo pipefail\n\nMAX_STEPS=\"${MAX_STEPS:-400}\"\nDATA_ROOT=\"${DATA_ROOT:-$PWD/outputs}\"\nTRL_WHEEL=\"${TRL_WHEEL:-}\"\nREV=191a751bda511eada76f6a9a76513d143321a64a  # harness-hub/traj2envs-rl revision the adapters were trained on\nP=https://raw.githubusercontent.com/atmikshetty/vllm/5f67fbcbb2336b0e551c0df2b4c0eb51b030c553  # LFM3 vLLM model files\nHERE=\"$(cd \"$(dirname \"$0\")\" && pwd)\"\nSCRIPTS=\"$HERE/../scripts\"\nexport HF_TOKEN=\"${HF_TOKEN:-$(cat ~/.cache/huggingface/token)}\"\n# Names this run's folders (logs/<id>, runs/<model>-<harness>-<id>-...), as HF_JOB_ID does on HF Jobs\nexport JOB_ID=\"${JOB_ID:-local-$(date +%Y%m%d-%H%M%S)}\"\nexport PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True\n\nTRL_ARGS=()\nif [ -n \"$TRL_WHEEL\" ]; then TRL_ARGS=(--trl-wheel \"$TRL_WHEEL\"); fi\n\nuv run \"$SCRIPTS/launcher_train.py\" \\\n    --data-root \"$DATA_ROOT\" ${TRL_ARGS[@]+\"${TRL_ARGS[@]}\"} \\\n    --train-script-url \"file://$SCRIPTS/async_grpo_harbor.py\" --expose gradio \\\n    --pip-install \"safeagents@git+https://github.com/huggingface/safeagents@5e683fa atif-scan==0.8.15 rich markdown-it-py mdurl pygments\" \\\n    --model LiquidAI/LFM3-1.7B --trust-remote-code \\\n    --vllm-commit fac2ce2eb3633c44a104a66dbb30d0e6c7f4493e \\\n    --vllm-overlay \"$P/vllm/model_executor/models/lfm3.py\" \\\n    --vllm-overlay \"$P/vllm/model_executor/models/registry.py\" \\\n    --vllm-overlay \"$P/vllm/model_executor/layers/mamba/ops/causal_conv1d.py\" \\\n    --vllm-extra-args=--trust-remote-code \\\n    --tool-call-parser qwen3_coder --reasoning-parser qwen3 --max-model-len 131072 \\\n    --run pi:pi:medium:300,hard:250 \\\n    --run hermes:hermes:medium:300,hard:250 \\\n    --run opencode:opencode:medium:300,hard:250 \\\n    --split FineEnvs/SmolDataEnvs-harbor-train --n-tasks 550 \\\n    --mix-split \"harness-hub/traj2envs-rl@$REV:230\" --max-output-tokens 32768 \\\n    --sandbox hf-sandbox --docker-image docker.io/ybelkada/env-data-agent-train:opencode-1.19.5 \\\n    --vllm-device 0 --train-device 1,1,1 \\\n    --max-inflight 48 --max-lora-rank 32 --max-loras 18 \\\n    --reward-key correctness,reward --num-generations 8 --gradient-accumulation-steps 4 --max-staleness 4 \\\n    --max-completion-length 16384 --agent-step-limit 17 --agent-timeout 600 --temperature 0.8 \\\n    --lora-r 32 --lora-target-modules all-linear --learning-rate 1e-5 --tool-efficiency-weight 0.1 \\\n    --token-budget 65536 \\\n    --safeagents --safeagents-plugin \"$SCRIPTS/atif_smoldataenvs.py:checks\" --safeagents-plugin \"$SCRIPTS/atif_traj2envs.py:checks\" \\\n    --max-steps \"$MAX_STEPS\" --save-steps 10 --save-total-limit 0\n",
  "train_hf_jobs.sh": "#!/bin/bash\n# LFM3-1.7B harness adapters on HF Jobs: one vLLM (GPU 0) serving the base and every adapter version, and three LoRA\n# AsyncGRPO trainers (pi, hermes, opencode) sharing GPU 1, on 2x H200.\n#\n# This is the command of the released run (HF job 6aedb4820e0338d1bb8107eb, 2026-11-06), with the bucket as a variable.\n# LFM3 needs a vLLM build from a pinned commit plus three model files from atmikshetty/vllm (--vllm-overlay).\n#\n#   bash train_hf_jobs.sh\n#   BUCKET=<user>/<bucket> MAX_STEPS=2 bash train_hf_jobs.sh          short smoke run\n#   TRL_WHEEL=/outputs/wheels/trl-....whl bash train_hf_jobs.sh       a TRL wheel already on the bucket, over the\n#                                                                     launcher's pinned TRL\nset -euo pipefail\n\nBUCKET=\"${BUCKET:?set BUCKET=<your user>/<bucket>, the bucket the job mounts on /outputs}\"\nMAX_STEPS=\"${MAX_STEPS:-400}\"\nTRL_WHEEL=\"${TRL_WHEEL:-}\"\nREV=191a751bda511eada76f6a9a76513d143321a64a  # harness-hub/traj2envs-rl revision the adapters were trained on\nP=https://raw.githubusercontent.com/atmikshetty/vllm/5f67fbcbb2336b0e551c0df2b4c0eb51b030c553  # LFM3 vLLM model files\nSCRIPTS=\"$(cd \"$(dirname \"$0\")/../scripts\" && pwd)\"\n\n# The job reads the training script and the safeagents plugins from the bucket, mounted on /outputs\nfor f in async_grpo_harbor.py atif_smoldataenvs.py atif_traj2envs.py; do\n    hf buckets cp \"$SCRIPTS/$f\" \"hf://buckets/$BUCKET/$f\"\ndone\n\nTRL_ARGS=()\nif [ -n \"$TRL_WHEEL\" ]; then TRL_ARGS=(--trl-wheel \"$TRL_WHEEL\"); fi\n\nhf jobs uv run --detach \\\n    --flavor h200x2 --image huggingface/trl --secrets HF_TOKEN --timeout 48h \\\n    --env PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \\\n    --volume \"hf://buckets/$BUCKET:/outputs\" \\\n    \"$SCRIPTS/launcher_train.py\" -- \\\n    --data-root /outputs ${TRL_ARGS[@]+\"${TRL_ARGS[@]}\"} \\\n    --pip-install \"safeagents@git+https://github.com/huggingface/safeagents@5e683fa atif-scan==0.8.15 rich markdown-it-py mdurl pygments\" \\\n    --model LiquidAI/LFM3-1.7B --trust-remote-code \\\n    --vllm-commit fac2ce2eb3633c44a104a66dbb30d0e6c7f4493e \\\n    --vllm-overlay \"$P/vllm/model_executor/models/lfm3.py\" \\\n    --vllm-overlay \"$P/vllm/model_executor/models/registry.py\" \\\n    --vllm-overlay \"$P/vllm/model_executor/layers/mamba/ops/causal_conv1d.py\" \\\n    --vllm-extra-args=--trust-remote-code \\\n    --tool-call-parser qwen3_coder --reasoning-parser qwen3 --max-model-len 131072 \\\n    --run pi:pi:medium:300,hard:250 \\\n    --run hermes:hermes:medium:300,hard:250 \\\n    --run opencode:opencode:medium:300,hard:250 \\\n    --split FineEnvs/SmolDataEnvs-harbor-train --n-tasks 550 \\\n    --mix-split \"harness-hub/traj2envs-rl@$REV:230\" --max-output-tokens 32768 \\\n    --sandbox hf-sandbox --docker-image docker.io/ybelkada/env-data-agent-train:opencode-1.19.5 \\\n    --vllm-device 0 --train-device 1,1,1 \\\n    --max-inflight 48 --max-lora-rank 32 --max-loras 18 \\\n    --reward-key correctness,reward --num-generations 8 --gradient-accumulation-steps 4 --max-staleness 4 \\\n    --max-completion-length 16384 --agent-step-limit 17 --agent-timeout 600 --temperature 0.8 \\\n    --lora-r 32 --lora-target-modules all-linear --learning-rate 1e-5 --tool-efficiency-weight 0.1 \\\n    --token-budget 65536 \\\n    --safeagents --safeagents-plugin /outputs/atif_smoldataenvs.py:checks --safeagents-plugin /outputs/atif_traj2envs.py:checks \\\n    --max-steps \"$MAX_STEPS\" --save-steps 10 --save-total-limit 0\n",
  "eval_local.sh": "#!/bin/bash\n# Held-out pass@1 of LFM3-1.7B and its harness adapters on one local GPU. One vLLM serves the base and every\n# checkpoint as an adapter, with one sandbox server per checkpoint. Results land in $DATA_ROOT/eval/<label>_<split>/.\n#\n# Same flags as eval_hf_jobs.sh, run here with `uv run`. Not run locally yet.\n#\n#   bash eval_local.sh                                                         the base model\n#   CHECKPOINTS=\"LiquidAI/LFM3-1.7B@pi,hermes,opencode $PWD/outputs/runs/<run>/checkpoint-50@pi\" bash eval_local.sh\n#   SPLIT=traj2envs-heldout bash eval_local.sh\nset -euo pipefail\n\nDATA_ROOT=\"${DATA_ROOT:-$PWD/outputs}\"\nSPLIT=\"${SPLIT:-final-heldout}\"  # final-heldout | traj2envs-heldout\n# <path|glob|hub id>@<harnesses>, space-separated\nCHECKPOINTS=\"${CHECKPOINTS:-LiquidAI/LFM3-1.7B@pi,hermes,opencode}\"\nP=https://raw.githubusercontent.com/atmikshetty/vllm/5f67fbcbb2336b0e551c0df2b4c0eb51b030c553  # LFM3 vLLM model files\nHERE=\"$(cd \"$(dirname \"$0\")\" && pwd)\"\nSCRIPTS=\"$HERE/../scripts\"\nexport HF_TOKEN=\"${HF_TOKEN:-$(cat ~/.cache/huggingface/token)}\"\nexport JOB_ID=\"${JOB_ID:-local-$(date +%Y%m%d-%H%M%S)}\"\n\nif [ \"$SPLIT\" = final-heldout ]; then\n    SPLIT_ARGS=(--split FineEnvs/SmolDataEnvs-harbor-train --task-offset 1000 --difficulty easy,medium --n-tasks 150\n        --docker-image docker.io/ybelkada/env-data-agent-train:opencode-1.19.5)\nelse\n    SPLIT_ARGS=(--split harness-hub/traj2envs-rl@191a751bda511eada76f6a9a76513d143321a64a --task-offset 230 --n-tasks 40)\nfi\nread -r -a CHECKPOINT_LIST <<< \"$CHECKPOINTS\"\n\nuv run \"$SCRIPTS/launcher_eval.py\" \\\n    --data-root \"$DATA_ROOT\" --eval-script-url \"file://$SCRIPTS/evaluate_harbor.py\" \\\n    --eval-lora --thinking --sandbox hf-sandbox --expose gradio \\\n    --model LiquidAI/LFM3-1.7B --max-model-len 131072 --eval-tag \"$SPLIT\" \\\n    --eval-harnesses pi,hermes,opencode \\\n    --eval-checkpoints \"${CHECKPOINT_LIST[@]}\" \\\n    --vllm-commit fac2ce2eb3633c44a104a66dbb30d0e6c7f4493e \\\n    --vllm-overlay \"$P/vllm/model_executor/models/lfm3.py\" \\\n    --vllm-overlay \"$P/vllm/model_executor/models/registry.py\" \\\n    --vllm-overlay \"$P/vllm/model_executor/layers/mamba/ops/causal_conv1d.py\" \\\n    --vllm-extra-args=--trust-remote-code \\\n    --tool-call-parser qwen3_coder --reasoning-parser qwen3 --max-inflight 32 \\\n    \"${SPLIT_ARGS[@]}\"\n",
  "eval_hf_jobs.sh": "#!/bin/bash\n# Held-out pass@1 of LFM3-1.7B and its harness adapters on HF Jobs (1x H200). One vLLM serves the base and every\n# checkpoint as an adapter, with one sandbox server per checkpoint, all evaluated at once. Results land in\n# /outputs/eval/<label>_<split>/summary.json on the bucket.\n#\n# Same flags as the scheduled sweep that evaluated the released run (../scripts/eval_sweep.py).\n#\n#   bash eval_hf_jobs.sh                                      base + the released checkpoints, on SmolDataEnvs held-out\n#   SPLIT=traj2envs-heldout bash eval_hf_jobs.sh              the traj2envs held-out tasks instead\n#   CHECKPOINTS=\"/outputs/runs/<run>/checkpoint-50@pi\" bash eval_hf_jobs.sh\nset -euo pipefail\n\nBUCKET=\"${BUCKET:?set BUCKET=<your user>/<bucket>, the bucket the job mounts on /outputs}\"\nSPLIT=\"${SPLIT:-final-heldout}\"  # final-heldout | traj2envs-heldout\nJOB=6aedb4820e0338d1bb8107eb     # the released training job, whose runs are under /outputs/runs\n# <path|glob|hub id>@<harnesses>, space-separated\nCHECKPOINTS=\"${CHECKPOINTS:-LiquidAI/LFM3-1.7B@pi,hermes,opencode \\\n/outputs/runs/LFM3-1.7B-pi-$JOB-*/checkpoint-400@pi \\\n/outputs/runs/LFM3-1.7B-hermes-$JOB-*/checkpoint-400@hermes \\\n/outputs/runs/LFM3-1.7B-opencode-$JOB-*/checkpoint-400@opencode}\"\nP=https://raw.githubusercontent.com/atmikshetty/vllm/5f67fbcbb2336b0e551c0df2b4c0eb51b030c553  # LFM3 vLLM model files\nSCRIPTS=\"$(cd \"$(dirname \"$0\")/../scripts\" && pwd)\"\n\nif [ \"$SPLIT\" = final-heldout ]; then\n    SPLIT_ARGS=(--split FineEnvs/SmolDataEnvs-harbor-train --task-offset 1000 --difficulty easy,medium --n-tasks 150\n        --docker-image docker.io/ybelkada/env-data-agent-train:opencode-1.19.5)\nelse\n    SPLIT_ARGS=(--split harness-hub/traj2envs-rl@191a751bda511eada76f6a9a76513d143321a64a --task-offset 230 --n-tasks 40)\nfi\nread -r -a CHECKPOINT_LIST <<< \"$CHECKPOINTS\"\n\n# The job reads the eval client from the bucket, mounted on /outputs\nhf buckets cp \"$SCRIPTS/evaluate_harbor.py\" \"hf://buckets/$BUCKET/evaluate_harbor.py\"\n\nhf jobs uv run --detach \\\n    --flavor h200 --image huggingface/trl --secrets HF_TOKEN --timeout 6h \\\n    --volume \"hf://buckets/$BUCKET:/outputs\" \\\n    \"$SCRIPTS/launcher_eval.py\" -- \\\n    --data-root /outputs --eval-lora --thinking --sandbox hf-sandbox --expose gradio \\\n    --model LiquidAI/LFM3-1.7B --max-model-len 131072 --eval-tag \"$SPLIT\" \\\n    --eval-harnesses pi,hermes,opencode \\\n    --eval-checkpoints \"${CHECKPOINT_LIST[@]}\" \\\n    --vllm-commit fac2ce2eb3633c44a104a66dbb30d0e6c7f4493e \\\n    --vllm-overlay \"$P/vllm/model_executor/models/lfm3.py\" \\\n    --vllm-overlay \"$P/vllm/model_executor/models/registry.py\" \\\n    --vllm-overlay \"$P/vllm/model_executor/layers/mamba/ops/causal_conv1d.py\" \\\n    --vllm-extra-args=--trust-remote-code \\\n    --tool-call-parser qwen3_coder --reasoning-parser qwen3 --max-inflight 32 \\\n    \"${SPLIT_ARGS[@]}\"\n",
  "recipe.yaml": "meta:\n  title: \"LFM3-1.7B harness adapters\"\n  project: harness-adapters\n  trainer: AsyncGRPOTrainer\n  model_id: LiquidAI/LFM3-1.7B\n  description: \"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.\"\n  tags: [lora, agentic-rl, harbor, safeagents, multi-harness]\n  harnesses: [pi, hermes, opencode]\n  date_added: 2026-11-13\n  blog: https://huggingface.co/spaces/harness-hub/harness-adapters\n\nhardware:\n  hf_jobs: h200x2            # vLLM on GPU 0, the three trainers sharing GPU 1\n  local: \"2 GPUs, H200 class (untested)\"\n\ndatasets:\n  train:\n    - FineEnvs/SmolDataEnvs-harbor-train       # 300 medium + 250 hard\n    - harness-hub/traj2envs-rl@191a751bda511eada76f6a9a76513d143321a64a  # first 230 tasks\n  eval:\n    final-heldout: \"FineEnvs/SmolDataEnvs-harbor-train, 150 easy/medium tasks from index 1000\"\n    traj2envs-heldout: \"harness-hub/traj2envs-rl, the 40 tasks from index 230\"\n\nhyperparameters:\n  lora_r: 32\n  lora_target_modules: all-linear\n  learning_rate: 1.0e-5\n  num_generations: 8\n  gradient_accumulation_steps: 4\n  max_staleness: 4\n  temperature: 0.8\n  max_completion_length: 16384\n  max_output_tokens: 32768\n  max_model_len: 131072\n  token_budget: 65536\n  agent_step_limit: 17\n  agent_timeout_s: 600\n  max_inflight: 48\n  tool_efficiency_weight: 0.1\n  max_steps: 400\n  save_steps: 10\n\nvllm:\n  tool_call_parser: qwen3_coder\n  reasoning_parser: qwen3\n  trust_remote_code: true\n  commit: fac2ce2eb3633c44a104a66dbb30d0e6c7f4493e\n  overlays_from: https://github.com/atmikshetty/vllm/tree/5f67fbcbb2336b0e551c0df2b4c0eb51b030c553\n\ntrl:\n  commit: 9f8725f7ac8e840f1304c10c4521fc3c38de8ca5  # huggingface/trl main: LFM tree attention (#7966), in no release yet\n  pr: 7966\n\nprovenance:\n  hf_job: 6aedb4820e0338d1bb8107eb\n  released:\n    pi: {step: 400, repo: harness-hub/LFM3-1.7B-pi}\n    hermes: {step: 400, repo: harness-hub/LFM3-1.7B-hermes}\n    opencode: {step: 400, repo: harness-hub/LFM3-1.7B-opencode}\n\nscripts:\n  train: {hf_jobs: train_hf_jobs.sh, local: train_local.sh}\n  eval: {hf_jobs: eval_hf_jobs.sh, local: eval_local.sh}\n\n# What the command builder on the recipes site offers. Each option is an environment variable of the script it runs.\nbuilder:\n  verified: {hf_jobs: false, local: false}   # whether the scripts of each platform ran as written (not yet on TRL main)\n  eval:\n    - env: SPLIT\n      label: Held-out split\n      choices: [final-heldout, traj2envs-heldout]\n    - env: CHECKPOINTS\n      label: Checkpoints\n      input: true\n      placeholder: \"<path|glob|hub id>@<harnesses> ... (empty: the script's default)\"\n"
 },
 "other_files": [],
 "space": "trl-lib/trl-recipes",
 "shared_files": [
  "async_grpo_harbor.py",
  "atif_harbor.py",
  "atif_smoldataenvs.py",
  "atif_traj2envs.py",
  "deepseek_harness.py",
  "eval_sweep.py",
  "evaluate_harbor.py",
  "launcher_eval.py",
  "launcher_train.py",
  "release_adapters.py",
  "slurm_setup.sh"
 ],
 "urls": {
  "html": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/LFM3-1.7B/index.html",
  "markdown": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/LFM3-1.7B/index.md",
  "json": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/LFM3-1.7B/recipe.json",
  "yaml": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/LFM3-1.7B/recipe.yaml",
  "hub_blob_markdown": "https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/harness-adapters/LFM3-1.7B/index.md",
  "hub_raw_markdown": "https://huggingface.co/spaces/trl-lib/trl-recipes/raw/main/recipes/harness-adapters/LFM3-1.7B/index.md",
  "hub_raw_yaml": "https://huggingface.co/spaces/trl-lib/trl-recipes/raw/main/recipes/harness-adapters/LFM3-1.7B/recipe.yaml",
  "hub_tree": "https://huggingface.co/spaces/trl-lib/trl-recipes/tree/main/recipes/harness-adapters/LFM3-1.7B",
  "rel_html": "recipes/harness-adapters/LFM3-1.7B/index.html",
  "rel_markdown": "recipes/harness-adapters/LFM3-1.7B/index.md",
  "rel_json": "recipes/harness-adapters/LFM3-1.7B/recipe.json",
  "rel_yaml": "recipes/harness-adapters/LFM3-1.7B/recipe.yaml"
 },
 "commands": {
  "train": {
   "local": {
    "script": "train_local.sh",
    "direct": false,
    "verified": false,
    "hardware": "2 GPUs, H200 class (untested)",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/harness-adapters/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/harness-adapters/LFM3-1.7B\nbash train_local.sh"
   },
   "hf_jobs": {
    "script": "train_hf_jobs.sh",
    "direct": false,
    "verified": false,
    "hardware": "h200x2",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/harness-adapters/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/harness-adapters/LFM3-1.7B\nBUCKET=\"<your user>/<bucket>\" bash train_hf_jobs.sh"
   }
  },
  "eval": {
   "local": {
    "script": "eval_local.sh",
    "direct": false,
    "verified": false,
    "hardware": "2 GPUs, H200 class (untested)",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/harness-adapters/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/harness-adapters/LFM3-1.7B\nSPLIT=final-heldout bash eval_local.sh"
   },
   "hf_jobs": {
    "script": "eval_hf_jobs.sh",
    "direct": false,
    "verified": false,
    "hardware": "h200x2",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/harness-adapters/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/harness-adapters/LFM3-1.7B\nSPLIT=final-heldout \\\nBUCKET=\"<your user>/<bucket>\" \\\nbash eval_hf_jobs.sh"
   }
  }
 }
}