Repository navigation
MXFP4 dequantize branch test: run the locals the branch reads ahead of it - #15558
Merged
Merged
Conversation
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. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. 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". |
danielhanchen
added a commit
that referenced
this pull request
Oct 27, 2026
danielhanchen
added a commit
that referenced
this pull request
Oct 27, 2026
danielhanchen
added a commit
that referenced
this pull request
Oct 27, 2026
danielhanchen
added a commit
that referenced
this pull request
Oct 27, 2026
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.
Seven tests in
tests/test_mxfp4_lora_packed_experts_dequantize.pyfail on main (Repo tests (CPU, rest), e.g. job 122197461249 on #15514, and every PR based after #15367):Cause
The test compiles only the
ifinFastBaseModel.from_pretrainedthat setsquantizer_kwargs["dequantize"], with a hand-written namespace of its inputs. #15367 added a local just ahead of it,and reads it in that
if's condition. The product is right; the harness namespace was missing the new local, so every case that reaches the condition stopped on the NameError.Change
The harness now also runs the
name = ...statements ahead of the branch in each block enclosing it (within the function) whose name the branch reads, outermost first, skipping any name the test already provides. Today that adds only the_fp8_full_finetuneline; a future local computed the same way is picked up instead of breaking the file again, and the stubs keep precedence.Verification (local, CPU)
vision.pywith_fp8_full_finetune = Truefails 5 tests on this branch (test_native_load_unchanged_without_packed_path,test_offloading_device_map_keeps_native_load, ...), so the lifted line is the real one fromvision.pyand it is evaluated on every case.