Skip to content

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

@honvl

Description

@honvl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleStale issue or inactive for long period of time

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions