Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not work on MindSpore (python3.8-cann8.0.rc1.beta1-mindspore2.3.0rc1-openmind0.7.1) #693

Open
LronDC opened this issue Oct 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@LronDC
Copy link

LronDC commented Oct 12, 2024

Hardware Environment | 硬件环境

- [x] `Ascend`
- [ ] `GPU`
- [ ] `CPU`

Software Environment | 软件环境

MindSpore (python3.8-cann8.0.rc1.beta1-mindspore2.3.0rc1-openmind0.7.1)

Describe the current behavior | 目前输出

cannot import name 'mint' from 'mindspore' (/usr/local/python3.8/lib/python3 ……

Describe the expected behavior | 期望输出

/

Steps to reproduce the issue | 复现报错的步骤

from mindone.diffusers import StableVideoDiffusionPipeline

Related log / screenshot | 完整日志

企业微信截图_9cda7b46-296f-4875-9d81-f8df4e461eb5

Special notes for this issue | 其他信息

补充背景:我运行在 modelers 空间中,所以基础镜像我没有其他选择,我希望在 npu 上跑 svd,于是用到了 mindone 中的 diffusers 模块来代替hf diffusers

问题:

  1. 是 ms 2.3.0 的兼容性问题吗
  2. 有没有办法绕过
  3. 能不能用 hf diffusers 在 mindspore 上
@LronDC LronDC added the bug Something isn't working label Oct 12, 2024
@hadipash hadipash assigned hadipash and geniuspatrick and unassigned hadipash Oct 14, 2024
@Songyuanwei
Copy link
Collaborator

根据您登记的mindspore和报错日志显示,mindspore2.3.0rc1不支持mint算子,该算子在ms2.3.0及更新的版本才有提供,mindspore2.3.0rc1是ms2.3.0以前的版本,请尝试使用新版本

@chenyang23333
Copy link
Contributor

image
使用此镜像MindSpore (python3.9-mindspore2.3.1-openmind0.8.0),可解

@townwish4git
Copy link
Contributor

townwish4git commented Oct 15, 2024

image 使用此镜像MindSpore (python3.9-mindspore2.3.1-openmind0.8.0),可解

您好,作为一个快速解决的方案:您可以参照@chenyang23333的方法选择ms2.3.0之后版本的镜像(ms2.3.0rc1是其之前版本)。

P.S. mindone.diffusers v0.29版本基于ms2.3.0+开发,未在其之前的mindspore版本进行过测试和验证。关于此issue,我们在 #695 进行了简单的修改以支持mindspore版本的向后兼容,该PR合入后您现有的环境下的此问题应该能够得以解决,但需要注意的是仍然无法保证mindone.diffusers v0.29在ms2.3.0之前版本的完整支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants