Repository navigation
MXFP4 dequantize branch test: bind the FP8 full finetuning flag from source - #15556
danielhanchen wants to merge 1 commit into
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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? 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". |
`tests/python/test_accelerator_skip_guards.py::test_no_skip_guard_reads_a_spoofable_accelerator_probe` fails on main again (`Repo tests (CPU, studio)`, e.g. job 122253474793 on #15556): ``` these skip guards read a probe tests/_zoo_aggressive_cuda_spoof.py patches to True process-wide ... test_cudnn_sdpa_grad_layout_dtensor.py:73: torch.cuda.is_available() ``` #15445 added `test_context_parallel_sdpa_backward_with_the_grad_layout_wrapper` with `@pytest.mark.skipif(not torch.cuda.is_available(), ...)`. That is the probe the CUDA spoof patches to True, so on a CPU-only runner sharing a session with `tests/version_compat` or `tests/vllm_compat` the test can un-skip. The guard test is right; the new test's skip condition should read `has_real_cuda()` like the rest of the suite (same fix as #15516). The cuDNN change itself is unaffected. Verification (local): - `tests/python/test_accelerator_skip_guards.py`: main 1 failed, 23 passed; this branch 24 passed. - `has_real_cuda()` is True on a real GPU host, so the test still runs where it is meant to.
|
Superseded by #15558, which landed the same fix on main (the dequantize branch test now runs the locals it reads, including |
Summary
tests/test_mxfp4_lora_packed_experts_dequantize.pyfails on main (7 tests) since #15367. The test runs the dequantizeiffromFastBaseModel.from_pretrainedon its own, and #15367 made that branch read_fp8_full_finetune, a flag bound a few lines earlier. The test never bound it, so every case raisesNameError: name '_fp8_full_finetune' is not defined. This shows up asRepo tests (CPU, rest)failing on every open PR whose merge ref includes #15367.Change
The test now also runs the
_fp8_full_finetune = ...assignment fromvision.py(found by AST, like the branch itself) before the branch, so it keeps exercising the shipped source rather than a copy of the flag. No library code changes.Tests
tests/test_mxfp4_lora_packed_experts_dequantize.pyon main (4d5e78ceed): 7 failed, 37 passed. With this change: 44 passed.