You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I debugged the program, it seems that the problem is the call to ggml_type_name() with parameter 34, which is missing in the ggml.h file. Checking the llama.cpp repo, it should be GGML_TYPE_TQ1_0, added from ggml-org/llama.cpp#8151
Thank you for your reply! The command is bin/Debug/sd.exe -m e:/Downloads/shuttle-3-diffusion.safetensors -p "red cat" -v
I don't think shuttle-3-diffusion has built-in vae and text encoders. You should download t5xxl, clip_L (from here ) and the vae from the shuttle-3-diffusion repo, then use bin/Debug/sd.exe -m e:/Downloads/shuttle-3-diffusion.safetensors --vae path/to/diffusion_pytorch_model.safetensors --t5xxl path/to/t5xxl_fp16.safetensors --clip_l path/to/clip_l.safetensors -p "red cat" -v instead
Any idea why it didn't emit an error when some tensors are missing?
I don't have a definitive answer, but it probably have something to do with the call to ggml_type_name(34) you noticed. i think ggml_type_name() Is only ever used in some error logs, so what could have happend is it crashed when trying to print the error because the invaild type isn't properly handled.
This issue has had no activity for one year. The latest version of the code may already have fixed the problem.
If the issue still exists in the latest version, you can reopen this issue at any time with updated reproduction details.
Activity
stduhpf commentedon Nov 19, 2024
In the version of ggml used by sdcpp, type 34 is invalid: https://github.com/ggerganov/ggml/blob/21d3a308fcb7f31cb9beceaeebad4fb622f3c337/include/ggml.h#L396
Shuttle-3-diffusion should work just like Flux Schnell in theory.
Can you share the command you used to launch it?
bombless commentedon Nov 19, 2024
Thank you for your reply!
The command is
bin/Debug/sd.exe -m e:/Downloads/shuttle-3-diffusion.safetensors -p "red cat" -vbombless commentedon Nov 19, 2024
FYI the real problem is in https://github.com/ggerganov/ggml/blob/21d3a308fcb7f31cb9beceaeebad4fb622f3c337/src/ggml.c#L1015, the entry for 34 is missing.
stduhpf commentedon Nov 19, 2024
I don't think shuttle-3-diffusion has built-in vae and text encoders. You should download t5xxl, clip_L (from here ) and the vae from the shuttle-3-diffusion repo, then use
bin/Debug/sd.exe -m e:/Downloads/shuttle-3-diffusion.safetensors --vae path/to/diffusion_pytorch_model.safetensors --t5xxl path/to/t5xxl_fp16.safetensors --clip_l path/to/clip_l.safetensors -p "red cat" -vinsteadI don't think it's related. Sdcpp uses an older version of GGML that doesn't support TQ1_0 type yet. This shouldn't cause any issues.
bombless commentedon Nov 19, 2024
Thank you for the pointers.
I tried
bin/Debug/sd.exe -m e:/Downloads/shuttle-3-diffusion.safetensors --vae path/to/diffusion_pytorch_model.safetensors --t5xxl path/to/t5xxl_fp16.safetensors --clip_l path/to/clip_l.safetensors -p "red cat" -vand nothing changed, no error message, output.png isn't there.I believe sdcpp should at least imply that the process didn't finish.
stduhpf commentedon Nov 19, 2024
That's weird
bombless commentedon Nov 19, 2024
Okay it worked!
I was missing a parameter.
Any idea why it didn't emit an error when some tensors are missing?
stduhpf commentedon Nov 19, 2024
I don't have a definitive answer, but it probably have something to do with the call to
ggml_type_name(34)you noticed. i thinkggml_type_name()Is only ever used in some error logs, so what could have happend is it crashed when trying to print the error because the invaild type isn't properly handled.Glad you got it working though
github-actions commentedon Jul 8, 2026
This issue has had no activity for one year. The latest version of the code may already have fixed the problem.
If the issue still exists in the latest version, you can reopen this issue at any time with updated reproduction details.