mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 02:30:02 +08:00
Disable initial GPU load when novram is used. (#8294)
This commit is contained in:
parent
f2862bd3ab
commit
f8a2632e3a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user