Repository navigation
Repair four checks that are red on main (ROCm tag guard, H3 offload, DMD diffusers skip, risky loader lint) - #18824
Merged
Conversation
Codex Review Summary: ✅ CompletedThis 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. Can't wait for the next one! 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
Four checks are red on
mainitself, so every open PR currently inherits them in the Backend CI shards and the risky loader lint. Each was reproduced on a cleanmaincheckout before fixing.tests/test_diffusion_rocm_tag_detect.py::test_no_diffusion_or_video_gate_reads_version_hip_directlydiffusion_regional_compile.py) and #18792 (diffusion_vae_strips.py)torch.version.hipdirectly, which the ROCm tag guard exists to forbid (a CUDA wheel with a strayhipattribute, or a ROCm wheel reporting it differently, takes the wrong branch).is_rocm_torch(torch)helper fromrocm_bf16. Behaviour on CUDA and ROCm is unchanged.tests/test_h3_quantised_offload.py::test_a_streamed_torchao_render_runs_under_no_grad_and_the_rest_keep_inference_modedraft_ctxto the denoisewithgrad_ctxtogether with its progress context) still holds; the test pinned one exact spelling of thewithline.withstatements and assertgrad_ctxandprogress_ctx()are entered together, regardless of what other contexts join them. Verified it still fails whengrad_ctxis dropped from the statement.tests/test_video_dmd.py::test_dmd_scheduler_reseeds_per_render,::test_renoise_stream_is_independent_of_the_initial_latent_noisemake_dmd_schedulerbuilds on a diffusers scheduler, but these two tests only skipped on missing torch, so they error withNo module named 'diffusers'in the shard that runs without diffusers.pytest.importorskip("diffusers"), matching the existing scheduler test in the same file.scripts/lint_risky_loaders.py(diffusion_ddp.py:440 [dynamic-import] __import__)__import__in a loop.utils.native_tlsandutils.happy_eyeballsby name, each in its owntry, so a failure in one still does not stop the rank or skip the other. No baseline entry needed.Testing
tests/test_diffusion_rocm_tag_detect.py,tests/test_h3_quantised_offload.py,tests/test_video_dmd.py,tests/test_diffusion_ddp.py,tests/test_diffusion_training.py, the native TLS and happy eyeballs suites, and the regional compile and VAE strip suites: all pass.tests/test_video_dmd.pywith diffusers blocked from import: 26 passed, 7 skipped (previously 2 errors).python scripts/lint_risky_loaders.py: all call sites recorded.torch.version.hipread makes the ROCm tag guard fail; restoring the__import__loop makes the risky loader lint fail.