根据魔乐社区MindIE/Qwen-Image | 魔乐社区指导进行部署
发现版本冲突报错,
torch版本为2.1.0,diffusers为官网最新0.36.0会报错module 'torch.library' has no attribute 'custom_op',应当是PyTorch版本与diffusers不匹配,将torch升级到2.5.1,mindie为2.1.RC1会报错RuntimeError: Failed to import diffusers.pipelines.pipeline_utils because of the following error (look up to see its traceback):
Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
/usr/local/python3.11.13/lib/python3.11/site-packages/mindiesd/plugin/libPTAExtensionOPS.so: undefined symbol: _ZN3c1015SmallVectorBaseIjE8grow_podEPvmm
如果在torch==2.1.0的情况下将diffusers降级,只有0.35.0和0.36.0可以完成”替换pipeline_qwenimage文件“其余再低版本并无相关文件,但这两个版本在torch==2.1.0的情况下都会报错module 'torch.library' has no attribute 'custom_op'
现状是torch, diffusers, mindie版本冲突,请问如何解决
根据魔乐社区MindIE/Qwen-Image | 魔乐社区指导进行部署
发现版本冲突报错,
torch版本为2.1.0,diffusers为官网最新0.36.0会报错module 'torch.library' has no attribute 'custom_op',应当是PyTorch版本与diffusers不匹配,将torch升级到2.5.1,mindie为2.1.RC1会报错RuntimeError: Failed to import diffusers.pipelines.pipeline_utils because of the following error (look up to see its traceback):
Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
/usr/local/python3.11.13/lib/python3.11/site-packages/mindiesd/plugin/libPTAExtensionOPS.so: undefined symbol: _ZN3c1015SmallVectorBaseIjE8grow_podEPvmm
如果在torch==2.1.0的情况下将diffusers降级,只有0.35.0和0.36.0可以完成”替换pipeline_qwenimage文件“其余再低版本并无相关文件,但这两个版本在torch==2.1.0的情况下都会报错module 'torch.library' has no attribute 'custom_op'
现状是torch, diffusers, mindie版本冲突,请问如何解决