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

pipeline_stable_diffusion_3样例在910A上无法成功运行 #714

Open
xuhangscut opened this issue Oct 28, 2024 · 1 comment
Open

pipeline_stable_diffusion_3样例在910A上无法成功运行 #714

xuhangscut opened this issue Oct 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xuhangscut
Copy link

xuhangscut commented Oct 28, 2024

Hardware Environment | 硬件环境

- [ ] `Ascend` 910A

Software Environment | 软件环境

  • MindSpore version:2.3.0
  • Python version(e.g., 3.7.5):3.9
  • OS(e.g., Linux Ubuntu 16.04)
  • GCC/Compiler version

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

ec1e87788b0cd42bfe74f09fe4eefd6

@xuhangscut xuhangscut added the bug Something isn't working label Oct 28, 2024
@townwish4git
Copy link
Contributor

从上述报错信息来看:

  1. 910A硬件存在算子不支持fp32
  2. 在调用T5模型进行text-encoding阶段存在fp32计算

一个较大可能的原因是由于T5本身的限制某些层会强制fp32计算,该限制继承自huggingface/transformers。按过往经验,将该层强制转换为fp16计算会导致数值溢出进而导致无法出图的现象。作为无奈之举,您可以尝试改用sdxl等替代pipelines 😭

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

2 participants