Skip to content

feat(rlvr): add an optional step-aware RL-Insight tracker - #529

Draft
WEIXILIN0307 wants to merge 2 commits into
alibaba:mainfrom
WEIXILIN0307:feat/rl-insight-tracker
Draft

WEIXILIN0307 wants to merge 2 commits into
alibaba:mainfrom
WEIXILIN0307:feat/rl-insight-tracker

Conversation

@WEIXILIN0307

@WEIXILIN0307 WEIXILIN0307 commented Nov 25, 2026 •

Copy link
Copy Markdown

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, for examples/start_rlvr_pipeline.py. It sends finite scalars via metric_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

  1. Tracker and SDK boundary for scalar filtering and step mapping.
  2. RLVR teardown and checkpoint replay wait for cleanup order.
  3. Lifecycle failure tests and CPU integration for failure handling and service readback.

Verification

Tested d7a7fdc with Ray 2.48.0. The SDK and server both used RL-Insight bef6181dcaadc8e643697200c829b875461fefba with Tempo 2.6.1. The released SDK v0.3.0 lacks metric_log.

  • CPU — 27 passed, including the opt-in Ray/Tempo integration. The existing full-size GPU Megatron test was skipped. Tests cover selection, prerequisites, startup and teardown failures, replay cancellation, and flush errors. Both scope guard cases failed on 1703a7a by reaching resource allocation. The integration uses real WorkerState checkpoint I/O and separate drivers, but synthetic metrics and no model workers.
  • Real training and restart — One RTX A6000, PyTorch 2.11.0+cu130, and vLLM 0.20.1. The standard text RLVR entry ran tiny BF16 Qwen2 rollouts, GSM8K rewards, and FSDP2 actor updates through 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.
  • Service readback — After driver exit, Tempo matched 680 scalar points to the first checkpoint and 1,135 to the resumed checkpoint by metric name, value, and original step. The resumed execution includes replayed steps 0–2, new steps 3–4, and all 230 points from step 4. In the CPU integration, the replay-only and interrupted executions also retained points through saved step 2.

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

Grafana panels for a ROLL text RLVR checkpoint restart, with steps 0 through 4

Closes #528.
Refs verl-project/rl-insight#191 (ROLL integration only).

@CLAassistant

CLAassistant commented Nov 25, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@tardis-key

Copy link
Copy Markdown

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
WEIXILIN0307 marked this pull request as draft November 26, 2026 11:00

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optional RL-Insight tracker for ROLL

3 participants