Repository navigation
PP env GA test: compare the trained adapter at 5e-5 - #16457
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Summary
Repo tests (CPU, gloo-tp-pp)failed on #16444 and #16451 intests/test_pp_env_gloo.py, which #16407 added. Neither PR touches pipeline parallel. Both failures are the same case, with an identical value:The identical value means the result depends on the runner's CPU, not on chance, so any run that lands on that runner type fails.
The adapter comparison runs after several optimizer steps, so it carries the fp32 reduction-order noise of a 2-stage split against the single-process reference. The file already records that noise for the grad norms ("3e-5 absolute ... between two identical reference runs"). On this host, the largest adapter difference across all five cases of the test is 3.7e-6, which is why 1e-5 looked safe.
Change
tests/test_pp_env_gloo.py: intest_pp_env_gradient_accumulation_and_microbatchesonly, the trained-adapter comparison takesatol = 5e-5, about 3x the CI value.rtolis unchanged, and so is every other_same_tensorscall: save_pretrained, Trainer.save_model and export.The
_closecall just before it is also unchanged. It pins the step count and every loss at rel 1e-5. It pins the first grad norm at rel 1e-5 and the rest at 1e-4.Testing
tests/test_pp_env_gloo.py: 14 passed, 1 skipped.lora_Aby1 + 1e-4in the pipeline-parallel ranks only.[ga1_bs4]and[gemma3_ga1_bs4]both still fail, as they do at1 + 1e-3. So a real divergence much smaller than any pipeline bug would be still fails the test.