Fooocus-API icon indicating copy to clipboard operation
Fooocus-API copied to clipboard

如何支持多显卡?

Open aiwillcoming opened this issue 1 year ago • 9 comments

单台机器上插了4张显卡,但是好像只会用到一张卡

aiwillcoming avatar Jan 09 '24 13:01 aiwillcoming

@aiwillcoming 你的设备倒是牛批,我都没见过多显卡设备 :joy:

mrhan1993 avatar Jan 09 '24 14:01 mrhan1993

租的

aiwillcoming avatar Jan 09 '24 15:01 aiwillcoming

云服务器厂商租一下很便宜

aiwillcoming avatar Jan 09 '24 15:01 aiwillcoming

看了下 fooocus 多显卡支持还在开发中 那能否暂时先在启动时指定显卡 @mrhan1993

aiwillcoming avatar Jan 22 '24 06:01 aiwillcoming

--gpu-device-id DEVICE_ID 参数试一下。

mrhan1993 avatar Jan 22 '24 06:01 mrhan1993

https://github.com/lllyasviel/Fooocus/issues/1034

aiwillcoming avatar Jan 22 '24 07:01 aiwillcoming

Worker error: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select)

aiwillcoming avatar Jan 22 '24 11:01 aiwillcoming

6

p971607 avatar Mar 05 '24 10:03 p971607

set the system environment argument CUDA_VISIBLE_DEVICES=0 before launch

mrhan1993 avatar Mar 05 '24 12:03 mrhan1993