StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

2.13.4 new ComfyUI install with RTX 5080 doesn't launch due to torch issue

Open honvl opened this issue 8 months ago • 2 comments

What happened?

2.13.4 new ComfyUI install doesn't launch due to torch issue. Expected torch to be updated due to the release notes but torch is at version 2.6.0.

Forge works fine.

Steps to reproduce

Open Stability Matrix on PC with RTX 5080 Install ComfyUI Attempt to launch

Relevant logs

Traceback (most recent call last):
  File "C:\Users\a\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\main.py", line 136, in <module>
    import execution
  File "C:\Users\a\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\execution.py", line 13, in <module>
    import nodes
  File "C:\Users\a\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\nodes.py", line 22, in <module>
    import comfy.diffusers_load
  File "C:\Users\a\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\comfy\diffusers_load.py", line 3, in <module>
    import comfy.sd
  File "C:\Users\a\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\comfy\sd.py", line 7, in <module>
    from comfy import model_management
  File "C:\Users\a\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\comfy\model_management.py", line 221, in <module>
    total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
  File "C:\Users\a\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\comfy\model_management.py", line 172, in get_torch_device
    return torch.device(torch.cuda.current_device())
  File "C:\Users\a\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\torch\cuda\__init__.py", line 971, in current_device
    _lazy_init()
  File "C:\Users\a\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\torch\cuda\__init__.py", line 310, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

Version

2.13.4

What Operating System are you using?

Windows

honvl avatar Apr 05 '25 18:04 honvl

It looks like the issue is when installing a new GPU ComfyUI doesn't automatically select it.

You have to go to Settings > System Settings > Default GPU and select your 50xx GPU.

Then when you update ComfyUI it should install the correct 128 nightly branch (I reinstalled ComfyUI).

jnadke avatar Apr 19 '25 21:04 jnadke

Nevermind I have the same issue.

I see in the install logs it tries to install the 128 nightly but it ends up with torch 2.6.

The workaround is manually install Torch 2.8 / 128 nightly here: https://github.com/LykosAI/StabilityMatrix/issues/1159#issuecomment-2816443191

jnadke avatar Apr 19 '25 21:04 jnadke

This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.

github-actions[bot] avatar Jun 19 '25 02:06 github-actions[bot]

This issue was closed because it has been stale for 7 days with no activity.

github-actions[bot] avatar Jun 26 '25 02:06 github-actions[bot]