Skip to content

do not convert bf16 to f32#1055

Merged
leejet merged 1 commit intomasterfrom
bf16
Dec 6, 2025
Merged

do not convert bf16 to f32#1055
leejet merged 1 commit intomasterfrom
bf16

Conversation

@leejet
Copy link
Owner

@leejet leejet commented Dec 6, 2025

Previously, not all ggml ops had good support for BF16 — for example, conv2d/conv3d — so in the code I was forcing BF16 to be converted to F32. However, as more and more models (such as z-image) overflow with FP16 and require BF16, I plan to remove this restriction in the code. For ops that do not support BF16, their weights will need to be converted from BF16 to another type (e.g., FP16 or F32) during weight loading. Developers who need to modify sd.cpp should be aware of this.

@leejet leejet merged commit bfbb929 into master Dec 6, 2025
10 checks passed
@leejet leejet deleted the bf16 branch December 9, 2025 14:40
rbertus2000 pushed a commit to rbertus2000/cmdr2-stable-diffusion.cpp that referenced this pull request Dec 28, 2025
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