Repository navigation
test(grpo): cover async Megatron LoRA in SingleController - #5466
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]>
1 task done
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
Megatron LoRA had an async GRPO functional test through the legacy controller. A passing legacy run did not exercise SingleController's prompt-group sampler, optimizer-step orchestration, or refit lifecycle with LoRA enabled.
This adds an independent SingleController test in the existing Megatron LoRA shard. It uses the same Qwen2.5-0.5B model, BF16, rank-32 adapters, three 8×4 steps, and separate Megatron and async vLLM workers. The in-order sampler admits one batch of lookahead while consuming full prompt-group batches. The test explicitly selects merged refit and requires the original reward and generation KL thresholds, finite metrics, and an optimizer-step metric at every step. The legacy test stays in place.
Start with
tests/functional/grpo_megatron_lora_async_single_controller.sh. This tests completion of the training path. It does not attribute a newly submitted request's scores to a particular policy version.Issues
Part of #5044 §3 — Megatron LoRA.
Convergence / perf / functionality proof
Passed on 2× RTX PRO 6000 Blackwell Server Edition at
f92286e7d4c4ac9f400e09b6d362b60ccd836bd6. Real Ray, Megatron LoRA and async vLLM completed 3 optimizer steps on separate GPUs. Per-step rewards were 0, 0.0625 and 0. Per-step generation KL errors were 0.000831004, 0.000703524 and 0.000736536. All 10 checks passed with no test overrides. This was a bare-metal run, not the full CI image.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.