Repository navigation
feat(ezpz): validate multi-host RL actor placement - #26
Merged
Merged
Conversation
Reviewer's GuideThis PR adds scheduler-launched two-host validation for an RL controller whose trainer and vLLM generator run in separate host slices of one Monarch actor graph, using explicit cross-host TorchStore/Gloo coordination and lifecycle synchronization. It also hardens attach and store timeouts, preserves host topology during placement, and removes a stale deleted upstream helper dependency. Sequence diagram for two-host RL actor validationsequenceDiagram
participant Scheduler
participant Rank0 as Controller rank 0
participant Rank1 as Scheduler rank 1
participant Store as FileStore / Gloo
participant Hosts as Monarch host mesh
participant Trainer as RL trainer host 0
participant Generator as vLLM generator host 1
Scheduler->>Rank0: launch multihost_train_upstream.py
Scheduler->>Rank1: launch multihost_train_upstream.py
Rank0->>Store: host_mesh_from_store(..., transport=tcp)
Rank1->>Store: host_mesh_from_store(..., transport=tcp)
Rank0->>Hosts: spawn_proc_mesh(host slices 0 and 1)
Hosts->>Trainer: create trainer mesh
Hosts->>Generator: create generator mesh
Rank0->>Trainer: Controller.setup_async()
Rank0->>Generator: start vLLM and attach
Trainer->>Generator: transfer weights via Gloo TorchStore
Rank0->>Trainer: Controller.run()
Trainer-->>Rank0: complete RL updates and validation
Rank0->>Hosts: shutdown()
Rank0->>Store: set multihost_rl_done
Rank1->>Store: get multihost_rl_done
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a scheduler-SPMD entry point and Sunspot validation launcher for placing the RL trainer and vLLM generator on separate hosts in one Monarch actor graph. Use Gloo for cross-host TorchStore weight transfer, retain host dimensions when slicing role meshes, tolerate full RL startup during attach, and remove the stale import of upstream's deleted
breakable_cuda_graph_envhelper.Validation
12478702: two-host Monarch actor preflight, distinct host identities, exit 0.12478711: exact head738109e8d4481ebb723622db0d1a34b9c8907203, trainer host 0 / generator host 1,TransportType.Gloo, pre/post vLLM validation, three finite GRPO updates, policy versions 0→3, 40/40 completed nonzero-reward rollouts, checkpoints at steps 1/2/3, PBSExit_status=0.Prior controlled failures
The launcher fails closed for host-local automatic TorchStore storage across nodes; forcing Gloo is required. Intermediate jobs also exposed and fixed stale upstream API use, attach timeout, dimension-dropping host slices, and an overly short coordination-store timeout.
Summary by Sourcery
Validate RL trainer and vLLM generator execution across separate hosts in a single Monarch actor graph.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests: