Repository navigation
studio: make media family overrides structural - #10150
danielhanchen merged 75 commits into
Conversation
Expose registry-backed family controls for image and video loads, preserve the override through planning and resolved status, and allow only positively identified Diffusers pipeline roots to bypass opaque task detection. Co-authored-by: karan yadav <[email protected]>
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. |
from_pretrained prefers safetensors, so a component holding a complete safetensors checkpoint plus a .bin index whose shards were never downloaded still loads; the completeness check now judges the format the loader opens.
…live selection Recalling an auto-detected model applied whatever Family was selected in Advanced at the time, so a remembered Z-Image could be loaded through the Qwen-Image loader. The remembered row already carries the family its load engaged.
…ad staging from its helper
The load preflight now admits only a manifest whose declared components are on
disk, so a bare {} model_index.json no longer reaches the load owner checks.
The plan-entry mapping moved into diffusion-pipeline-load-target.ts.
|
Review record for #10150, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#260. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
…installed diffusers The CPU runner has no diffusers, so find_spec returned None and the selector correctly listed nothing; the test now declares diffusers installed but unimported.
# Conflicts: # studio/frontend/src/features/video/video-page.tsx
…n the local pipeline check LTX-2's Gemma3 tokenizer_config.json is 1.1 MB, over the 1 MiB manifest cap, so a complete local LTX-2 was refused as a pipeline and as a local base_repo. A transformers component also no longer lets a stale diffusion_pytorch_model index veto its model shards.
On Metal the device probe allocates and syncs, which every video status poll repeated just to pick the Family list.
…ndex Transformers opens model.safetensors before model.safetensors.index.json, so a leftover index must not reject a complete encoder.
# Conflicts: # studio/backend/core/inference/video.py
Attribution
This replacement carries forward @karan68's original proposal and implementation from #8622. Karan is credited as a co-author on the commit, and I am requesting their review here so the contribution remains visible and connected to the final fix.
Supersedes #8622. Fixes #8618.
Why replace the original branch
The original PR proved the product direction, but repeated review rounds exposed a deeper classification problem: filename/signature heuristics could admit text encoders and dtype shards as standalone diffusion checkpoints, while still hiding opaque custom pipeline folders.
This rebuild starts from current main and makes the exception structural instead of heuristic.
What changed
Verification
Co-authored-by: karan yadav [email protected]
UI evidence
Merge base
e22e297(BEFORE) vs headf68e29a(AFTER), two isolated Studio installs, nothing loaded. The Family select sits under Advanced; its options come from each page's statussupported_families.Images: AFTER lists Auto plus 14 image families; BEFORE has no Family control.
Video: AFTER lists Auto plus 6 video families; BEFORE has no Family control.
UI evidence (head
fefacf1e2)Merge base
ffd71a91c(BEFORE) vs headfefacf1e2(AFTER), two isolated Studio installs, nothing loaded, Advanced open, Family list expanded.Images: AFTER lists Auto (detect) plus 14 image families, read from
/api/inference/images/statussupported_families; BEFORE has no Family control.Video: AFTER lists Auto (detect) plus 6 video families (MiniMax-H3, LTX-2, Wan2.2 TI2V 5B, Wan2.2 T2V A14B, HunyuanVideo 1.5 480p and 720p); BEFORE has no Family control.