Skip to content

[rl] Scheduler launchers on the Monarch actor system, starting with SLURM - #5572

Merged
pzhan9 merged 8 commits into
pytorch:mainfrom
pzhan9:pzhang/rl-slurm-launcher
Nov 3, 2026
Merged

pzhan9 merged 8 commits into
pytorch:mainfrom
pzhan9:pzhang/rl-slurm-launcher

Conversation

@pzhan9

@pzhan9 pzhan9 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary (human-written)

This PR adds a slurm launcher, so we can launch a job using multiple hosts. See rl_grpo_qwen3_0_6b_flex_slurm for the example of how it is used.

Why

TitanRL can run on several hosts only through a launcher that builds
MonarchActorSystem(host_meshes=...) itself; the in-repo path
(python -m torchtitan.rl.train) runs every role on the controller's host. There
is no way to submit a recipe to a cluster scheduler from this repo.

Example. Qwen3-0.6B GRPO on two 4-GPU SLURM nodes:

python -m torchtitan.rl.actors.monarch.launcher.submit \
  --module torchtitan_recipes.rl.alphabet_sort --config rl_grpo_qwen3_0_6b_flex_slurm
node 0 (mesh trainer):  trainer, TP=2 x FSDP=2      4 GPUs
node 1 (mesh node_0):   generator_0..3, 1 GPU each  4 GPUs

What changed

  • Launch recipes (launcher/base.py): MonarchControllerWithLauncher is a
    Controller subclass whose Config adds launcher at the root, so a launch
    recipe is "this RL recipe on this cluster", built with
    MonarchControllerWithLauncher.Config.from_controller_config(config, launcher=...). Controller.Config and MonarchActorSystem.Config have no
    launcher settings.
  • Building the actor system (controller.py): setup_async builds it
    through a new Controller._build_actor_system(), which builds
    config.actor_system. MonarchControllerWithLauncher overrides it to acquire
    the planned hosts and build MonarchActorSystem(host_meshes=...) from
    self.config.
  • Submit: launcher/submit.py plans the layout on the submit host and
    submits. The scheduler runs the unchanged python -m torchtitan.rl.train with
    the same arguments; config.build() builds MonarchControllerWithLauncher.
  • Layout planner (MonarchLauncher._layout): places the trainer, then each
    generator, filling one node before the next. A role using a node or more gets
    whole nodes; smaller roles share nodes; idle GPUs are logged as one warning.
    Table of examples in torchtitan/rl/actors/monarch/README.md ("Layout").
  • SlurmLauncher (launcher/slurm.py): one Monarch SlurmJob in batch
    mode, controller on SLURM's head node. Site settings go in slurm_args; flags
    the launcher owns are rejected. JIT caches (Triton, vLLM, FlashInfer) default to
    node-local /tmp/torchtitan-<uid>.
  • Example launch recipe rl_grpo_qwen3_0_6b_flex_slurm in
    alphabet_sort.py.
  • Removed MonarchActorSystem's generator_env argument (and
    extra_env behind it): unused since [RL] Remove FULL_AND_PIECEWISE CUDA graph mode #4834 removed its only caller.
  • Small, mechanical: Controller.Config.resolve_overrides() (moved out of
    Controller.__init__ so submit plans from the overridden config);
    generator_role_names in provisioning.py, shared by the planner and
    MonarchActorSystem.

Alternatives considered

  • Launcher on MonarchActorSystem.Config (an earlier version of this PR): makes
    every recipe pick its scheduler and adds a second way to pass hosts.
  • A separate job entry point passing a pre-built actor system through a
    train.main hook and setup_async(actor_system=...) (an earlier version of
    this PR): more code, and the hook got the config before overrides were
    applied, so root-level overrides never reached the job.
  • Launcher config wrapping Controller.Config in a job field: --override
    needs override at the root, so CLI overrides and --print-config would change.
  • Launcher config loaded separately from the RL recipe (--launcher module:fn):
    launches are defined per recipe and cluster in practice, as in fairtitan.

User-facing changes

Before After
Multi-host only via an out-of-repo launcher passing host_meshes Also launcher.submit with a MonarchControllerWithLauncher.Config recipe
python -m torchtitan.rl.train Unchanged
controller.setup_async(actor_system=...) Removed. Subclass Controller and override _build_actor_system
MonarchActorSystem(..., generator_env=...) Removed (no in-repo caller since #4834)

Numerics

No computation change. Without a launcher, Controller._build_actor_system
builds config.actor_system, as setup_async did before.

Testing

  • CPU: pytest tests/rl/unit_tests/cpu/: 530 passed, 9 skipped, 1 failed. The
    failure, test_model_defaults[dapo_math], also fails without this PR: the
    local venv's torch_checkpointing lacks CallbackArgs. test_dapo_math.py is
    not collected locally (optional math_verify missing). test_launcher.py
    covers the layout planner (examples, idle warning, fits the hosts, rejected
    sizes, shared mesh objects), submit, MonarchControllerWithLauncher (builds
    the subclass, requires a Monarch actor system, acquires hosts from the layout),
    and SlurmLauncher's sbatch arguments, env and validation.
  • Real SLURM runs on FAIR CoreWeave GB300 (4 GPUs per node), account sysml,
    --segment=1, bind_to="::", HF_HUB_OFFLINE, HF_DATASETS_OFFLINE and
    MONARCH_RDMA_IBVERBS_TARGET in launcher.env, W&B disabled; launch recipes
    local, not committed:
Job Layout Result
2338739 rl_grpo_qwen3_0_6b_flex_slurm at the head commit (MonarchControllerWithLauncher): node 0: trainer (TP=2 x FSDP=2); node 1: generator_0..3 (1 GPU each) completed, exit 0, 6m32s; job runs plain torchtitan.rl.train; trainer mesh dp_shard=2 x tp=2; 10 steps (loss -0.0032 -> -0.0024, grad norm 2.17 -> 0.62); weight sync to the generator node every step; validation reward 0.181 -> 0.216
2205059 node 0: trainer (TP=2), generator_0, generator_1; node 1: generator_2, generator_3 (2 GPUs idle on node 1) completed, exit 0, 6m35s; 10 steps (loss -0.0041 -> 0.00012); weight sync to both nodes every step; validation reward 0.181 -> 0.226
2312888 rl_grpo_qwen3_0_6b_flex_slurm, before the Controller subclass: node 0: trainer (TP=2 x FSDP=2); node 1: generator_0..3 (1 GPU each) completed, exit 0, 6m36s; submitted through launcher.job; trainer mesh dp_shard=2 x tp=2; 10 steps (loss -0.0064 -> -0.0022, grad norm 5.09 -> 0.53); weight sync to the generator node every step; validation reward 0.181 -> 0.197
2205441 earlier recipe version: node 0: trainer (FSDP=4); node 1: generator_0..3 (1 GPU each); submitted through launcher.job completed, exit 0, 6m42s; 10 steps (loss -0.013 -> -0.0024); weight sync to the generator node every step; validation reward 0.181 -> 0.181
  • Single-node regression, python -m torchtitan.rl.train --module torchtitan_recipes.rl.alphabet_sort --config rl_grpo_qwen3_0_6b_flex on one
    4-GPU node, this PR vs. its base 01586df70 (the recipe is not seeded or
    deterministic, so losses are compared by range, not bitwise):
Job Code Result
2338740 head commit completed, exit 0, 7m29s; 10 steps (loss -0.0036 -> -0.00076, grad norm 2.77 -> 0.56); validation reward 0.179 -> 0.192
2338741 base 01586df70 completed, exit 0, 7m29s; 10 steps (loss -0.0051 -> -0.0014, grad norm 3.78 -> 0.55); validation reward 0.179 -> 0.193

Known issues / follow-ups

  • Not yet tested with [rl] Every generate call goes over HTTP to its generator (10/14) #5506 (HTTP generation), where rollout workers call
    generators on other nodes; a 3-node smoke test once both are in.
  • SlurmLauncher reads the SLURM job id through a private Monarch attribute
    (TODO in slurm.py).
  • fairtitan's SLURM launcher calls setup_async(actor_system=...); it moves to
    this launcher in a companion change.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 20, 2026
@pzhan9
pzhan9 marked this pull request as ready for review October 21, 2026 21:03
@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Oct 21, 2026
@pzhan9
pzhan9 marked this pull request as draft October 21, 2026 21:09
@pytorch-bot pytorch-bot Bot removed the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Oct 21, 2026
@pzhan9
pzhan9 force-pushed the pzhang/rl-slurm-launcher branch from 5fc6827 to 70c9ebd Compare October 21, 2026 21:13
@pzhan9
pzhan9 marked this pull request as ready for review October 21, 2026 21:46
@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Oct 21, 2026
@felipemello1

Copy link
Copy Markdown
Contributor

reply from claude: two notes for landing:

@felipemello1 felipemello1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TODO is a major bug and I dont think that we should ship it as is. Is it a big lift to fix?

Comment thread torchtitan/rl/actors/monarch/system.py Resolved
Comment thread torchtitan_recipes/rl/alphabet_sort.py Outdated
Comment on lines +265 to +268
# Node-local JIT caches: the default caches live under the home directory, which
# SLURM clusters usually put on a shared network filesystem; nodes compiling
# into one shared cache can hang or crash.
cache_root = f"/tmp/torchtitan-{os.getuid()}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds a bit odd that user has to remember to define this in every slurm config, or things crash. Can we make it a default for our launcher somehow?

Comment thread torchtitan_recipes/rl/alphabet_sort.py Resolved
@felipemello1

Copy link
Copy Markdown
Contributor

Review by claude: the design looks right and is close to landing. One SlurmJob per run, the MonarchLauncher / SlurmLauncher split, and the controller inside the batch job all look good. With the controller in the job, a dropped login shell doesn't kill the run; torchforge's Slurm launcher keeps the controller on the submit host. The CPU tests pass (56 in test_launcher.py + test_shutdown.py).

I'd land it after the 4 changes below. Changes 1, 3 and 4 are code for the inline asks.

1. Pack roles smaller than a node (the _layout TODO).

On 4-GPU nodes, a 4-GPU trainer and four 1-GPU generators take 5 nodes today and leave 12 GPUs idle. Layout and spawn_proc_mesh already let roles share a mesh, so only _layout changes. All generators are the same size, so filling one shared node at a time is enough.

Before (launcher/base.py):

            if world_size < gpus_per_node:
                logger.warning(...)
                mesh_nodes[role] = 1
            ...
            role_mesh={role: role for role in role_world_sizes},

After:

        """Plan the host meshes: a role of a node or more gets its own nodes, and
        smaller roles fill shared nodes in order. Example, 4 GPUs per node:

            trainer 8, generators 1 x4  ->  trainer: 2 nodes | shared_0: generator_0..3
            trainer 2, generators 1 x2  ->  shared_0: trainer, generator_0, generator_1
            trainer 4, generators 3 x2  ->  trainer: 1 node | shared_0: generator_0 | shared_1: generator_1
        """
        ...
        mesh_nodes, role_mesh = {}, {}
        num_shared = free_gpus = 0
        for role, world_size in role_world_sizes.items():
            if world_size >= gpus_per_node:
                if world_size % gpus_per_node:
                    raise ValueError(...)
                mesh_nodes[role] = world_size // gpus_per_node
                role_mesh[role] = role
                continue
            # Start a new shared node when the current one is full.
            if world_size > free_gpus:
                shared = f"shared_{num_shared}"
                mesh_nodes[shared], free_gpus = 1, gpus_per_node
                num_shared += 1
            free_gpus -= world_size
            role_mesh[role] = shared
        idle_gpus = sum(mesh_nodes.values()) * gpus_per_node - sum(role_world_sizes.values())
        if idle_gpus:
            logger.warning(f"{idle_gpus} GPUs stay idle: {role_mesh}")
        return Layout(gpus_per_node=gpus_per_node, mesh_nodes=mesh_nodes, role_mesh=role_mesh)
  • I checked this on CPU with Layout.host_meshes and _check_gpus_per_host.
  • Four tests plan roles smaller than a node on FakeLauncher's 8-GPU nodes and need new expectations: the first test_layout case, test_submit_dry_run_does_not_submit, test_submit_plans_after_overrides and test_provision_acquires_and_stop_releases_hosts.
  • The README's "Layout" paragraph and its TODO go, and so does the "does not plan this yet" line in Layout.host_meshes.

2. Keep the launcher's hosts in self._host_meshes.

provision keeps them in a local variable and leaves the field None, so code that reads self._host_meshes never sees them.

Before (system.py, provision):

        # TODO: remove _host_meshes (and the host_meshes argument) once internal
        # ad-hoc launchers have migrated to MonarchLauncher.
        host_meshes = self._host_meshes
        if host_meshes is None and self._launcher is not None:
            ...
            host_meshes = layout.host_meshes(self._launcher_meshes)
        ...
            host_meshes=host_meshes,

After:

        # TODO: remove the host_meshes argument once internal ad-hoc launchers have
        # migrated to MonarchLauncher.
        if self._host_meshes is None and self._launcher is not None:
            ...
            self._host_meshes = layout.host_meshes(self._launcher_meshes)
        ...
            host_meshes=self._host_meshes,

3. Node-local JIT caches by default in SlurmLauncher.

Then no SLURM recipe has to copy them, and a value from the recipe's env or from the submit shell still wins.

Before (alphabet_sort.py):

    cache_root = f"/tmp/torchtitan-{os.getuid()}"
    ...
        env={"TRITON_CACHE_DIR": ..., "VLLM_CACHE_ROOT": ..., "FLASHINFER_WORKSPACE_BASE": ...},

After (slurm.py, submit):

        os.environ.update(plan.env)
        # Node-local JIT caches: home is usually on NFS, and nodes compiling into
        # one shared cache can hang or crash.
        cache_root = f"/tmp/torchtitan-{os.getuid()}"
        os.environ.setdefault("TRITON_CACHE_DIR", f"{cache_root}/triton")
        os.environ.setdefault("VLLM_CACHE_ROOT", f"{cache_root}/vllm")
        os.environ.setdefault("FLASHINFER_WORKSPACE_BASE", f"{cache_root}/flashinfer")

The recipe also drops import os.

4. Example recipe: the trainer on one node, then one 1-GPU generator per GPU on a second node (needs change 1).

Before (alphabet_sort.py):

    config.num_generators = 2
    ...
    launcher = SlurmLauncher.Config(gpus_per_node=2, env={...})

After:

    gpus_per_node = 4  # your nodes' GPU count
    config = rl_grpo_qwen3_0_6b_flex()
    config.trainer.parallelism = ParallelismConfig(data_parallel_shard_degree=gpus_per_node)
    config.generator.parallelism = InferenceParallelismConfig()  # 1 GPU
    config.trainer.model, config.generator.model = _qwen3_rl_model_configs(
        "0.6B",
        seq_len=config.trainer.training.max_context_length,
        attn_backend="flex",
        trainer_parallelism=config.trainer.parallelism,
        generator_parallelism=config.generator.parallelism,
    )
    # Node 0: the trainer. Node 1: one generator per GPU.
    config.num_generators = gpus_per_node
    config.actor_system = MonarchActorSystem.Config(
        launcher=SlurmLauncher.Config(gpus_per_node=gpus_per_node)
    )
  • On CPU this plans {"trainer": 1, "shared_0": 1}; I haven't run it on a cluster.
  • The README's "three nodes" sentence and the recipe docstring change to two nodes, and test_slurm_recipe_plans_a_node_per_role changes to match.

Smaller:

  • release_hosts is a no-op, and SlurmLauncher doesn't override it. Could it go until a scheduler needs it? Then _launcher_meshes, the block in stop() and the release half of test_provision_acquires_and_stop_releases_hosts go too.
  • test_slurm_submit_can_share_nodes only reads back one forwarded flag, so it can go. The two SBATCH_EXPORT tests can be one parametrized test.

Related: felipemello1#412 needs change 2. It matters only when both PRs land and the trainer spans several nodes.

@pzhan9

pzhan9 commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor Author

@felipemello1 The TODO is not a bug. We have been using this internally for several months.

@felipemello1

felipemello1 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

@pzhan9 , you are saying that:

  1. If a node has 8 gpus
  2. and i set generator=1gpu
  3. and i set 8 generators
  4. I will take 8 nodes, with 8x7 gpus idle

Is that correct?

If so, to me it looks like a terrible footgun. I had it patched in my runs.

I don't think that the fix is that complex, since I ran probably >100 experiments with it fixed. But if you think we shouldn't do it in this pr, we should at least not allow the footgun, or have another diff in this stack with the fix

Comment thread torchtitan/rl/actors/monarch/README.md Outdated
```python
def my_rl_slurm():
config = rl_grpo_qwen3_0_6b_flex_slurm()
config.actor_system.launcher.slurm_args += ["--account=my-account", "--partition=gpu"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't feel the most natural way of launching jobs
To me, the overall training config (here Controller.Config) should not have launcher details, so

  • either launcher config is at a strictly higher level -- launcher owns controller.config, not vice versa
  • or launcher doesn't belong to the python config tree at all

@tianyu-l

Copy link
Copy Markdown
Contributor

@claude review my review

@claude

claude Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @tianyu-l's task in 1m 0s —— View job


Review of @tianyu-l's review (README.md:70: launcher config inside Controller.Config)

Verdict: I agree with your point, and the code backs it up. Two things would make the comment easier to act on: (1) a note that the launcher has two halves, a submit half and an in-job half, and only the submit half is a natural fit outside the config tree; (2) a concrete recommendation of option 2, because the codebase already has a seam for it.

What the code supports in your comment

  1. The nesting couples a recipe to one scheduler. The PR has to add rl_grpo_qwen3_0_6b_flex_slurm (alphabet_sort.py), a copy of rl_grpo_qwen3_0_6b_flex that only sets actor_system.launcher. Every recipe needs a _slurm twin, or users have to edit the recipe, to run on a cluster. The README then tells users to put site settings (account, partition) in their own recipe. Those settings belong to the cluster and the user, not to the training config.
  2. The same recipe can't run through both entry points. MonarchActorSystem.provision raises "This recipe sets a launcher; submit it with ..." when it runs outside the job (system.py, provision). submit.py::_build_launcher raises the reverse error when the recipe sets no launcher. So the recipe decides how it gets launched, which is backwards.
  3. Secrets end up in config dumps. submit.py::_launcher_settings prints only env names ("values can hold secrets"). Inside the job, though, Controller.Config.maybe_log logs self.to_dict() (when print_config is set) and writes it to dump_folder (when save_config_file is set). Both include actor_system.launcher.env with its values. If the launcher is not in the tree, this can't happen.
  4. The codebase already has the "outside the tree" seam. Controller.setup_async(actor_system=...) is documented as "An actor system the launcher built, e.g. a MonarchActorSystem on hosts it allocated". MonarchActorSystem.__init__(host_meshes=...) is how the internal MAST and FAIR launchers already plug in (per @pzhan9's reply on system.py:102). This PR goes the other way: it adds a second path through the config and a TODO to delete the existing seam. Your option 2 would keep a single path.

What the comment leaves out

  • The in-job half. MonarchLauncher does two things:

    • On the submit host: plan and submit.
    • Inside the job: in_job and acquire_hosts, called from provision.

    The in-job half is the reason the config sits under actor_system. Moving the launcher out of the tree needs another way for the job to learn its scheduler. That part is small: the PR already passes the plan to the job through env vars (LAYOUT_ENV, _JOB_STATE_ENV). The submit side could also export the launcher class. A thin launcher-owned job entry point would then:

    1. call acquire_hosts,
    2. build MonarchActorSystem(config.actor_system, host_meshes=layout.host_meshes(...)),
    3. call Controller.setup_async(actor_system=...).

    torchtitan.rl.train stays unchanged, and actor_system.launcher goes away. It also settles @felipemello1's change 2 (self._host_meshes stays None, which affects [rl] Monarch: run the batcher on the last trainer host, off the controller's host felipemello1/torchtitan#412) without extra code, because the hosts would come in through the existing host_meshes argument.

  • Why option 2 over option 1. "Launcher owns Controller.Config", e.g. SlurmLauncher.Config(job=Controller.Config), still needs a wrapper recipe per scheduler. Every CLI override would also gain a --job. prefix, which breaks the PR's "same arguments as torchtitan.rl.train" design. With option 2, submit can still load a separate Configurable launcher config through ConfigLoader, so no custom argparse is needed, which follows the repo's "use torchtitan's config system" rule. The submit command would be something like submit --launcher-module my_site --launcher-config slurm_gb300 --module ... --config rl_grpo_qwen3_0_6b_flex.

  • Planning still needs the training config. plan reads trainer and generator world sizes, num_generators and dump_folder from the resolved config (resolve_overrides). That's fine under option 2: the launcher reads the controller config but doesn't live inside it. Worth saying so the author doesn't read the comment as "the launcher can't see the config".

Suggested wording, if you want to make it actionable

Prefer keeping the launcher out of Controller.Config: submit loads the launcher config separately, exports what the job needs (layout, launcher class, job state) through env, and a launcher-owned entry point acquires hosts and passes MonarchActorSystem(host_meshes=...) into Controller.setup_async(actor_system=...), which is the seam MAST and FAIR already use. Then any recipe runs on any scheduler unchanged, site settings stay out of recipes, and launcher.env values never reach maybe_log/save_config_file.

@pzhan9 pzhan9 changed the title [rl] Scheduler launchers on the Monarch actor system, starting with SLURM [WIP][rl] Scheduler launchers on the Monarch actor system, starting with SLURM Nov 2, 2026
@pzhan9
pzhan9 marked this pull request as draft November 2, 2026 20:54
@pytorch-bot pytorch-bot Bot removed the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Nov 2, 2026
@pzhan9
pzhan9 force-pushed the pzhang/rl-slurm-launcher branch from 70c9ebd to f0c70be Compare November 2, 2026 20:57
@pzhan9
pzhan9 marked this pull request as ready for review November 2, 2026 21:27
@pzhan9
pzhan9 requested review from fegin and shuhuayu as code owners November 2, 2026 21:27
@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Nov 2, 2026
tianyu-l added a commit that referenced this pull request Nov 4, 2026
## Summary (human-written)
<!-- Write this yourself, not with an AI tool. 2-5 sentences: the
problem, why
     this approach, and what you checked yourself. -->

## Why
The Real PG integration suite (`8 GPU Integration (Real PG - full suite
- features)`) and the ROCm integration suite have failed the `sft` loss
check on main since #5757 (`899480301`; `a87db08ea` before it passed):

```
[sft] AssertionError: 7.889825820922852 != 7.887711524963379 : loss mismatch at step 1   # A10G
[sft] AssertionError: 7.890093803405762 != 7.887524604797363 : loss mismatch at step 1   # MI350X
```

#5757 renders `bos_token`/`eos_token` in Hugging Face chat templates, an
intended change to the SFT token stream. It regenerated
`tests/assets/losses/fake_pg/a10g/sft.txt` but not the real-PG A10G and
MI350X goldens.

## What changed
- `tests/assets/losses/real_pg/a10g/sft.txt` and
`tests/assets/losses/real_pg/mi350x/sft.txt`: steps 1-10 regenerated;
headers unchanged.

## Numerics
The new values are the full-precision TensorBoard metrics of the failing
main runs' baseline training (the same values `loss_compare.py
--export-result` writes), read with `scripts/loss_compare.py`'s own
extraction from the uploaded `integration-8gpu-features-outputs`
artifacts:
- A10G: run 41746280593 (`e6ca6d861`). Step 1 matches the log's baseline
(7.889825820922852, grad_norm 4.189799785614014).
- MI350X: the ROCm run on `73c4ebdac`. Step 1 matches the log's baseline
(7.890093803405762, grad_norm 4.189815998077393).

The commits between #5757 and those runs (#5572, #5787, #5776, #5774,
#5779, #5741, #5786) do not change SFT numerics.

## Testing
- CI: Real PG (`ciflow/real-pg`) and ROCm (`ciflow/rocm`) integration
suites.
- A manual `export_results` run of the integration workflow for `sft` on
main (run 41760303504) exported a real-PG A10G golden identical to this
one.
- `Multi-GPU Unit Tests` fails here with the `_VisionEncoder ...
named_preserve_dtype_params` error that is also on main; #5795 fixes it.

This PR was AI-assisted.
felipemello1 added a commit that referenced this pull request Nov 5, 2026
…group

compute_host_memory_metrics read only the controller cgroup's cgroup.procs.
Under Slurm's cgroup v2 plugin each job step has its own cgroup
(job_<id>/step_<step>/user/task_<n>). SlurmLauncher (#5572) runs the
controller as the batch step and starts the Monarch workers with srun, in
another step, so the trainer ranks on the controller's host were missed:
host_memory/*/trainer read 0 in a real Slurm job that had 12 trainer
processes on that host.

Now the metric scans the controller's nearest job_<id> ancestor and every
cgroup below it; outside Slurm it reads the controller's own cgroup as
before. host_memory/cgroup_memory_current_gib becomes the job's total on
this host, and `other` now includes the job's other steps (step_extern).
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 9, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the arguments refuse a loopback
  Mooncake master for a multi-node run.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 9, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the arguments refuse a loopback
  Mooncake master for a multi-node run.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 10, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 10, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 11, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 12, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 12, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 12, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 12, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 12, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 12, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 16, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
pzhan9 added a commit to pzhan9/miles that referenced this pull request Nov 17, 2026
Like torchtitan's SlurmLauncher (pytorch/torchtitan#5572), a multi-node
--cluster-backend monarch run is submitted as one Monarch SlurmJob in batch
mode.

- `python -m miles.utils.workers.monarch.slurm --nodes N --gpus-per-node G
  [--slurm-arg ...] -- <launcher command>` submits one allocation. The job
  runs the launcher command unchanged on its first node, Monarch starts a
  worker loop on every node, and SLURM frees the nodes when the command
  exits. Flags the submission sets itself are refused in --slurm-arg.
  --no-exclusive shares nodes instead of reserving them whole, with
  --monarch-port for the worker loops' port; --bind-to sets where they
  listen, e.g. :: on a dual-stack cluster, where a node resolves its own
  hostname to IPv6 and the driver dials IPv4.
- The driver attaches to the job's hosts through the job state the
  submission saves (MILES_MONARCH_JOB_STATE), before this_host() starts its
  runtime: loading the job state sets the transport the job's hosts reply
  on, which a runtime already serving on a node-local socket would never
  hear. An attach that times out says where to look.
- In the job the launcher allows multi-node, points MASTER_ADDR and, unless
  set, MOONCAKE_MASTER at the head node instead of loopback, and runs
  per-node commands (prepare_cmd, multi-node conversion) through srun with
  the same placeholders the ray launcher substitutes. It runs no cleanup
  sweep, which on a shared node would kill other runs, and refuses a
  Mooncake master port another job holds; the worker manager refuses a
  loopback Mooncake master when its hosts span more than one node.
- Every worker gets the variables the launcher exports to the driver
  (PYTHONPATH, --extra-env-vars, ...), as ray's runtime env passes them on:
  a process on another host does not inherit the driver's environment.
tianyu-l pushed a commit that referenced this pull request Nov 21, 2026
## Summary (human-written)

Part of the RFC #5401 (GRPO on Intel XPU). RL recipes on main can only
be launched on SLURM clusters, so PBS systems like Aurora had no
supported launcher.

`PBSLauncher` adds one next to `SlurmLauncher`, on the launcher
interface from #5572, using Monarch's `PBSJob`. It only handles what PBS
does differently: it submits with `qsub -V`, since PBS doesn't pass the
submit environment, and it copies the job state Monarch writes to a
per-job path, since PBS has no `--chdir` (removable once
meta-pytorch/monarch#5414 lands). The README's PBS section shows a
launch recipe and the site settings PBS clusters need: `python_exe` as a
script that loads the environment, and a short `TMPDIR`
(meta-pytorch/monarch#5415).

Tested:
- `test_launcher.py`: the job is built correctly, hosts are acquired,
invalid `pbs_args` are rejected.
- On ALCF Aurora (PBS Pro, Cray PALS) with current Monarch main: a
1-node job submits, the controller attaches, and with #5402 Qwen3-0.6B
GRPO trains 5/5 steps through `PBSLauncher`.
- Earlier 2-node jobs placed the trainer and generators on the planned
nodes and tiles.

Needs a Monarch with meta-pytorch/monarch#5273 (`PBSJob` without
`rank_env`).
tianyu-l added a commit that referenced this pull request Nov 26, 2026
…er override; agent self-review; rl/transport (#6407)

## Summary (human-written)
<!-- Write this yourself, not with an AI tool. 2-5 sentences: the
problem, why
     this approach, and what you checked yourself. -->

## Why

Since #5667, `@claude review` has reviewed 459 PRs. Of the 380 PRs it
approved,
30 then got a formal "request changes" from a maintainer, and about 20
more got
substantive inline asks. In nearly all of them the bot either saw the
problem
and approved anyway, or never asked the questions maintainers ask most
("does
the repo already do this?", "who should own this?"). The opposite
failure, the
bot blocking something a maintainer was fine with, is rare: in the PRs
we
sampled, 2 of its 81 must-fix items were wrong and about a third were
minor
(the empty human-written summary was the biggest source).

**Example** (#6112, controller sizes the rollout worker pool):

```
before: bot approved 10 times; tianyu-l then blocked: "the controller reads
        rollouter.rollouts_per_worker to compute a count it hands back to the
        Rollouter -- violates encapsulation"
after:  same commit, new skill -> Request changes, must-fix #1:
        "controller.py:589 -- wrong owner for the worker count ..."
```

There was also no way for a code owner to overrule the bot except
dismissing
its review in the GitHub UI, and a later `@claude review again` would
block
again.

## What changed

**Review skill** (`.claude/skills/pr-review/`, `review-checklist.md`):
- Verdict rules: Approve only when every remaining item is an edit the
bot
could write itself. Anything the author still owes (a design change, an
unexplained golden change, evidence the PR rests on) is Request changes;
anything only a maintainer can decide is Needs discussion. A hedge like
"a
  maintainer should decide" can't come with Approve.
- Always must-fix: a violated written rule, a silent wrong result, a
second
  definition of an existing concept, a gate finding.
- Design gate: new questions for the existing counterpart, in-repo
ownership,
and the design behind a bug; "ban only what doesn't work on main"; read
the
numbers behind a claim. The overlapping-PR search is mandatory and
reported.
- Re-review covers every commit since the last full review, including
code
taken from the bot's own suggestions. A scoped question gets a
`COMMENT`, not
  a whole-PR verdict.
- The bot fact-checks its own proposed fixes, and cites a source for
claims
  about external tools or marks them unverified (never must-fix).
- An empty "Summary (human-written)" is a one-line "Before merge" note
that
  never affects the verdict.
- Checklist: config ownership direction, general shared wrappers, dead
code the
PR creates, model variants as flavors, a mechanical pass over every new
or
  changed function.

**Code owner override** (`SKILL.md`, `claude-code.yml`,
`CONTRIBUTING.md`): a
code owner comments `@claude override` (optionally `@claude override
2,3:
<reason>`); the bot approves if nothing else is open and doesn't
re-raise the
overridden items. A code owner's GitHub approval or "LGTM" is not an
override,
so a teammate can approve without the bot dropping its findings.
Dismissing the
bot's review still unblocks the PR, but isn't an override: the bot can't
tell
who dismissed it.

**Agent self-review** (`CLAUDE.md`, `pr-description`): an agent
preparing a PR
runs `pr-review` in branch mode first and records unaddressed items in
an
optional "Self-review" section. PRs written without an agent are
unaffected; a
missing section is never a finding.

Where each new rule comes from (maintainer asks the bot missed):

| Change | PRs |
| --- | --- |
| No Approve with open design/evidence items or a "maintainer should
decide" hedge | #6007, #5837, #5997, #5712, #5511, #5996 |
| Author waiver can't clear a must-fix | #6201, #6202, #6203 |
| Existing counterpart; one source of truth | #5228, #6169, #5881,
#5823, #5824, #6059, #5812 |
| Responsibility owner; config ownership direction | #6112, #6332,
#5802, #5803, #6325 |
| Fix the design behind the bug; a TODO doesn't justify a workaround |
#5572, #5689, #5657 |
| Fact-check the bot's own suggested fixes | #5740, #5802, #5511, #4819,
#5543 |
| Re-review covers all new commits; scoped asks don't approve | #5824,
#5842 |
| Mandatory overlap search | #5885, #6248 |
| Ban only what doesn't work on main | #5543 |
| Summary placeholder no longer a must-fix | #6119, #6174, #6112, #5868
|

**Rules**: `design.md` gets the one-general-wrapper rule (moved from
`models.md`, whose glob skipped `torchtitan/rl`), thin adapters, and the
consumer owning its values; `config.md` gets ownership direction and "a
Config
doesn't read runtime state"; `direction.md` calls all-to-all the MoE
reference
implementation, so a new vendor-specific dispatch path (e.g. #6242)
needs a
reason the existing backends can't serve.

**Area reviewers**: `.ci/` -> huydhn, wwwjn; `torchtitan/rl/transport/`
-> d4l3k.

**Mechanical, skim**: `torchtitan/rl/transport/` holds data movement
between RL
actors.
- `rl/model_state_dict_transport.py` ->
`rl/transport/model_state_dict.py`
- `rl/MODEL_STATE_DICT_TRANSPORT.md` ->
`rl/transport/MODEL_STATE_DICT_TRANSPORT.md`
- `rl/trainer/rdma_microbatch.py` -> `rl/transport/rdma_microbatch.py`
- tests:
`tests/rl/unit_tests/cpu/test_{model_state_dict_transport,rdma_microbatch}.py`
->
`tests/rl/unit_tests/cpu/transport/test_{model_state_dict,rdma_microbatch}.py`
- imports, READMEs and `scripts/install_rl_env.sh` updated; no code
changes.

## User-facing changes

| Before | After |
| --- | --- |
| Overrule the bot: dismiss its review in the UI, and it blocks again on
the next run | `@claude override [items]: <reason>`; the bot approves
and doesn't re-raise them |
| Empty human-written summary: bot must-fix | One "Before merge" line,
no effect on the verdict |
| `from torchtitan.rl.model_state_dict_transport import ...` | `from
torchtitan.rl.transport.model_state_dict import ...` |
| `from torchtitan.rl.trainer.rdma_microbatch import ...` | `from
torchtitan.rl.transport.rdma_microbatch import ...` |

## Testing

Backtest: the new skill run locally (nothing posted) on each PR at the
commit
and thread state the bot originally saw.

| PR | Bot then | New skill | What the maintainer asked |
| --- | --- | --- | --- |
| #6112 | Approve | Request changes | worker-count ownership (caught) |
| #5837 | Approve | Request changes | apply to `dp_shard` too (caught) |
| #5572 | Approve | Request changes | delete the injection design
(caught) |
| #6201 | Approve after author waived pins | Request changes, waiver
ignored | pins broke GPU tests after merge (caught) |
| #6007 | Approve | Request changes | fold K3.1 into K3 (caught) |
| #5543 | Request changes: "ban it" | Request changes: keep main's path
| don't break gpt-oss + DeepEP (fixed) |
| #6144, #5905 (controls) | Approve | Approve | -- |
| #6137 (control) | Approve | Needs discussion | -- (merge gate on an
upstream API) |

Code owner override, simulated on #6201: override by a code owner lifts
the
named item; `@claude override` from the author changes nothing; a code
owner's
"LGTM" approval followed by "review again" keeps Request changes.

Transport move: 83 RL CPU unit tests pass locally
(`transport/test_model_state_dict.py`, `test_trainer.py`,
`test_engine_loop.py`). `transport/test_rdma_microbatch.py`,
`test_generator.py` and
`test_batcher_actor.py` fail to collect in my env on `origin/main` too
(stale
attention-gym / Monarch), so CI is the check for those.

## Known issues / follow-ups
- Open PRs that edit the moved files rebase cleanly (git follows the
renames),
but new imports of the old module paths will break: #6309 (adds a delta
transport that should live in `rl/transport/`), #6237, #6176, #6177,
#5862,
  and drafts #6127, #6393, #6163, #5764.
- The Actions bot can't read dependency source (e.g. SGLang); follow-up
for the
  workflow.

## Self-review
pr-review (branch mode) at ad905a5: Needs discussion. Fixed: branch
mode diffs
against `origin/main` and skips description findings before a
description
exists; the "Config doesn't read runtime state" rule no longer
contradicts
hardware validation; dismissal dropped as an override form (the bot
can't tell
who dismissed); `test_rdma_microbatch.py` added to the transport area.
Not
addressed:
- One concern per PR -- the five changes ship together at the
maintainer's
  request.
- Open PRs touching the moved files -- listed above; the maintainer will
  coordinate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/fake-pg Run 1-GPU Fake PG integration tests ciflow/rl CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants