Repository navigation
Tests: baseline the torchao import probe from #15850, gate the PrefixGrouper CUDA test on a real card - #15948
Merged
Conversation
…Grouper CUDA test on a real card
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. Keep them coming! 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
Two more checks are red on main itself, so every PR based on it today inherits them (seen on staging for #15859 and #15936, neither of which touches these files):
tests/security/test_lint_risky_loaders.py::test_the_tree_matches_the_baseline(workflow-trigger lint):Import fixes: disable a torchao too new for the installed torch instead of failing import unsloth #15850 added a fourth
importlib.import_module(module_name)inunsloth/import_fixes.py(the torchao import-time probe). The baseline keys a call on its source text, so the existing entry for that text (count 3) now sees 4 and reports the overflow at the first site. The new call iterates the fixed_TORCHAO_IMPORT_TIME_MODULEStuple, so it is the same trusted shape as the other three. The product is fine; the baseline needed the count and the reason updated.tests/python/test_accelerator_skip_guards.py::test_no_skip_guard_reads_a_spoofable_accelerator_probe(Repo tests, CPU):GRPO PrefixGrouper: build the shared-prefix layout from one host copy instead of per-token loops and per-segment device fills #15835 added
test_cuda_layout_reads_the_device_once_and_copies_oncegated ontorch.cuda.is_available(), whichtests/_zoo_aggressive_cuda_spoof.pypatches toTrueprocess-wide, so on a CPU runner sharing a session with the compat suites the test un-skips and calls.cuda(). Here the guard is right and the new test was wrong: it now gates onhas_real_cuda()like the other CUDA-only tests.What changed
scripts/risky_loaders_baseline.json: the59e72c01edb14c86entry goes from count 3 to 4 (regenerated withscripts/lint_risky_loaders.py --update, only that line moved), and its reason names_TORCHAO_IMPORT_TIME_MODULESbeside the other fixed tables.tests/test_prefix_grouper_layout.py:skipif(not has_real_cuda(), ...)instead ofskipif(not torch.cuda.is_available(), ...).Verification
a4aee21490): both tests fail as above.test_lint_risky_loaders.py,test_accelerator_skip_guards.pyandtest_prefix_grouper_layout.pygive 75 passed, 1 skipped on a CPU-only run.torch.cuda.is_available()back makes the skip-guard test fail, and putting the baseline count back to 3 makes the loader lint fail.