mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-19 17:39:16 +02:00
Auto-fix cpu-only torch installations on NVIDIA 5060
This commit is contained in:
parent
14e45bfd24
commit
1d27765150
@ -69,8 +69,9 @@ def update_modules():
|
||||
else:
|
||||
torch_version_str = version("torch")
|
||||
torch_version = version_str_to_tuple(torch_version_str)
|
||||
is_cpu_torch = "+" not in torch_version_str
|
||||
print(f"Current torch version: {torch_version} ({torch_version_str})")
|
||||
if torch_version < (2, 7):
|
||||
if torch_version < (2, 7) or is_cpu_torch:
|
||||
gpu_infos = get_gpus()
|
||||
device_names = set(gpu.device_name for gpu in gpu_infos)
|
||||
if any(BLACKWELL_DEVICES.search(device_name) for device_name in device_names):
|
||||
|
Loading…
x
Reference in New Issue
Block a user