Repository navigation
test(grpo): probe post-refit Megatron LoRA policy freshness - #5467
Open
WEIXILIN0307 wants to merge 1 commit into
Open
WEIXILIN0307 wants to merge 1 commit into
WEIXILIN0307 wants to merge 1 commit into
Conversation
Signed-off-by: Pinoeer-kingxi <[email protected]>
4 of 21 tasks
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.
What and why
A completed refit or an acceptable training KL does not identify which policy scored a new vLLM request. An updated trainer and an unchanged rollout worker could still appear healthy if the update is small or the observed request was already running.
This opt-in probe uses one async rollout worker and fixed prompt and suffix token IDs. It measures same-version repeat error, runs a real Megatron LoRA optimizer step, and scores with the update withheld. It then lets SingleController finish its ordinary merged refit and scores a fresh request with prefix caching disabled. The acceptance check requires the fresh scores to track the trained actor's change and rejects the withheld scores under the same criterion. This adds no production API and does not depend on the training functional test in #5466.
Start with the phase boundaries and the score comparison in
tests/functional/_sc_lora_refit_probe.py. The pilot uses a larger step learning rate to make BF16 weight changes measurable. It stays out of regular CI pending repeatability and runtime measurements.Issues
Part of #5044 §3 — Megatron LoRA.
Convergence / perf / functionality proof
Passed on 2× RTX PRO 6000 Blackwell Server Edition at
30aaa26fc2a8b0d0343c594d6b6e85aac4719264. Same-version repeats matched exactly over 34 fixed suffix tokens. After one real optimizer step, the withheld control stayed identical to the old policy and missed the updated actor's change by 0.25615 RMS. A fresh request submitted after merged refit on the same worker tracked the actor's change with 0.07324 RMS error, below the 0.12807 gate. Prefix caching was disabled and the trace confirms the fresh request was submitted after the refit. This one bare-metal pilot does not establish run-to-run stability, so the probe remains opt-in.Needs upstream changes
None.
PR commands and CI
CI:Lfast: the default for most PRs. Runs a fast test subset.CI:L1: dependency or container changes (pyproject.toml,uv.lock,Dockerfile) or broad core changes. Builds a new image and runs unit and functional tests.CI:docs: docs-only changes. Runs doc tests only./ok to test <full-commit-sha>: start CI for that commit. Post again after each push./nightly-ci test-case=<test>: run NVIDIA's nightly CI for the PR head; eligible teams only./review: automated review comments. Addmode=strictfor a stricter review,reset=truefor a fresh full review./resolve-conflict: Autobot mergesmaininto this PR and resolves the conflicts. PRs from forks must allow edits by maintainers./review-pr-team <pr-number>for a team review before you ask for human review.