{
 "id": "harness-adapters/TwIL-8B",
 "path": "AsyncGRPOTrainer/harness-adapters/TwIL-8B",
 "trainers": [
  "AsyncGRPOTrainer"
 ],
 "project": "harness-adapters",
 "name": "TwIL-8B",
 "org": "webAI-Official",
 "avatar": "https://cdn-avatars.huggingface.co/v1/production/uploads/6483b6ffa7e293d5722577cd/Dh0hsjEncJ0NOAIZzEahN.png",
 "hub_url": "https://huggingface.co/collections/harness-hub/twil-8b-harness-adapters-6af17c120876ef3b5ae5e925",
 "meta": {
  "title": "TwIL-8B harness adapters",
  "project": "harness-adapters",
  "trainer": "AsyncGRPOTrainer",
  "model_id": "webAI-Official/TwIL-8B",
  "description": "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.",
  "tags": [
   "lora",
   "agentic-rl",
   "harbor",
   "safeagents",
   "multi-harness",
   "experiment"
  ],
  "harnesses": [
   "pi",
   "hermes",
   "opencode"
  ],
  "date_added": "2026-11-13",
  "blog": "https://huggingface.co/spaces/harness-hub/harness-adapters"
 },
 "hardware": {
  "hf_jobs": "h200x4",
  "local": "4 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": 30,
  "agent_timeout_s": 1200,
  "max_inflight": 12,
  "tool_efficiency_weight": 0.1,
  "max_steps": 100,
  "save_steps": 10
 },
 "vllm": {
  "tool_call_parser": "qwen3_coder",
  "reasoning_parser": "qwen3",
  "chat_template": "chat_template.jinja",
  "trainer_flags": [
   "--qwen3-5-response-template"
  ]
 },
 "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": "# TwIL-8B harness adapters (experiment)\n\nLoRA adapters for pi, hermes and opencode on [`webAI-Official/TwIL-8B`](https://huggingface.co/webAI-Official/TwIL-8B),\na model not trained on agentic data. Trained on 400 SmolDataEnvs tasks (150 medium, 250 hard) and 230 traj2envs tasks.\nSetup and shared settings: [../README.md](../README.md). Full hyperparameters: [recipe.yaml](recipe.yaml).\n\n| | HF Jobs | Local (untested) |\n|---|---|---|\n| Train | `bash train_hf_jobs.sh` (h200x4, ~48h) | `bash train_local.sh` (4 GPUs) |\n| Eval | `bash eval_hf_jobs.sh` (h200) | `bash eval_local.sh` (1 GPU) |\n\nModel-specific flags:\n- vLLM serves the model with [chat_template.jinja](chat_template.jinja), which the HF Jobs scripts upload to the bucket\n  as `twil_chat_template.jinja`. The trainer uses `--qwen3-5-response-template`.\n- `--tool-call-parser qwen3_coder --reasoning-parser qwen3`, `--token-budget 65536`\n- `--agent-step-limit 30 --agent-timeout 1200`: the model needs more steps per task.\n- `--max-inflight 12` (48 for the LFM models): its long reasoning fills vLLM's memory sooner.\n\n**Steps:** the launch command and the released checkpoints use 100 steps (`--max-steps 100`), but the blog post's table\nsays 300.\n\nReleased checkpoints (job `6aedb49dc78863f9c63408be`):\n\n| Harness | Step | Repo |\n|---|--:|---|\n| pi | 90 | `harness-hub/TwIL-8B-pi` |\n| hermes | 60 | `harness-hub/TwIL-8B-hermes` |\n| opencode | 100 | `harness-hub/TwIL-8B-opencode` |\n",
 "files": {
  "train_local.sh": "#!/bin/bash\n# TwIL-8B harness adapters on one local machine with 4 GPUs:\n# vLLM on GPU 0, one trainer per harness on GPUs 1, 2 and 3. 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, 4 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:-100}\"\nDATA_ROOT=\"${DATA_ROOT:-$PWD/outputs}\"\nTRL_WHEEL=\"${TRL_WHEEL:-}\"\nREV=191a751bda511eada76f6a9a76513d143321a64a  # harness-hub/traj2envs-rl revision the adapters were trained on\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 webAI-Official/TwIL-8B \\\n    --vllm-extra-args=\"--chat-template $HERE/chat_template.jinja\" \\\n    --tool-call-parser qwen3_coder --reasoning-parser qwen3 --max-model-len 131072 \\\n    --run pi:pi:medium:150,hard:250 \\\n    --run hermes:hermes:medium:150,hard:250 \\\n    --run opencode:opencode:medium:150,hard:250 \\\n    --split FineEnvs/SmolDataEnvs-harbor-train --n-tasks 400 \\\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,2,3 \\\n    --max-inflight 12 --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 30 --agent-timeout 1200 --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    --qwen3-5-response-template \\\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# TwIL-8B harness adapters on HF Jobs: one vLLM (GPU 0) serving the base and every adapter version, and one LoRA\n# AsyncGRPO trainer per harness (pi, hermes, opencode on GPUs 1, 2, 3), on 4x H200.\n#\n# This is the command of the released run (HF job 6aedb49dc78863f9c63408be, 2026-11-06), with the bucket as a variable.\n# TwIL is not trained on agentic data: it gets 30 agent steps and 20 minutes per rollout, and fewer rollouts at once\n# (its long reasoning fills vLLM's memory sooner). It is served with its own chat template (chat_template.jinja).\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:-100}\"\nTRL_WHEEL=\"${TRL_WHEEL:-}\"\nREV=191a751bda511eada76f6a9a76513d143321a64a  # harness-hub/traj2envs-rl revision the adapters were trained on\nHERE=\"$(cd \"$(dirname \"$0\")\" && pwd)\"\nSCRIPTS=\"$HERE/../scripts\"\n\n# The job reads the training script, the safeagents plugins and the chat template 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\nhf buckets cp \"$HERE/chat_template.jinja\" \"hf://buckets/$BUCKET/twil_chat_template.jinja\"\n\nTRL_ARGS=()\nif [ -n \"$TRL_WHEEL\" ]; then TRL_ARGS=(--trl-wheel \"$TRL_WHEEL\"); fi\n\nhf jobs uv run --detach \\\n    --flavor h200x4 --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 webAI-Official/TwIL-8B \\\n    --vllm-extra-args=\"--chat-template /outputs/twil_chat_template.jinja\" \\\n    --tool-call-parser qwen3_coder --reasoning-parser qwen3 --max-model-len 131072 \\\n    --run pi:pi:medium:150,hard:250 \\\n    --run hermes:hermes:medium:150,hard:250 \\\n    --run opencode:opencode:medium:150,hard:250 \\\n    --split FineEnvs/SmolDataEnvs-harbor-train --n-tasks 400 \\\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,2,3 \\\n    --max-inflight 12 --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 30 --agent-timeout 1200 --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    --qwen3-5-response-template \\\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 TwIL-8B 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=\"webAI-Official/TwIL-8B@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:-webAI-Official/TwIL-8B@pi,hermes,opencode}\"\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 webAI-Official/TwIL-8B --max-model-len 131072 --eval-tag \"$SPLIT\" \\\n    --eval-harnesses pi,hermes,opencode \\\n    --eval-checkpoints \"${CHECKPOINT_LIST[@]}\" \\\n    --vllm-extra-args=\"--chat-template $HERE/chat_template.jinja\" \\\n    --tool-call-parser qwen3_coder --reasoning-parser qwen3 \\\n    --max-output-tokens 32768 --max-inflight 24 --agent-step-limit 30 --agent-timeout 1200 \\\n    \"${SPLIT_ARGS[@]}\"\n",
  "eval_hf_jobs.sh": "#!/bin/bash\n# Held-out pass@1 of TwIL-8B 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=6aedb49dc78863f9c63408be     # the released training job, whose runs are under /outputs/runs\n# <path|glob|hub id>@<harnesses>, space-separated\nCHECKPOINTS=\"${CHECKPOINTS:-webAI-Official/TwIL-8B@pi,hermes,opencode \\\n/outputs/runs/TwIL-8B-pi-$JOB-*/checkpoint-90@pi \\\n/outputs/runs/TwIL-8B-hermes-$JOB-*/checkpoint-60@hermes \\\n/outputs/runs/TwIL-8B-opencode-$JOB-*/checkpoint-100@opencode}\"\nHERE=\"$(cd \"$(dirname \"$0\")\" && pwd)\"\nSCRIPTS=\"$HERE/../scripts\"\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 and the chat template from the bucket, mounted on /outputs\nhf buckets cp \"$SCRIPTS/evaluate_harbor.py\" \"hf://buckets/$BUCKET/evaluate_harbor.py\"\nhf buckets cp \"$HERE/chat_template.jinja\" \"hf://buckets/$BUCKET/twil_chat_template.jinja\"\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 webAI-Official/TwIL-8B --max-model-len 131072 --eval-tag \"$SPLIT\" \\\n    --eval-harnesses pi,hermes,opencode \\\n    --eval-checkpoints \"${CHECKPOINT_LIST[@]}\" \\\n    --vllm-extra-args=\"--chat-template /outputs/twil_chat_template.jinja\" \\\n    --tool-call-parser qwen3_coder --reasoning-parser qwen3 \\\n    --max-output-tokens 32768 --max-inflight 24 --agent-step-limit 30 --agent-timeout 1200 \\\n    \"${SPLIT_ARGS[@]}\"\n",
  "recipe.yaml": "meta:\n  title: \"TwIL-8B harness adapters\"\n  project: harness-adapters\n  trainer: AsyncGRPOTrainer\n  model_id: webAI-Official/TwIL-8B\n  description: \"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.\"\n  tags: [lora, agentic-rl, harbor, safeagents, multi-harness, experiment]\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: h200x4            # vLLM on GPU 0, one trainer per harness on GPUs 1-3\n  local: \"4 GPUs, H200 class (untested)\"\n\ndatasets:\n  train:\n    - FineEnvs/SmolDataEnvs-harbor-train       # 150 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: 30\n  agent_timeout_s: 1200\n  max_inflight: 12\n  tool_efficiency_weight: 0.1\n  max_steps: 100              # the blog post says 300; the launch command and the released checkpoints stop at 100\n  save_steps: 10\n\nvllm:\n  tool_call_parser: qwen3_coder\n  reasoning_parser: qwen3\n  chat_template: chat_template.jinja\n  trainer_flags: [--qwen3-5-response-template]\n\ntrl:\n  commit: 9f8725f7ac8e840f1304c10c4521fc3c38de8ca5  # huggingface/trl main: LFM tree attention (#7966), in no release yet\n  pr: 7966\n\nprovenance:\n  hf_job: 6aedb49dc78863f9c63408be\n  released:\n    pi: {step: 90, repo: harness-hub/TwIL-8B-pi}\n    hermes: {step: 60, repo: harness-hub/TwIL-8B-hermes}\n    opencode: {step: 100, repo: harness-hub/TwIL-8B-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": [
  "chat_template.jinja"
 ],
 "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/TwIL-8B/index.html",
  "markdown": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/TwIL-8B/index.md",
  "json": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/TwIL-8B/recipe.json",
  "yaml": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/TwIL-8B/recipe.yaml",
  "hub_blob_markdown": "https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/harness-adapters/TwIL-8B/index.md",
  "hub_raw_markdown": "https://huggingface.co/spaces/trl-lib/trl-recipes/raw/main/recipes/harness-adapters/TwIL-8B/index.md",
  "hub_raw_yaml": "https://huggingface.co/spaces/trl-lib/trl-recipes/raw/main/recipes/harness-adapters/TwIL-8B/recipe.yaml",
  "hub_tree": "https://huggingface.co/spaces/trl-lib/trl-recipes/tree/main/recipes/harness-adapters/TwIL-8B",
  "rel_html": "recipes/harness-adapters/TwIL-8B/index.html",
  "rel_markdown": "recipes/harness-adapters/TwIL-8B/index.md",
  "rel_json": "recipes/harness-adapters/TwIL-8B/recipe.json",
  "rel_yaml": "recipes/harness-adapters/TwIL-8B/recipe.yaml"
 },
 "commands": {
  "train": {
   "local": {
    "script": "train_local.sh",
    "direct": false,
    "verified": false,
    "hardware": "4 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/TwIL-8B\nbash train_local.sh"
   },
   "hf_jobs": {
    "script": "train_hf_jobs.sh",
    "direct": false,
    "verified": false,
    "hardware": "h200x4",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/harness-adapters/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/harness-adapters/TwIL-8B\nBUCKET=\"<your user>/<bucket>\" bash train_hf_jobs.sh"
   }
  },
  "eval": {
   "local": {
    "script": "eval_local.sh",
    "direct": false,
    "verified": false,
    "hardware": "4 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/TwIL-8B\nSPLIT=final-heldout bash eval_local.sh"
   },
   "hf_jobs": {
    "script": "eval_hf_jobs.sh",
    "direct": false,
    "verified": false,
    "hardware": "h200x4",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/harness-adapters/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/harness-adapters/TwIL-8B\nSPLIT=final-heldout \\\nBUCKET=\"<your user>/<bucket>\" \\\nbash eval_hf_jobs.sh"
   }
  }
 }
}