[FEAT] support for z-image-turbo - #815
Conversation
146f2e6 to
de1bb36
Compare
|
Hi, I would like to test the FP4 version. Could you please publish the SVDQ safetensors on Huggingface? |
|
Could you please publish the SVDQ safetensors on Huggingface? |
let me test first. |
|
Test cases added. @lmxyy |
ok. |
|
@devgdovg Does it support Lora loading for z-image-turbo? |
|
@devgdovg really appreciate your efforts in getting this functionality work. Can we get an update on this implementation. Is the model ready, or by when can we have this feature available? Thanks in advance. |
|
I want to thank you for the contribution, really appreciate efforts. I will keep following PR, Z-turbo in nunchaku is very good news. |
|
Is the model ready, or by when can we have this feature available? |
not yet in this PR. |
|
Sorry to disturb, I was curious, is this faster than original one @devgdovg ? How much time does it take, compared to other models? Nunchaku is really strong, sometimes it offers specialized kernels and so I was curious to understand if they are used also in z-turbo. Thank you. |
According to the testing I've done so far, Nunchaku optimized z-image-turbo model is definitely faster compared to fp16/fp8 models provided by Comfy-Org. Am waiting for @lmxyy to review all the stuff, including code/docs/models. |
|
merge一下吧,模型已经上传了 |
|
256版本报错 |
| prompt=prompt, | ||
| height=1024, | ||
| width=1024, | ||
| num_inference_steps=8, # This actually results in 8 DiT forwards |
There was a problem hiding this comment.
This should probably be set to num_inference_steps=9 to match the official example: https://github.com/Tongyi-MAI/Z-Image?tab=readme-ov-file#-quick-start
Same problem with 256. Will try 128. Skip assert did not work. edit: 128 has the problem too. I commented out the code that calls this function and it inferences at least. also the FP16_downscale patch isn't compatible. |
|
Plz sir don't forget the controlnet of zimage in the pack |
|
Apparently the quality is poor. |
Motivation
Supports for https://huggingface.co/Tongyi-MAI/Z-Image-Turbo and maybe future Z-Image-Base & Z-Image-Edit
Modifications
Checklist
testsdirectory following the guidance inContribution Guide.examplesare updated if necessary.