Skip to content

make weight override more robust against ggml changes #760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wbruna
Copy link
Contributor

@wbruna wbruna commented Aug 7, 2025

Recently, GGML_TYPE_COUNT got bumped for the new GGML_TYPE_MXFP4 quant, getting it out-of-sync with SD_TYPE_COUNT.

To make it easier to build stable-diffusion.cpp against different ggml versions, adjust the type conversions to consider both GGML_TYPE_COUNT and SD_TYPE_COUNT as limits.

(this got committed on top of #716 by mistake; feel free to drop the first commit)

wbruna added 2 commits August 7, 2025 11:12
This seems to be a leftover from the initial SDXL support: it's
not enough to avoid NaN issues, and it's not not needed for the
fixed sdxl-vae-fp16-fix .
Recently, GGML_TYPE_COUNT got bumped for the new GGML_TYPE_MXFP4
quant, getting it out-of-sync with SD_TYPE_COUNT.

To make it easier to build stable-diffusion.cpp against different
ggml versions, adjust the type conversions to consider both
GGML_TYPE_COUNT and SD_TYPE_COUNT as limits.
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.

1 participant