Skip to content

MXFP4 low memory test: gate the chunked dX budget test on a real CUDA device - #15516

Merged
danielhanchen merged 1 commit into
mainfrom
ci-mxfp4-dx-real-cuda-gate
Oct 27, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-mxfp4-dx-real-cuda-gate

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/python/test_accelerator_skip_guards.py::test_no_skip_guard_reads_a_spoofable_accelerator_probe fails on main (Repo tests (CPU, studio), e.g. job 122034866848 on #15505):

these skip guards read a probe tests/_zoo_aggressive_cuda_spoof.py patches to True process-wide ...
    test_mxfp4_packed_low_memory.py:428: torch.cuda.is_available()

#15376 added test_chunked_dx_stays_inside_its_own_budget with @pytest.mark.skipif(not torch.cuda.is_available(), ...). That probe is the one the CUDA spoof patches to True, so the guard can un-skip on a CPU-only runner when the test shares a session with tests/version_compat or tests/vllm_compat. The rest of the file already gates on has_real_cuda() through its module pytestmark; this switches the new test's guard to the same probe. The guard test is right and the kernel change is unaffected; only the new test's skip condition was wrong.

Verification (local):

  • tests/python/test_accelerator_skip_guards.py: main 1 failed, 23 passed; this branch 24 passed.
  • tests/test_mxfp4_packed_low_memory.py on a CPU-only box: all 46 skip, including the new test.
  • On a real GPU has_real_cuda() is True, so the test still runs where it is meant to.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@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-27T07:46:02.150847Z f9622f5 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: f9622f5324

ℹ️ 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
danielhanchen merged commit baa95ba into main Oct 27, 2026
0 of 15 checks passed
@danielhanchen
danielhanchen deleted the ci-mxfp4-dx-real-cuda-gate branch October 27, 2026 07:50
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.
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