mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-23 12:50:18 +08:00
Update model_management.py
This commit is contained in:
parent
c98e8a0a55
commit
134569ea48
@ -44,12 +44,12 @@ cpu_state = CPUState.GPU
|
|||||||
|
|
||||||
total_vram = 0
|
total_vram = 0
|
||||||
|
|
||||||
xpu_available = False
|
xpu_available = False #We don't have xpu with zluda , so disabling all together.
|
||||||
try:
|
# try:
|
||||||
torch_version = torch.version.__version__
|
# torch_version = torch.version.__version__
|
||||||
xpu_available = (int(torch_version[0]) < 2 or (int(torch_version[0]) == 2 and int(torch_version[2]) <= 4)) and torch.xpu.is_available()
|
# xpu_available = (int(torch_version[0]) < 2 or (int(torch_version[0]) == 2 and int(torch_version[2]) <= 4)) and torch.xpu.is_available()
|
||||||
except:
|
# except:
|
||||||
pass
|
# pass
|
||||||
|
|
||||||
lowvram_available = True
|
lowvram_available = True
|
||||||
if args.deterministic:
|
if args.deterministic:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user