-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Add NPU Support #14801
Add NPU Support #14801
Conversation
Some things:
|
71262d5
to
cc3f604
Compare
@AUTOMATIC1111 , thanks for you quick response. |
@AUTOMATIC1111, Hi, I have wrote a wiki about Install and run on Ascend NPUs, Should I update a new wiki page in this repo or link to the Install and run on Ascend NPUs. |
@why-not-ava Hi, make sure your code is up to data and then follow the Install and run on Ascend NPUs, the 'webui.sh' will auto install torch_npu |
Did you install it using following command? @why-not-ava conda create -n python310 python=3.10.6
conda activate python310
./webui.sh --skip-torch-cuda-test --no-half |
hi,can the Atlas 200I DK A2 or Orange Pi AIpro run in this way? |
@FuturePrayer Hi, it can run mainly based on the ability of torch_npu. You can create a issuse for device support at ascend/pytorch. |
请问下,有测试过sdxl和sd1.5吗,我在800-9000上测试,半精度,xl需要10s |
The speed is related to sampling steps, width, height, etc. I've tested and it need 9s using sdxl with 20 sampling steps, 512 witdth, 1024 height. |
@wangshuai09 我这边测试是20step,1024*1024,altas 800环境。您那边应该是altas 800 A2吧,我看代码没有加上torch_npu.npu.set_compile_mode(jit_compile=False) |
|
@cleansely 我不清楚 altas 800 A2 和 altas 800 的 NPU 型号有区别吗, |
Description
This PR enables users to leverage the Ascend NPU for using features including txt2img, img2img, etc.
#13263
Screenshots/videos:
Verified on NPU, prompt is
panda
:Verified on Windows with cpu, prompt is
sitting panda
:Checklist: