Subject: Wan 2.1 GGUF with 5D patch_embedding fails on older builds – request for compatibility note #1758
Unanswered
desirel-dev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Subject: Wan 2.1 GGUF with 5D patch_embedding fails on older builds – request for compatibility note
Hi leejet,
First of all, thank you for the amazing work on stable-diffusion.cpp — I use sd-server daily on Windows with Vulkan (Intel Iris Xe) and it's the only backend that runs reliably on my hardware.
I'm hitting a loader mismatch with Wan 2.1 1.3B models exported by current community converters.
Environment:
Error:
Code
[ERROR] ggml_extend.hpp:70 - gguf_init_from_reader: tensor 'patch_embedding.weight' has invalid number of dimensions: 5 > 4
[ERROR] ggml_extend.hpp:70 - gguf_init_from_reader: failed to read tensor info
[ERROR] stable-diffusion.cpp:1416 - model metadata validation failed
The GGUF contains patch_embedding.weight with shape [2, 2, 1, 48, 1536] (5D), while the loader in this build expects max 4D. I understand that Wan 2.1 support (including 5D tensors) was added on 2025-09-14, but many users still use older prebuilt binaries.
Would it be possible to either:
I'm happy to test any patch on Windows/Vulkan if helpful.
Thanks again for your work, and for maintaining such a lightweight project.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions