chengzeyi / stable-fast

Best inference performance optimization framework for HuggingFace Diffusers on NVIDIA GPUs.
MIT License
1.16k stars 70 forks source link

Changing working device will cause problem #139

Closed xiyanjoy closed 5 months ago

xiyanjoy commented 6 months ago

stable_fast_test.txt In the presented example, the model is working on the 'cuda' by default. However, if I change the working device to 'cuda:7' as shown in the attach code, there would be some weird problem. error.txt How do I solve this problem?

xiyanjoy commented 6 months ago

Or is there somebody working well in a different device? Look forward to seeing your code!

zhangvia commented 5 months ago

you can use export CUDA_VISIBLE_DEVICES=7 to set device id

xiyanjoy commented 5 months ago

you can use export CUDA_VISIBLE_DEVICES=7 to set device id

It works! Thanks bro.