Repository navigation
Tests: real-accelerator skip guards and utf-8 read in the gpt-oss and gc-skip tests - #14504
Merged
Merged
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. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. 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, rest)andRepo tests (CPU, studio)fail on main and on every PR based on it. Three test files added by #14400 and #14404 trip the repo's own lint tests:tests/python/test_accelerator_skip_guards.py::test_no_skip_guard_reads_a_spoofable_accelerator_probe: skip guards ontorch.cuda.is_available(), whichtests/_zoo_aggressive_cuda_spoof.pypatches to True, so these tests un-skip on the CPU runners:test_gpt_oss_bf16_load_in_4bit.pylines 99 and 160;test_gpt_oss_bnb_checkpoint_layout.pyline 191;test_gc_skip_auto.py, 7 guards.tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encoding[10]:test_gpt_oss_bnb_checkpoint_layout.py:362opens a file withoutencoding.Change
has_real_cuda()fromtests/_shared/real_accelerator.py, as the other GPU tests do.open()call namesencoding = "utf-8".Test files only.
Validation
has_real_cuda()andtorch.cuda.is_available()agree on a real GPU, so the guards change nothing there. The two failures are the same tests on both sides (test_bf16_checkpoint_loads_real_weights_in_4bit,test_bf16_checkpoint_4bit_generate_matches_prefill) and are not touched here.