Disable initial GPU load when novram is used. (#8294)

This commit is contained in:
comfyanonymous 2025-05-26 13:39:27 -07:00 committed by GitHub
parent e5799c4899
commit 89a84e32d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -695,7 +695,7 @@ def unet_inital_load_device(parameters, dtype):
return torch_dev
cpu_dev = torch.device("cpu")
if DISABLE_SMART_MEMORY:
if DISABLE_SMART_MEMORY or vram_state == VRAMState.NO_VRAM:
return cpu_dev
model_size = dtype_size(dtype) * parameters