Skip to content

fix: extend f32 matmul precision to ROCm for Qwen-Image, Krea2 and Boogu#1772

Merged
leejet merged 1 commit into
leejet:masterfrom
pwilkin:dit-rocm-prec-f32
Jul 10, 2026
Merged

fix: extend f32 matmul precision to ROCm for Qwen-Image, Krea2 and Boogu#1772
leejet merged 1 commit into
leejet:masterfrom
pwilkin:dit-rocm-prec-f32

Conversation

@pwilkin

@pwilkin pwilkin commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Same failure mechanism as the Z-Image fix, so changing just in case (haven't verified that it breaks, but there's a gate for Vulkan there, so probably safe to do it for ROCm as well)

Same failure mechanism as the Z-Image fix: DiT activations exceed the
f16 range, and on HIP for RDNA3.x ggml routes large-batch quantized
matmuls to the hipBLAS path, which converts activations to f16 and
saturates them to inf, ending in NaN latents and blank images. Widen the
existing Vulkan-only force_prec_f32 gates on the attention out and FFN
out projections to also cover ROCm. The shared FeedForward change also
applies to the other DiTs that use it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@leejet leejet merged commit ead6bf5 into leejet:master Jul 10, 2026
11 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.

2 participants