mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-18 23:55:08 +08:00
Add guard for torch version (requires 2.10)
This commit is contained in:
parent
95126cea62
commit
26da3c7d0d
@ -1666,6 +1666,9 @@ def supports_mxfp8_compute(device=None):
|
|||||||
if not is_nvidia():
|
if not is_nvidia():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if torch_version_numeric < (2, 10):
|
||||||
|
return False
|
||||||
|
|
||||||
props = torch.cuda.get_device_properties(device)
|
props = torch.cuda.get_device_properties(device)
|
||||||
if props.major < 10:
|
if props.major < 10:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user