{
 "id": "harness-adapters/Qwen3.8-Flash-Next",
 "path": "AsyncGRPOTrainer/harness-adapters/Qwen3.8-Flash-Next",
 "trainers": [
  "AsyncGRPOTrainer"
 ],
 "project": "harness-adapters",
 "name": "Qwen3.8-Flash-Next",
 "org": "Qwen",
 "avatar": "https://cdn-avatars.huggingface.co/v1/production/uploads/6215ca5692c0ecfba9186921/hrRM50-6XcdWgg2AKpENG.jpeg",
 "hub_url": null,
 "meta": {
  "title": "Qwen3.8-Flash-Next harness adapter",
  "project": "harness-adapters",
  "trainer": "AsyncGRPOTrainer",
  "model_id": "Qwen/Qwen3.8-Flash-Next",
  "description": "A pi harness adapter for the 180B Qwen3.8-Flash-Next, thinking on, trained with async GRPO on agentic coding and terminal tasks (scale800 + TermGrade). One 8-GPU B300 node: vLLM tensor + expert parallel on 4 GPUs, the LoRA trainer sharded with FSDP2 over the other 4. SLURM scripts only.",
  "tags": [
   "lora",
   "agentic-rl",
   "harbor",
   "safeagents",
   "fsdp2",
   "slurm",
   "thinking"
  ],
  "harnesses": [
   "pi"
  ],
  "date_added": "2026-11-25"
 },
 "hardware": {},
 "datasets": {
  "train": [
   "harness-hub/scale800-harbor@56c7f75d01f70859ec1354e97866e32a175c1a40",
   "harness-hub/termgrade-train-harbor"
  ],
  "eval": {
   "tbfull": "harborframework/terminal-bench-2.1@3e235dff6880252a587fa479c09bcb1e16edf2eb, all 89 tasks, 3600 s and 100 steps",
   "sbp": "harness-hub/swebench-pro-v2-hard51-harbor, 7200 s and 100 steps"
  }
 },
 "hyperparameters": {
  "lora_r": 32,
  "lora_target_modules": [
   "q_proj",
   "k_proj",
   "v_proj",
   "o_proj"
  ],
  "learning_rate": 2e-05,
  "num_generations": 8,
  "gradient_accumulation_steps": 4,
  "max_staleness": 16,
  "temperature": 0.8,
  "max_completion_length": 32768,
  "max_model_len": 65536,
  "token_budget": 65536,
  "agent_step_limit": 50,
  "agent_timeout_s": 1800,
  "max_inflight": 64,
  "tool_efficiency_weight": 0.1,
  "max_steps": 1000,
  "save_steps": 5,
  "thinking": true
 },
 "vllm": {
  "tool_call_parser": "qwen3_coder",
  "reasoning_parser": "qwen3",
  "extra_args": [
   "--language-model-only",
   "--enable-prefix-caching",
   "--mamba-cache-mode align",
   "--tensor-parallel-size 4",
   "--enable-expert-parallel",
   "--disable-custom-all-reduce",
   "--model-loader-extra-config '{\"enable_weights_track\": false}'"
  ],
  "env": {
   "VLLM_ALLREDUCE_USE_FLASHINFER": "0"
  }
 },
 "transformers": "huggingface/transformers@66f51e76, with modeling_qwen4_exp.py replaced by modeling_qwen4_exp.flashnext.py",
 "trl": {
  "upstream_base": "d115286bc5aef8d346e8510bfe312803c7881c4a",
  "patch": "trl.patch"
 },
 "scripts": {
  "train": {},
  "eval": {}
 },
 "readme": "# Qwen3.8-Flash-Next harness adapter\n\nA LoRA adapter that makes [`Qwen/Qwen3.8-Flash-Next`](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) (180B, thinking\non) work better inside the [pi](https://github.com/earendil-works/pi) coding agent, trained with async GRPO on the 750\nscale800 tasks interleaved with 300 TermGrade tasks, every tool call checked by\n[safeagents](https://github.com/huggingface/safeagents). Full settings: [recipe.yaml](recipe.yaml).\n\nThis recipe runs on a SLURM cluster only: it needs a whole node with 8 B300 GPUs (288 GB each). The model is 360 GB in\nBF16, so vLLM serves it tensor- and expert-parallel over 4 GPUs, and the trainer shards it with FSDP2 over the other 4\n(266 of 268 GiB used per trainer GPU).\n\n| | command | GPUs |\n|---|---|---|\n| Train | `sbatch -p <partition> train_slurm.sh` | 8 (one node, exclusive) |\n| Eval | `BENCH=tbfull\\|sbp POLICIES=\"<checkpoint or Qwen/Qwen3.8-Flash-Next>@pi\" sbatch -p <partition> eval_slurm.sh` | 2 |\n\nFiles: [train_slurm.sh](https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/harness-adapters/Qwen3.8-Flash-Next/train_slurm.sh),\n[eval_slurm.sh](https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/harness-adapters/Qwen3.8-Flash-Next/eval_slurm.sh),\n[async_grpo_harbor.py](https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/harness-adapters/Qwen3.8-Flash-Next/async_grpo_harbor.py) (the training script, with the FSDP2 loading),\n[make_launcher_fsdp.py](https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/harness-adapters/Qwen3.8-Flash-Next/make_launcher_fsdp.py),\n[modeling_qwen4_exp.flashnext.py](https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/harness-adapters/Qwen3.8-Flash-Next/modeling_qwen4_exp.flashnext.py),\n[trl.patch](https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/harness-adapters/Qwen3.8-Flash-Next/trl.patch),\nand the shared [scripts/](https://huggingface.co/spaces/trl-lib/trl-recipes/tree/main/recipes/harness-adapters/scripts)\n(`launcher_train.py`, `launcher_eval.py`, `evaluate_harbor.py`, `atif_harbor.py`, `slurm_setup.sh`).\n\n## What differs from the other harness-adapter recipes\n\n- **FSDP2 trainer.** The training script loads the model with FSDP2 over the trainer GPUs (one process per GPU, started\n  by `torch.distributed.run`) instead of splitting it with a device map. Two embedding tables stay outside FSDP: the\n  95 GiB n-gram table on CPU, and the token embedding replicated on each GPU. With this, the trainer's log-probs stay\n  within 0.06 of vLLM's.\n- **Tree packing for Qwen4-Exp.** Rollouts that share a prefix are packed as a tree. The model's query-sparse attention,\n  n-gram shift and short convolution are routed through three module-level functions of a patched modeling file, which\n  [trl.patch](trl.patch) replaces with tree-aware versions.\n- **Thinking on**, as the model's default: up to 32,768 output tokens per call in a 65,536-token window.\n- **vLLM settings**: `--enable-expert-parallel`, `--disable-custom-all-reduce`,\n  `--model-loader-extra-config '{\"enable_weights_track\": false}'`, prefix caching in `--mamba-cache-mode align`, and\n  `VLLM_ALLREDUCE_USE_FLASHINFER=0` (FlashInfer's all-reduce crashed at tensor parallel above 1 on B300).\n\n## One-time setup\n\nEverything lives under `ROOT` (default `$HOME/harness-adapters`); put it on storage every node sees.\n\n```sh\nexport ROOT=$HOME/harness-adapters\n# 1. This project: the recipe folder and the shared scripts, at $ROOT/Qwen3.8-Flash-Next and $ROOT/scripts\nhf download trl-lib/trl-recipes --repo-type space --include \"recipes/harness-adapters/*\" --local-dir /tmp/recipes\ncp -r /tmp/recipes/recipes/harness-adapters/. $ROOT/\n\n# 2. The launcher's venv ($ROOT/venv): the dependencies in the header of scripts/launcher_train.py, with transformers at\n#    the commit this recipe was run with\nuv venv $ROOT/venv --python 3.12\nuv pip install --python $ROOT/venv/bin/python \"transformers @ git+https://github.com/huggingface/transformers@66f51e76\" <the header's other dependencies>\n\n# 3. TRL: upstream at the patch's base, with the patch applied ($ROOT/trl)\ngit clone https://github.com/huggingface/trl $ROOT/trl && git -C $ROOT/trl checkout d115286bc5aef8d346e8510bfe312803c7881c4a\ngit -C $ROOT/trl apply $ROOT/Qwen3.8-Flash-Next/trl.patch\n\n# 4. The modeling overlay ($ROOT/overlay-flashnext): the venv's transformers with Qwen4-Exp's modeling file replaced\nT=$($ROOT/venv/bin/python -c \"import os, transformers; print(os.path.dirname(transformers.__file__))\")\nmkdir -p $ROOT/overlay-flashnext && cp -r \"$T\" $ROOT/overlay-flashnext/transformers\ncp $ROOT/Qwen3.8-Flash-Next/modeling_qwen4_exp.flashnext.py $ROOT/overlay-flashnext/transformers/models/qwen4_exp/modeling_qwen4_exp.py\n\n# 5. vLLM in its own venv ($ROOT/venv-vllm), a version that serves Qwen3.8-Flash-Next with runtime LoRA\n\n# 6. The multi-GPU launcher, written next to launcher_train.py\n$ROOT/venv/bin/python $ROOT/Qwen3.8-Flash-Next/make_launcher_fsdp.py $ROOT/scripts/launcher_train.py\n```\n\nBoth scripts read `HF_TOKEN` (or `~/.cache/huggingface/token`), which the HF sandboxes the tasks run in also use.\n`TRL_SRC`, `OVERLAY`, `VLLM_VENV` and `HF_HUB_CACHE` override the default locations.\n\n## Training\n\n```sh\nMAX_STEPS=3 sbatch --time=3:00:00 -p <partition> train_slurm.sh     # smoke run: check the log-prob gap first\nsbatch -p <partition> train_slurm.sh                                # full run, a checkpoint every 5 steps\n```\n\nCheckpoints are written to `$ROOT/data/runs/<run>/checkpoint-N` (adapter only). To resume, pass\n`TRAIN_EXTRA=\"--resume-from-checkpoint $ROOT/data/runs/<run>/checkpoint-N\"`.\n\n## Evaluation\n\nEach policy is served alone on 2 GPUs: the base, or a LoRA checkpoint served at runtime next to it (merging would write\na 360 GB model per checkpoint).\n\n```sh\nBENCH=tbfull POLICIES=\"Qwen/Qwen3.8-Flash-Next@pi\" sbatch -p <partition> eval_slurm.sh\nBENCH=sbp POLICIES=\"$ROOT/data/runs/<run>/checkpoint-100@pi $ROOT/data/runs/<run>/checkpoint-140@pi\" sbatch -p <partition> eval_slurm.sh\n```\n\nResults land in `$ROOT/data/eval/<policy>_<tag>/`. Infrastructure failures (no turns, or an error within 2 model calls)\nare set aside and rerun, up to 3 attempts. Set `BUCKET=<owner>/<name>` to copy the eval folders to an HF bucket as they\nfill.\n\n## Results so far\n\nTerminal-Bench 2.1 (87 graded tasks) and SWE-bench Pro hard 51, thinking on, one attempt per task, paired with the base;\noutput tokens and tool calls on the tasks both solved.\n\n| | TB 2.1 | SWE-bench Pro | output tokens (TB, SBP) | tool calls (TB, SBP) |\n|---|---|---|---|---|\n| base | 64/87 (73.6%) | 46/51 (90.2%) | | |\n| checkpoint 100 | 60/87 | 44/51 | -41%, -31% | -32%, -25% |\n| checkpoint 140 | 59/87 | 41/51 | -48%, -39% | -39%, -33% |\n\nThe adapter solves nearly the same tasks with far less work; later checkpoints save more tokens but lose more accuracy,\nand checkpoint 140 sometimes stops after one or two model calls. Training is still running.\n",
 "files": {
  "recipe.yaml": "meta:\n  title: \"Qwen3.8-Flash-Next harness adapter\"\n  project: harness-adapters\n  trainer: AsyncGRPOTrainer\n  model_id: Qwen/Qwen3.8-Flash-Next\n  description: \"A pi harness adapter for the 180B Qwen3.8-Flash-Next, thinking on, trained with async GRPO on agentic coding and terminal tasks (scale800 + TermGrade). One 8-GPU B300 node: vLLM tensor + expert parallel on 4 GPUs, the LoRA trainer sharded with FSDP2 over the other 4. SLURM scripts only.\"\n  tags: [lora, agentic-rl, harbor, safeagents, fsdp2, slurm, thinking]\n  harnesses: [pi]\n  date_added: 2026-11-25\n\nhardware:\n  slurm: \"one node with 8 B300 GPUs (288 GB each), exclusive; evals on 2 of them\"\n\ndatasets:\n  train:\n    - harness-hub/scale800-harbor@56c7f75d01f70859ec1354e97866e32a175c1a40   # 750 tasks\n    - harness-hub/termgrade-train-harbor                                      # 300 tasks, interleaved\n  eval:\n    tbfull: \"harborframework/terminal-bench-2.1@3e235dff6880252a587fa479c09bcb1e16edf2eb, all 89 tasks, 3600 s and 100 steps\"\n    sbp: \"harness-hub/swebench-pro-v2-hard51-harbor, 7200 s and 100 steps\"\n\nhyperparameters:\n  lora_r: 32\n  lora_target_modules: [q_proj, k_proj, v_proj, o_proj]\n  learning_rate: 2.0e-5\n  num_generations: 8\n  gradient_accumulation_steps: 4        # per trainer rank: 16 rows a step over 4 GPUs\n  max_staleness: 16\n  temperature: 0.8\n  max_completion_length: 32768          # half the token budget, thinking included\n  max_model_len: 65536\n  token_budget: 65536\n  agent_step_limit: 50\n  agent_timeout_s: 1800\n  max_inflight: 64\n  tool_efficiency_weight: 0.1\n  max_steps: 1000\n  save_steps: 5\n  thinking: true\n\nvllm:\n  tool_call_parser: qwen3_coder\n  reasoning_parser: qwen3\n  extra_args: [--language-model-only, --enable-prefix-caching, \"--mamba-cache-mode align\", \"--tensor-parallel-size 4\",\n               --enable-expert-parallel, --disable-custom-all-reduce, \"--model-loader-extra-config '{\\\"enable_weights_track\\\": false}'\"]\n  env: {VLLM_ALLREDUCE_USE_FLASHINFER: \"0\"}\n\ntransformers: \"huggingface/transformers@66f51e76, with modeling_qwen4_exp.py replaced by modeling_qwen4_exp.flashnext.py\"\n\ntrl:\n  upstream_base: d115286bc5aef8d346e8510bfe312803c7881c4a\n  patch: trl.patch            # tree packing for Qwen4-Exp in AsyncGRPO, relative to upstream_base\n\nprovenance:\n  status: training\n\nscripts:\n  train: {slurm: train_slurm.sh}\n  eval: {slurm: eval_slurm.sh}\n",
  "trl.patch": "TRL changes the Qwen3.8-Flash-Next recipe runs on, relative to upstream huggingface/trl.\n  upstream base: d115286bc5aef8d346e8510bfe312803c7881c4a (2026-11-11, Add UDPO loss for noisy preferences to DPOTrainer (#8211))\n  adds: tree packing for Qwen4-Exp (Qwen3.8-Flash-Next) in AsyncGRPO, and the AsyncGRPO changes it relies on\nApply on a checkout of the upstream base: git apply trl.patch\n\ndiff --git a/trl/experimental/async_distillation/async_distillation_config.py b/trl/experimental/async_distillation/async_distillation_config.py\nindex bc1d422e..38a1e7a2 100644\n--- a/trl/experimental/async_distillation/async_distillation_config.py\n+++ b/trl/experimental/async_distillation/async_distillation_config.py\n@@ -84,6 +84,9 @@ class AsyncDistillationConfig(_BaseConfig):\n             Timeout in seconds for calls to the vLLM servers: waiting for the student's server to be ready at startup,\n             each generation or scoring request, and each weight-sync call. Waiting for the server and weight-sync calls\n             raise when it runs out; a generation or scoring request that times out is retried.\n+        vllm_lora_name (`str`, *optional*, defaults to `\"trl-policy\"`):\n+            Prefix of the adapter names published to the student's vLLM server under adapter-only sync\n+            (`{vllm_lora_name}-v{N}`). Give each trainer its own prefix when several share one server.\n         teacher_server_urls (`dict[str, str]`, *optional*, defaults to `{\"default\": \"http://localhost:8001\"}`):\n             Teacher vLLM server(s), each started with `vllm serve <teacher-model> --logprobs-mode processed_logprobs\n             --max-logprobs -1`. Every teacher is static: this trainer never streams weight updates to any of them, so a\n@@ -295,6 +298,13 @@ class AsyncDistillationConfig(_BaseConfig):\n             \"weight-sync calls raise when it runs out; a generation or scoring request that times out is retried.\"\n         },\n     )\n+    vllm_lora_name: str = field(\n+        default=\"trl-policy\",\n+        metadata={\n+            \"help\": \"Prefix of the adapter names published to the student's vLLM server under adapter-only sync \"\n+            \"(`{vllm_lora_name}-v{N}`). Give each trainer its own prefix when several share one server.\"\n+        },\n+    )\n     teacher_server_urls: dict[str, str] | str | None = field(\n         default=None,\n         metadata={\ndiff --git a/trl/experimental/async_distillation/async_distillation_trainer.py b/trl/experimental/async_distillation/async_distillation_trainer.py\nindex 69a5da64..b42c97c9 100644\n--- a/trl/experimental/async_distillation/async_distillation_trainer.py\n+++ b/trl/experimental/async_distillation/async_distillation_trainer.py\n@@ -1348,7 +1348,7 @@ class AsyncDistillationTrainer(_BaseTrainer):\n         # Adapter-only vLLM sync is derived from a PEFT model plus a server started with `--enable-lora`, rather\n         # than configured. Rank 0 probes and broadcasts the answer below.\n         self._lora_sync = False\n-        self._lora_name = \"trl-policy\"\n+        self._lora_name = self.args.vllm_lora_name\n         # Absolute: the path is resolved by the *server's* process, which has its own working directory and may not\n         # be on this machine. vLLM reads a path it cannot resolve as a Hub repo id, failing deep inside the engine.\n         self._lora_dir = os.path.abspath(os.path.join(self.args.output_dir, \".vllm_lora\"))\n@@ -1967,11 +1967,10 @@ class AsyncDistillationTrainer(_BaseTrainer):\n         # Under DDP `self.model` is the wrapper, which does not expose `save_pretrained`.\n         model = self.accelerator.unwrap_model(self.model)\n \n-        logger.info(\"Weight sync: pausing vLLM...\")\n-        if self.accelerator.is_main_process:\n-            self.vllm_client.pause()\n+        # No `/pause`: in-flight requests keep the adapter they named, and pausing would stall every other trainer\n+        # sharing this server.\n         t_pause = time.time()\n-        logger.info(f\"Weight sync: pause took {t_pause - t0:.1f}s, waiting for all ranks...\")\n+        logger.info(\"Weight sync: waiting for all ranks...\")\n \n         self.accelerator.wait_for_everyone()\n         t_barrier = time.time()\n@@ -1984,12 +1983,11 @@ class AsyncDistillationTrainer(_BaseTrainer):\n \n         self.accelerator.wait_for_everyone()\n \n-        logger.info(f\"Weight sync: resuming vLLM... (transfer took {t_transfer - t_barrier:.1f}s)\")\n+        logger.info(f\"Weight sync: loading adapter... (transfer took {t_transfer - t_barrier:.1f}s)\")\n         if self.accelerator.is_main_process:\n             # The adapter has to exist on the server BEFORE the version moves below: the rollout worker derives the\n             # adapter it requests from `model_version`, so bumping first would name one that is not loaded yet.\n             self.vllm_client.load_lora_adapter(f\"{self._lora_name}-v{version}\", adapter_dir)\n-            self.vllm_client.resume()\n             stale_version = version - (self.args.max_staleness + 1)\n             if stale_version > 0:\n                 self.vllm_client.unload_lora_adapter(f\"{self._lora_name}-v{stale_version}\")\ndiff --git a/trl/experimental/async_grpo/async_grpo_config.py b/trl/experimental/async_grpo/async_grpo_config.py\nindex 6335eb5f..26a20220 100644\n--- a/trl/experimental/async_grpo/async_grpo_config.py\n+++ b/trl/experimental/async_grpo/async_grpo_config.py\n@@ -88,6 +88,9 @@ class AsyncGRPOConfig(_BaseConfig):\n             Timeout in seconds for calls to the vLLM server: waiting for it to be ready at startup, each generation\n             request, and each weight-sync call. Waiting for the server and weight-sync calls raise when it runs out; a\n             generation request that times out is retried.\n+        vllm_lora_name (`str`, *optional*, defaults to `\"trl-policy\"`):\n+            Prefix of the adapter names published to the vLLM server under adapter-only sync (`{vllm_lora_name}-v{N}`).\n+            Give each trainer its own prefix when several share one server.\n \n         > Parameters that control the training\n \n@@ -296,6 +299,13 @@ class AsyncGRPOConfig(_BaseConfig):\n             \"it runs out; a generation request that times out is retried.\"\n         },\n     )\n+    vllm_lora_name: str = field(\n+        default=\"trl-policy\",\n+        metadata={\n+            \"help\": \"Prefix of the adapter names published to the vLLM server under adapter-only sync \"\n+            \"(`{vllm_lora_name}-v{N}`). Give each trainer its own prefix when several share one server.\"\n+        },\n+    )\n \n     # Parameters that control the training\n     epsilon: float = field(\ndiff --git a/trl/experimental/async_grpo/async_grpo_trainer.py b/trl/experimental/async_grpo/async_grpo_trainer.py\nindex d716d5c7..84591ff5 100644\n--- a/trl/experimental/async_grpo/async_grpo_trainer.py\n+++ b/trl/experimental/async_grpo/async_grpo_trainer.py\n@@ -38,7 +38,7 @@ from datasets import Dataset, IterableDataset\n from packaging.version import Version\n from torch.distributed._tensor import DTensor\n from torch.utils.data import DataLoader\n-from transformers import AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase, TrainerCallback\n+from transformers import AutoConfig, AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase, TrainerCallback\n from transformers.data.data_collator import DataCollatorMixin\n from transformers.trainer_utils import PREFIX_CHECKPOINT_DIR, SaveStrategy\n from transformers.utils import is_peft_available\n@@ -60,7 +60,15 @@ from ...trainer.utils import (\n )\n from .async_grpo_config import AsyncGRPOConfig\n from .async_rollout_worker import AsyncRolloutLoop, AsyncRolloutWorker, RolloutSample\n-from .packing import TREE_ATTENTION, TreeRow, patch_tree_gdn, register_tree_attention, unpad_tree\n+from .packing import (\n+    TREE_ATTENTION,\n+    TreeRow,\n+    patch_tree_gdn,\n+    patch_tree_qwen4_exp,\n+    register_tree_attention,\n+    tree_attn_implementation,\n+    unpad_tree,\n+)\n from .vllm_client import VLLMClient\n from .weight_transfer import WeightTransferClient\n \n@@ -987,15 +995,16 @@ class AsyncGRPOTrainer(_BaseTrainer):\n             model_init_kwargs.setdefault(\"trust_remote_code\", args.trust_remote_code)\n             model_init_kwargs.setdefault(\"dtype\", args.dtype)\n             model_revision = model_init_kwargs.get(\"revision\")\n+            config = AutoConfig.from_pretrained(model, revision=model_revision, trust_remote_code=args.trust_remote_code)\n             model = create_model_from_path(\n                 model,\n                 device_map=None,\n-                attn_implementation=TREE_ATTENTION,\n+                attn_implementation=tree_attn_implementation(config),\n                 **model_init_kwargs,\n             )\n         else:\n             model_revision = None\n-            model.set_attn_implementation(TREE_ATTENTION)\n+            model.set_attn_implementation(tree_attn_implementation(model.config))\n             if args.model_init_kwargs is not None:\n                 logger.warning(\n                     \"You passed `model_init_kwargs` to the `AsyncGRPOConfig`, but your model is already instantiated. \"\n@@ -1009,18 +1018,29 @@ class AsyncGRPOTrainer(_BaseTrainer):\n         layer_types = set(getattr(text_config, \"layer_types\", None) or []) - {\"full_attention\", \"sliding_attention\"}\n         # Check tree attention compat\n         if layer_types:\n-            if layer_types == {\"linear_attention\"} and Version(transformers.__version__) < Version(\"5.15.0\"):\n+            if \"linear_attention\" in layer_types and Version(transformers.__version__) < Version(\"5.15.0\"):\n                 raise ValueError(\n                     f\"Tree packing of {type(model).__name__}'s gated DeltaNet layers requires transformers>=5.15.0: \"\n                     \"before it, these layers call the functions they stored at init rather than the module-level \"\n                     \"ones tree packing patches, so they would scan across samples.\"\n                 )\n-            if layer_types != {\"linear_attention\"} or not patch_tree_gdn(model):\n+            if layer_types - {\"linear_attention\", \"indexed_attention\"} or not patch_tree_gdn(model):\n                 raise ValueError(\n                     f\"{type(model).__name__} has {sorted(layer_types)} layers. Tree packing routes attention and \"\n                     \"transformers' gated DeltaNet layers along each sample's own path; any other recurrent or \"\n                     \"convolutional layer would scan across samples.\"\n                 )\n+            if layer_types == {\"linear_attention\", \"indexed_attention\"} and not patch_tree_qwen4_exp(model):\n+                raise ValueError(\n+                    f\"{type(model).__name__} selects its sparse-attention keys, builds its n-gram embeddings and \"\n+                    \"convolves its per-layer embeddings through module-level functions that tree packing patches; its \"\n+                    \"modeling module lacks `qsa_select_tokens`, `ngram_shift_right` or `ple_short_conv`.\"\n+                )\n+        # The indexer reads the 4D mask the model builds, and selects its own keys on top of it. A flat all-ones mask\n+        # keeps that mask plain causal: inferred from the row's position ids, which are depths and not offsets, it\n+        # would cut every path off from the segments before it.\n+        self.explicit_attention_mask = tree_attn_implementation(model.config) != TREE_ATTENTION\n+\n         if any(name.endswith(\".sinks\") for name, _ in model.named_parameters()):\n             raise ValueError(\n                 f\"{type(model).__name__} uses attention sinks, which the FA3 kernel used by tree packing does not \"\n@@ -1247,7 +1267,7 @@ class AsyncGRPOTrainer(_BaseTrainer):\n         # Adapter-only vLLM sync is derived from a PEFT model plus a server started with `--enable-lora`, rather\n         # than configured. Rank 0 probes and broadcasts the answer below.\n         self._lora_sync = False\n-        self._lora_name = \"trl-policy\"\n+        self._lora_name = self.args.vllm_lora_name\n         # Absolute: the path is resolved by the *server's* process, which has its own working directory and may not\n         # be on this machine. vLLM reads a path it cannot resolve as a Hub repo id, failing deep inside the engine.\n         self._lora_dir = os.path.abspath(os.path.join(self.args.output_dir, \".vllm_lora\"))\n@@ -1447,6 +1467,7 @@ class AsyncGRPOTrainer(_BaseTrainer):\n         forward_start = time.time()\n         # MoE models: request router logits so the forward returns the load-balancing loss\n         router_kwargs = {\"output_router_logits\": True} if self.aux_loss_enabled else {}\n+        mask_kwargs = {\"attention_mask\": torch.ones_like(input_ids)} if self.explicit_attention_mask else {}\n         outputs = model(\n             input_ids=input_ids,\n             position_ids=position_ids,\n@@ -1455,6 +1476,7 @@ class AsyncGRPOTrainer(_BaseTrainer):\n             score_ids=sampler_ids,\n             fused_lm_head=True,\n             **router_kwargs,\n+            **mask_kwargs,\n             **unpad_tree(inputs),\n         )\n         log_probs = outputs.log_probs.flatten()[token_index]\n@@ -1799,11 +1821,10 @@ class AsyncGRPOTrainer(_BaseTrainer):\n         # Under DDP `self.model` is the wrapper, which does not expose `save_pretrained`.\n         model = self.accelerator.unwrap_model(self.model)\n \n-        logger.info(\"Weight sync: pausing vLLM...\")\n-        if self.accelerator.is_main_process:\n-            self.vllm_client.pause()\n+        # No `/pause`: in-flight requests keep the adapter they named, and pausing would stall every other trainer\n+        # sharing this server.\n         t_pause = time.time()\n-        logger.info(f\"Weight sync: pause took {t_pause - t0:.1f}s, waiting for all ranks...\")\n+        logger.info(\"Weight sync: waiting for all ranks...\")\n \n         self.accelerator.wait_for_everyone()\n         t_barrier = time.time()\n@@ -1816,12 +1837,11 @@ class AsyncGRPOTrainer(_BaseTrainer):\n \n         self.accelerator.wait_for_everyone()\n \n-        logger.info(f\"Weight sync: resuming vLLM... (transfer took {t_transfer - t_barrier:.1f}s)\")\n+        logger.info(f\"Weight sync: loading adapter... (transfer took {t_transfer - t_barrier:.1f}s)\")\n         if self.accelerator.is_main_process:\n             # The adapter has to exist on the server BEFORE the version moves below: the rollout worker derives the\n             # adapter it requests from `model_version`, so bumping first would name one that is not loaded yet.\n             self.vllm_client.load_lora_adapter(f\"{self._lora_name}-v{version}\", adapter_dir)\n-            self.vllm_client.resume()\n             stale_version = version - (self.args.max_staleness + 1)\n             if stale_version > 0:\n                 self.vllm_client.unload_lora_adapter(f\"{self._lora_name}-v{stale_version}\")\ndiff --git a/trl/experimental/async_grpo/async_rollout_worker.py b/trl/experimental/async_grpo/async_rollout_worker.py\nindex 754a02d4..d55e043d 100644\n--- a/trl/experimental/async_grpo/async_rollout_worker.py\n+++ b/trl/experimental/async_grpo/async_rollout_worker.py\n@@ -564,6 +564,9 @@ class AsyncRolloutLoop:\n             max_workers=max(1, config.max_concurrent_rollouts), thread_name_prefix=\"grpo-tool\"\n         )\n \n+        # Starts at the requested concurrency, not at `KV cache tokens / max_model_len`: agent rollouts use a small\n+        # fraction of max_model_len, and growing 25% per turnover of the pool took hours when rollouts last minutes.\n+        # The control loop still cuts it when the server's KV cache fills up.\n         self._kv_cap = config.max_concurrent_rollouts\n         self._total_rollouts = 0\n         self._metrics_poll_s = 5.0\n@@ -667,7 +670,6 @@ class AsyncRolloutLoop:\n         async with aiohttp.ClientSession(connector=connector, timeout=timeout) as session:\n             self.session = session\n             await self._check_sampling_replay()\n-            await self._init_kv_cap()\n             logger.info(\n                 f\"vllm worker started: num_generations={self.config.num_generations}, \"\n                 f\"max_concurrent_rollouts={self.config.max_concurrent_rollouts}, kv_cap={self._kv_cap}, \"\n@@ -694,26 +696,6 @@ class AsyncRolloutLoop:\n         expected_tokens = self._produced_tokens + self._rollouts_unqueued * self._tokens_per_rollout\n         return expected_tokens < self._token_allowance.value\n \n-    async def _init_kv_cap(self) -> None:\n-        \"\"\"Start the cap at `KV cache tokens / max_model_len`: as many requests as fit at full length.\"\"\"\n-        try:\n-            async with self.session.get(f\"{self.vllm_server_url}/metrics\") as response:\n-                response.raise_for_status()\n-                text = await response.text()\n-            async with self.session.get(f\"{self.vllm_server_url}/v1/models\") as response:\n-                response.raise_for_status()\n-                models = await response.json()\n-        except Exception as e:\n-            logger.warning(f\"Could not read the vLLM server's KV capacity, starting at max_concurrent_rollouts: {e!r}\")\n-            return\n-        kv_matches = re.findall(r'^vllm:cache_config_info\\{.*kv_cache_size_tokens=\"(\\d+)\"', text, re.M)\n-        if not kv_matches:\n-            logger.warning(\"`/metrics` has no `kv_cache_size_tokens`, starting at max_concurrent_rollouts\")\n-            return\n-        kv_tokens = sum(map(int, kv_matches))\n-        max_model_len = max(model[\"max_model_len\"] for model in models[\"data\"] if model[\"max_model_len\"])\n-        self._kv_cap = max(1, min(self.config.max_concurrent_rollouts, kv_tokens // max_model_len))\n-\n     async def _control_loop(self, stop_event: asyncio.Event) -> None:\n         \"\"\"Size the KV cap from the vLLM server's load, polled from `/metrics`.\n \ndiff --git a/trl/experimental/async_grpo/openenv_harness.py b/trl/experimental/async_grpo/openenv_harness.py\nindex 1958e09c..07d6e39f 100644\n--- a/trl/experimental/async_grpo/openenv_harness.py\n+++ b/trl/experimental/async_grpo/openenv_harness.py\n@@ -161,6 +161,10 @@ class _HarnessRolloutLoop(AsyncRolloutLoop):\n             if correctness is not None:\n                 self._rates[\"rollout/correctness_mean\"][0] += correctness\n                 self._rates[\"rollout/correctness_mean\"][1] += 1.0\n+                # Tool calls of solved rollouts only: the efficiency of a solution, unmixed with failed attempts\n+                if correctness >= 1.0:\n+                    self._rates[\"rollout/solved_tool_calls_mean\"][0] += sum(metrics[\"tool_calls_by_name\"].values())\n+                    self._rates[\"rollout/solved_tool_calls_mean\"][1] += 1.0\n             for name, count in metrics.pop(\"tool_calls_by_name\").items():\n                 self._counters[f\"tools/{name}/call_count\"] += count\n             for name, count in metrics.pop(\"tool_failures_by_name\").items():\ndiff --git a/trl/experimental/async_grpo/packing.py b/trl/experimental/async_grpo/packing.py\nindex 9d5a54b6..001a5d01 100644\n--- a/trl/experimental/async_grpo/packing.py\n+++ b/trl/experimental/async_grpo/packing.py\n@@ -20,6 +20,7 @@ from typing import Any\n \n import numpy as np\n import torch\n+import torch.nn.functional as F\n from transformers import AttentionInterface\n from transformers.integrations.flash_attention import get_target_dtype\n from transformers.masking_utils import AttentionMaskInterface\n@@ -221,6 +222,207 @@ def unpad_tree(inputs: dict[str, torch.Tensor]) -> dict[str, Any]:\n \n TREE_ATTENTION = \"tree_fa3\"\n \n+QWEN4_EXP = \"qwen4_exp\"\n+\n+\n+def tree_attn_implementation(config) -> str:\n+    \"\"\"`sdpa` for Qwen4-Exp, whose attention selects its own mask, and tree attention for every other model.\"\"\"\n+    return \"sdpa\" if config.model_type == QWEN4_EXP else TREE_ATTENTION\n+\n+\n+_MAPS = None  # the last row's maps: rebuilding them per layer costs a host sync and an (n, n) mask each time\n+\n+\n+def tree_maps(tree):\n+    \"\"\"The row's `prev` position on each one's own path, its `depth` there, and `visible`: whether it sees another.\"\"\"\n+    global _MAPS\n+    if _MAPS is not None and _MAPS[0] is tree[\"tree_cu_seqlens_q\"]:\n+        return _MAPS[1]\n+    cu_seqlens_q, cu_seqlens_k, kv_index = tree[\"tree_cu_seqlens_q\"], tree[\"tree_cu_seqlens_k\"], tree[\"tree_kv_index\"]\n+    device = kv_index.device\n+    parents = tree[\"tree_segment_parents\"].long()\n+    cu_q, cu_k = cu_seqlens_q.tolist(), cu_seqlens_k.tolist()\n+    n = cu_q[-1]  # the row's positions; `tree_kv_index` repeats a segment's whole path, so it is longer\n+    lengths = [end - start for start, end in zip(cu_q[:-1], cu_q[1:], strict=True)]\n+    # A parent is laid out before its children, so one pass gives each segment the depth its first token sits at\n+    depths = []\n+    for parent in parents.tolist():\n+        depths.append(0 if parent < 0 else depths[parent] + lengths[parent])\n+    prev = torch.arange(n, device=device) - 1\n+    parent_last = torch.where(parents >= 0, cu_seqlens_q.long()[(parents + 1).clamp_min(0)] - 1, -1)\n+    prev[cu_seqlens_q[:-1].long()] = parent_last\n+    segments = torch.repeat_interleave(torch.arange(len(lengths), device=device), torch.tensor(lengths, device=device))\n+    depth = (\n+        torch.arange(n, device=device)\n+        - torch.tensor(cu_q[:-1], device=device)[segments]\n+        + torch.tensor(depths, device=device)[segments]\n+    )\n+    visible = torch.zeros(n, n, dtype=torch.bool, device=device)\n+    for start, end, path_start, path_end in zip(cu_q[:-1], cu_q[1:], cu_k[:-1], cu_k[1:], strict=True):\n+        path = kv_index[path_start:path_end].long()  # laid out before this segment, so it is ascending\n+        visible[start:end, path] = path.unsqueeze(0) <= torch.arange(start, end, device=device).unsqueeze(1)\n+    _MAPS = (cu_seqlens_q, {\"prev\": prev, \"depth\": depth, \"visible\": visible})\n+    return _MAPS[1]\n+\n+\n+def tree_ngram_shift_right(token_ids: torch.Tensor, shift: int, eos_token_id: int, tree) -> torch.Tensor:\n+    \"\"\"The `shift`-th token before each position on its own path, and EOS where that leaves the path or crosses one.\"\"\"\n+    if shift == 0:\n+        return token_ids\n+    prev = tree_maps(tree)[\"prev\"]\n+    n = prev.numel()\n+    tokens = token_ids[:, -n:]\n+    eos = tokens == eos_token_id\n+    index = torch.arange(n, device=prev.device)\n+    valid = torch.ones(tokens.shape, dtype=torch.bool, device=prev.device)\n+    for _ in range(shift):\n+        index = torch.where(index >= 0, prev[index.clamp_min(0)], index)\n+        valid &= (index >= 0) & ~eos.gather(1, index.clamp_min(0).expand(tokens.shape[0], -1))\n+    shifted = tokens.gather(1, index.clamp_min(0).expand(tokens.shape[0], -1))\n+    shifted = torch.where(valid, shifted, torch.full_like(shifted, eos_token_id))\n+    output = token_ids.new_full(token_ids.shape, eos_token_id)  # the caller's EOS context columns stay EOS\n+    output[:, -n:] = shifted\n+    return output\n+\n+\n+def tree_ple_short_conv(hidden_states: torch.Tensor, conv1d: torch.nn.Conv1d, tree) -> torch.Tensor:\n+    \"\"\"The dilated depthwise convolution along each path: every tap reads the position its dilation puts it at.\"\"\"\n+    prev = tree_maps(tree)[\"prev\"]\n+    n, device = prev.numel(), prev.device\n+    weight, bias = conv1d.weight, conv1d.bias\n+    states = hidden_states[..., -n:]\n+    output = torch.zeros_like(states)\n+    index = torch.arange(n, device=device)\n+    alive = torch.ones(n, dtype=torch.bool, device=device)\n+    for tap in reversed(range(weight.shape[-1])):\n+        steps = conv1d.dilation[0] if tap < weight.shape[-1] - 1 else 0  # the last tap is the position itself\n+        for _ in range(steps):\n+            alive &= index >= 0\n+            index = torch.where(index >= 0, prev[index.clamp_min(0)], index)\n+        alive &= index >= 0\n+        source = index.clamp_min(0).expand(states.shape[0], states.shape[1], -1)\n+        output.addcmul_(states.gather(2, source).masked_fill_(~alive, 0), weight[:, 0, tap].view(1, -1, 1))\n+    if bias is not None:\n+        output.add_(bias.view(1, -1, 1))\n+    return F.silu(output)\n+\n+\n+def _rotate_half(x: torch.Tensor) -> torch.Tensor:\n+    \"\"\"Rotate the first half of the head dimension onto the second, as the model's rotary embedding does.\"\"\"\n+    x1, x2 = x[..., : x.shape[-1] // 2], x[..., x.shape[-1] // 2 :]\n+    return torch.cat((-x2, x1), dim=-1)\n+\n+\n+def _apply_rope(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor) -> torch.Tensor:\n+    \"\"\"Rotate `x` with the `cos` and `sin` of its block's first token, as the model's indexer does.\"\"\"\n+    rotary_dim = cos.shape[-1]\n+    rotated = x[..., :rotary_dim] * cos + _rotate_half(x[..., :rotary_dim]) * sin\n+    return torch.cat([rotated, x[..., rotary_dim:]], dim=-1)\n+\n+\n+def tree_qsa_select_tokens(q, raw_keys, full_cos, full_sin, k_layernorm, block_topk, compress_ratio, tree):\n+    \"\"\"\n+    The indexer's selection over the row, as a bool mask of shape `(1, 1, q, kv)`: a block is `compress_ratio`\n+    consecutive depths on one path, keyed by its last token.\n+    \"\"\"\n+    maps = tree_maps(tree)\n+    prev, depth, visible = maps[\"prev\"], maps[\"depth\"], maps[\"visible\"]\n+    device, n = prev.device, prev.numel()\n+    head_dim = q.shape[-1]\n+\n+    block_last = torch.nonzero(depth % compress_ratio == compress_ratio - 1).flatten()\n+    members = [block_last]\n+    for _ in range(compress_ratio - 1):\n+        members.insert(0, prev[members[0].clamp_min(0)])\n+    members = torch.stack(members, dim=1)  # (blocks, compress_ratio), by increasing depth\n+    pooled = raw_keys[0].index_select(0, members.flatten()).view(len(block_last), compress_ratio, -1)\n+    pooled = k_layernorm(pooled.float().mean(dim=1).to(raw_keys.dtype))\n+    block_states = _apply_rope(\n+        pooled.unsqueeze(1),\n+        full_cos[0].index_select(0, members[:, 0]).unsqueeze(1),\n+        full_sin[0].index_select(0, members[:, 0]).unsqueeze(1),\n+    )\n+    block_states = block_states.squeeze(1).float()\n+\n+    queries = q[0].float()\n+    num_blocks, num_selected = len(block_last), min(block_topk, len(block_last))\n+    selected = torch.zeros(n, n, dtype=torch.uint8, device=device)\n+    flat = selected.view(-1)\n+    queries_per_chunk = max(1, 2**24 // max(num_blocks * queries.shape[1], 1))  # bound the score tensor\n+    for start in range(0, n, queries_per_chunk):\n+        stop = min(start + queries_per_chunk, n)\n+        rows = torch.arange(start, stop, device=device)\n+        scores = torch.einsum(\"qhd,bd->qbh\", queries[start:stop], block_states)\n+        scores = scores.relu().sum(dim=-1) / math.sqrt(head_dim)\n+        seen = visible[start:stop].index_select(1, block_last)\n+        top = scores.masked_fill(~seen, float(\"-inf\")).topk(num_selected, dim=-1)\n+        chosen = torch.where(top.values > float(\"-inf\"), top.indices, -1)\n+        kept = chosen >= 0\n+        ones = torch.ones(chosen.shape, dtype=torch.uint8, device=device)\n+        for member in range(compress_ratio):\n+            source = members[:, member].index_select(0, chosen.flatten().clamp_min(0)).view(chosen.shape)\n+            flat.index_add_(0, (source + rows.view(-1, 1) * n)[kept], ones[kept])  # union: accumulate, do not assign\n+        cutoff = (depth[rows] + 1) // compress_ratio * compress_ratio\n+        tail = visible[start:stop] & (depth.view(1, -1) >= cutoff.view(-1, 1))\n+        selected[start:stop].bitwise_or_(tail.to(torch.uint8))\n+\n+    return (selected.to(torch.bool) & visible).view(1, 1, n, n)\n+\n+\n+_QWEN4_PATCHED = set()\n+\n+\n+def patch_tree_qwen4_exp(model) -> bool:\n+    \"\"\"\n+    Make Qwen4-Exp's n-gram embedding, per-layer short convolution and sparse-attention indexer follow each sample's\n+    own path, and report whether the modeling module has those three functions.\n+    \"\"\"\n+    modeling = sys.modules[type(model).forward.__module__]\n+    names = (\"ngram_shift_right\", \"ple_short_conv\", \"qsa_select_tokens\")\n+    originals = [vars(modeling).get(name) for name in names]\n+    if any(original is None for original in originals):\n+        return False\n+    if modeling in _QWEN4_PATCHED:\n+        return True\n+    ngram_shift_right, ple_short_conv, qsa_select_tokens = originals\n+\n+    def ngram_shift_right_fn(token_ids, shift, eos_token_id, **kwargs):\n+        if \"tree_segment_parents\" not in kwargs:\n+            return ngram_shift_right(token_ids, shift, eos_token_id, **kwargs)\n+        return tree_ngram_shift_right(token_ids, shift, eos_token_id, kwargs)\n+\n+    def ple_short_conv_fn(hidden_states, conv1d, **kwargs):\n+        if \"tree_segment_parents\" not in kwargs:\n+            return ple_short_conv(hidden_states, conv1d, **kwargs)\n+        return tree_ple_short_conv(hidden_states, conv1d, kwargs)\n+\n+    def qsa_select_tokens_fn(\n+        q,\n+        raw_keys,\n+        full_cos,\n+        full_sin,\n+        attention_mask,\n+        k_layernorm,\n+        block_topk,\n+        compress_ratio,\n+        token_budget,\n+        **kwargs,\n+    ):\n+        if \"tree_segment_parents\" not in kwargs:\n+            return qsa_select_tokens(\n+                q, raw_keys, full_cos, full_sin, attention_mask, k_layernorm, block_topk, compress_ratio, token_budget,\n+                **kwargs,\n+            )\n+        return tree_qsa_select_tokens(q, raw_keys, full_cos, full_sin, k_layernorm, block_topk, compress_ratio, kwargs)\n+\n+    modeling.ngram_shift_right, modeling.ple_short_conv, modeling.qsa_select_tokens = (\n+        ngram_shift_right_fn,\n+        ple_short_conv_fn,\n+        qsa_select_tokens_fn,\n+    )\n+    _QWEN4_PATCHED.add(modeling)\n+    return True\n+\n \n @cache\n def _flash_attn():\n@@ -289,7 +491,7 @@ def patch_tree_gdn(model) -> bool:\n     Returns:\n         `bool`: whether the model's modeling module has those functions.\n     \"\"\"\n-    modeling = sys.modules[type(model).__module__]\n+    modeling = sys.modules[type(model).forward.__module__]\n     conv, chunk = vars(modeling).get(\"causal_conv1d_fn\"), vars(modeling).get(\"torch_chunk_gated_delta_rule\")\n     if conv is None or chunk is None:\n         return False\n"
 },
 "other_files": [
  "async_grpo_harbor.py",
  "make_launcher_fsdp.py",
  "modeling_qwen4_exp.flashnext.py"
 ],
 "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/Qwen3.8-Flash-Next/index.html",
  "markdown": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/Qwen3.8-Flash-Next/index.md",
  "json": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/Qwen3.8-Flash-Next/recipe.json",
  "yaml": "https://trl-lib-trl-recipes.static.hf.space/recipes/harness-adapters/Qwen3.8-Flash-Next/recipe.yaml",
  "hub_blob_markdown": "https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/harness-adapters/Qwen3.8-Flash-Next/index.md",
  "hub_raw_markdown": "https://huggingface.co/spaces/trl-lib/trl-recipes/raw/main/recipes/harness-adapters/Qwen3.8-Flash-Next/index.md",
  "hub_raw_yaml": "https://huggingface.co/spaces/trl-lib/trl-recipes/raw/main/recipes/harness-adapters/Qwen3.8-Flash-Next/recipe.yaml",
  "hub_tree": "https://huggingface.co/spaces/trl-lib/trl-recipes/tree/main/recipes/harness-adapters/Qwen3.8-Flash-Next",
  "rel_html": "recipes/harness-adapters/Qwen3.8-Flash-Next/index.html",
  "rel_markdown": "recipes/harness-adapters/Qwen3.8-Flash-Next/index.md",
  "rel_json": "recipes/harness-adapters/Qwen3.8-Flash-Next/recipe.json",
  "rel_yaml": "recipes/harness-adapters/Qwen3.8-Flash-Next/recipe.yaml"
 },
 "commands": {}
}