Repository navigation
feat(rlvr): add an optional step-aware RL-Insight tracker - #529
Draft
WEIXILIN0307 wants to merge 2 commits into
Draft
WEIXILIN0307 wants to merge 2 commits into
WEIXILIN0307 wants to merge 2 commits into
Conversation
|
This PR doesn't look ready yet. Maybe we can switch it to draft status first. Once it's ready, it would be great to show what kind of visualization we can get under the ROLL framework. |
WEIXILIN0307
marked this pull request as draft
November 26, 2026 11:00
This branch has not been deployed
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.
Problem
ROLL has no RL-Insight tracker, and the text RLVR driver exits without calling the current tracker's
finish(). The RL-Insight Ray client submits events asynchronously, so adding a tracker alone would not drain pending metrics on exit.Scope
This adds one optional driver metrics backend,
track_with: rl_insight, forexamples/start_rlvr_pipeline.py. It sends finite scalars viametric_log(..., step=...), preserving ROLL's step, including zero. The driver joins the existing checkpoint history replay and then flushes while Ray is still available. That also covers an interrupted run, scheduler shutdown failure, and initialization failure after the tracker has been created. A failed flush is logged without replacing a training error.TensorBoard remains the default. Unsupported entry points (including SFT, vision RLVR, and rollout-only) reject this backend before allocating pipeline resources. Missing or incompatible prerequisites fail startup. If the SDK cannot establish a Tempo-enabled run, ROLL warns and continues without this backend. No worker traces, hardware collection, multi-tracker support, or dashboard code is added. Resume reports into a new execution rather than merging runs or deduplicating points.
Where to review
Verification
Tested
d7a7fdcwith Ray 2.48.0. The SDK and server both used RL-Insightbef6181dcaadc8e643697200c829b875461fefbawith Tempo 2.6.1. The released SDK v0.3.0 lacksmetric_log.1703a7aby reaching resource allocation. The integration uses realWorkerStatecheckpoint I/O and separate drivers, but synthetic metrics and no model workers.checkpoint-2. A fresh process loaded the checkpoint and ran only steps 3–4. A separate run with SDK imports blocked wrote a step-0 TensorBoard event. The unchanged FSDP2/DCP path did not restore AdamW state in this environment, so this does not verify optimizer continuity.Grafana
Grafana 13.0.0 queried the real resumed execution in Tempo. The panels show rollout generation time and actor learning rate at the original training steps. Reproduction, dashboard JSON, and recorded values
Closes #528.
Refs verl-project/rl-insight#191 (ROLL integration only).