Commit 56491f6
committed
Add timeslice-verl package and fully-async two-RL-jobs guide
Adds the timeslice-verl integration package and a guide that time-slices two
verl fully_async_policy RL jobs' trainers on one shared 1-GPU node (each job
keeps a dedicated 1-GPU rollout node; 2-pod Ray cluster per job).
The package ships TimesliceFullyAsyncTrainer, a subclass of verl's
FullyAsyncTrainer that overrides the trainer's empty on_* lifecycle hooks
(same template-method convention as verl's v1 trainers). It registers under
the trainer name "timeslice" via verl's fully-async trainer registry — the
package's verl.plugins entry point makes `import verl` load the registering
module — and is selected with the hydra override
async_training.trainer_name=timeslice. No meta_path monkey-patching.
Placement-group pinning uses verl's per-pool extra bundle resources
(ray_pg_extra_resources hydra override) instead of patching
placement_group; the trainer refuses to train unpinned when
TIMESLICE_REQUIRE_PG_PINNING=1. Both verl features ship as format-patch
files in the guide's patches/ dir until they are available upstream
(default install path: the feat/fully-async-lifecycle-hooks fork branch).
New: pkg/integrations/verl/ (TimesliceFullyAsyncTrainer = TimesliceHooksMixin
over FullyAsyncTrainer, + PhaseLocks; 33 tests, pure-python: no verl/ray/
grpc/GPU needed)
New: guides/rl-frameworks/verl/ (README, job manifests for a math-RLVR and a
code-RLVR job, GPU monitor, platform values, verl feature patches)1 parent d1b37de commit 56491f6
12 files changed
Lines changed: 3473 additions & 0 deletions
File tree
- guides/rl-frameworks/verl
- examples/fully-async
- pkg/integrations/verl
- tests
- timeslice_verl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
Lines changed: 378 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 799 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 961 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
Whitespace-only changes.
0 commit comments