Repository navigation
Tests: fix the two spoof-safety lint failures on main - #15454
Merged
Merged
Conversation
…safety lint tests/python/test_accelerator_skip_guards.py fails on main: the side-stream test in test_fsdp2_bnb_optim_sync.py skips on torch.cuda.is_available() (patched True by the CUDA spoof), and test_tp_replica_gloo.py reloads the adapter with no torch_device, so PEFT picks the spoofed CUDA device on a CPU runner.
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. 🎉 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.
Repo tests (CPU, studio)fails on main intests/python/test_accelerator_skip_guards.py, which keeps tests from reading a probe thattests/_zoo_aggressive_cuda_spoof.pypatches to True for the whole session:test_no_skip_guard_reads_a_spoofable_accelerator_probe:test_fsdp2_bnb_optim_sync.py:95: torch.cuda.is_available()(from FSDP2 bitsandbytes: no per-parameter device sync, bounded GPU memory in the optimizer save #15384). The skip guard now useshas_real_cuda()fromtests/_shared/real_accelerator.py, like the other root tests.test_no_test_lets_a_loader_infer_the_device_from_a_spoofed_probe:test_tp_replica_gloo.py:257: PeftModel.from_pretrained() with no torch_device=(from Tensor parallel: generate, adapter / tokenizer saves, merged and GGUF exports, and reload cells under UNSLOTH_TP_SIZE #15368). This is a gloo CPU test, so the reload passestorch_device = "cpu".Test-only change.
tests/python/test_accelerator_skip_guards.pytest_accelerator_skip_guards.py+test_fsdp2_bnb_optim_sync.py+test_tp_replica_gloo.py(CPU)