nunchaku
nunchaku copied to clipboard
Set gpu index doesn't work
When I set device=torch.device("cuda:1") it still load the model to cuda:0, how to load the model to different gpus?
Are you using comfyui or diffusers? Could you also share the context?
I am using diffusers, and the code is:
device="cuda:1"
device=torch.device(device)
transformer = NunchakuFluxTransformer2dModel.from_pretrained("mit-han-lab/svdq-int4-flux.1-dev", device=device)
but it still load the model to device 'cuda:0'
I see. Could you set the CUDA_VISIBLE_DEVICES first? We are fixing this.
Just a heads-up: this issue will be resolved in the next v0.2.0 release. I will let you know then.
@lmxyy any update?
Got fixed in main branch.
This issue is fixed in v0.3.0dev0.