用pipelin加载运行modelscope上的模型,提示错误:
ValueError: StableDiffusionPipeline: Due to a serious vulnerability issue in torch.load
, even with weights_only=True
, we now require users to upgrade torch to at least v2.6 in order to use the function. This version restriction does not apply when loading files with safetensors.
请问如何解决?
ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352