Repository navigation
Images: an omitted loras reuses the probe status read and survives a failing one (diffusion / g-l red since #17993) - #18000
Merged
Conversation
…a failing one (main red since #17993)
Member
Author
|
@codex review |
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. |
|
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.
Summary
#17993 (an omitted
loraskeeps the load's LoRAs) merged with three backend tests red, and they are red on main now ((Python 3.13, diffusion)and(Python 3.13, g-l)on every PR based on01d166c63cor later):Cause and fix
A failing status read now fails the run (route). The new
request.loras is Noneblock in_generate_diffusion_image_runcallsbackend.status()unguarded. The omitted-size path right below it already treats a failed status read as "no status", and the test pins that a run with named steps and guidance survives one. A status read that raises now fails/images/generatebefore the engine is called. The fix gives the omitted-loras block the same handling as the size block:lorasomitted, which is what the engine received before Studio Images: an omitted loras keeps the load's LoRAs (Deploy to Create no longer drops it), HunyuanImage-2.1 LoRA gated off #17993.An extra status read on every run with explicit steps and guidance (test). The defaults test sends
stepsandguidanceand asserts the defaults add no status read. Since #17993 an omittedlorasstands for the load's adapters, which needs the status, so that request is no longer fully explicit. The test now also namesloras: [], which keeps its claim (explicit values skip the read and do not pin the load). With the probe reuse above, an omittedlorascosts no extra read either, and a new test pins that: one status read in total, and the run is pinned to the load.The MOSS import runs before the diffusers skip (test).
test_lora_loader_check_exceptions_holdimportscore.inference.diffusion_moss_imagebeforepytest.importorskip("diffusers"), but that module subclasses diffusers' mixins at import time, so the diffusion shard (no diffusers installed) errors instead of skipping. The import now comes after the skip. The family-name check still runs everywhere.Verification
sys.modules["diffusers"] = Noneit skips with this change instead of erroring.test_image_generate_model_defaults.py,test_diffusion_minimax_h3_image_default_size.py,test_diffusion_lora.pyandtest_images_generate_load_loras.py: 725 passed. The 32 backend test files that drive/images/generateor the LoRA defaults: 2070 passed; the 5 failures there (test_diffusion_backend.pyMiniMax H3 download plan) fail the same way on main in this environment (a local diffusers import error), so they are not from this change.routes/inference.pyfails the size test (status read failed) and the new omitted-loras test (two status reads).