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

diffuser version support Ascend NPU! #226

Open
designeryuan opened this issue Jan 6, 2025 · 1 comment
Open

diffuser version support Ascend NPU! #226

designeryuan opened this issue Jan 6, 2025 · 1 comment

Comments

@designeryuan
Copy link

i am using HunyuanDiT-v1.2-Diffusers on Ascend NPU

import torch
import torch_npu
from torch_npu.contrib import transfer_to_npu
from diffusers import HunyuanDiTPipeline

pipe = HunyuanDiTPipeline.from_pretrained("/model/HunyuanDiT-v1.2-Diffusers", torch_dtype=torch.float16)
pipe.to("cuda")

# You may also use English prompt as HunyuanDiT supports both English and Chinese
# prompt = "An astronaut riding a horse"
prompt = "一个宇航员在骑马"
image = pipe(prompt).images[0]

when i choose fp16, the pic is all black, bf16 not good, like a mask

image

so, could u please support diffuser version for Ascend NPU, thanks!

@designeryuan
Copy link
Author

sorry, the prompt is "一只小猫抓蝴蝶,阳光灿烂"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant