Skip to content

MXFP4 dequantize branch test: bind the FP8 full finetuning flag from source - #15556

Closed
danielhanchen wants to merge 1 commit into
mainfrom
mxfp4-test-fp8-full-finetune-binding
Closed

danielhanchen wants to merge 1 commit into
mainfrom
mxfp4-test-fp8-full-finetune-binding

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

tests/test_mxfp4_lora_packed_experts_dequantize.py fails on main (7 tests) since #15367. The test runs the dequantize if from FastBaseModel.from_pretrained on 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 raises NameError: name '_fp8_full_finetune' is not defined. This shows up as Repo tests (CPU, rest) failing on every open PR whose merge ref includes #15367.

Change

The test now also runs the _fp8_full_finetune = ... assignment from vision.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.py on main (4d5e78ceed): 7 failed, 37 passed. With this change: 44 passed.

@danielhanchen danielhanchen self-assigned this Oct 27, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T15:01:04.041553Z 6185cbc Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 6185cbc56b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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
`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.
@danielhanchen

Copy link
Copy Markdown
Member Author

Superseded by #15558, which landed the same fix on main (the dequantize branch test now runs the locals it reads, including _fp8_full_finetune). Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant