Skip to content

fix: detect Stable Diffusion from unprefixed tensor names - #70

Merged
thxCode merged 1 commit into
gpustack:mainfrom
jpatel2005:fix/unprefixed-sd-detection
Nov 15, 2026
Merged

thxCode merged 1 commit into
gpustack:mainfrom
jpatel2005:fix/unprefixed-sd-detection

Conversation

@jpatel2005

Copy link
Copy Markdown
Contributor

In diffuserArchitecture, the branch for the unprefixed SD 1.x/2.x tensor names (output_blocks.…) binds _ instead of ti, so it reads the zero-value ti from the preceding failed model.diffusion_model.… lookup. That ti is empty, and Architecture() panics with index out of range [0] with length 0 instead of reporting Stable Diffusion 1.x or 2.x.

TestGGUFFile_Architecture_UnprefixedStableDiffusion covers an SD 2.x file with unprefixed names and panics without the fix.

Signed-off-by: Jai Patel <mitjaipp@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 15, 2026 06:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@gpustack-code-review

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 1 selected item(s).

@thxCode thxCode left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thxCode
thxCode merged commit 4f97f28 into gpustack:main Nov 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants