ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Upgrading the PyTorch Version

Open JavadZohani opened this issue 1 year ago • 4 comments

Feature Idea

Hi

Hope you're doing well, and thank you for the great work on this script.

I wanted to suggest upgrading the PyTorch version used in the project to PyTorch version: 2.8.0+cu129. This version has proven to be more stable and compatible with newer dependencies like CUDA and torchvision in my experience. It also seems to be the recommended version for several other similar projects.

If possible, please consider updating to this version in a future release. It would really help improve stability for many users.

Thanks again for your efforts!

Best regards,

Existing Solutions

No response

Other

No response

JavadZohani avatar Aug 07 '25 09:08 JavadZohani

How do you install 2.8.0 to avoid dependency collision with nodes in comfy? I tried to update to but I couldn't launch. And when I installed requirements for 2.8 it broke some other things in return.

clover-supply avatar Aug 07 '25 13:08 clover-supply

They should update update_comfyui_and_python_dependencies.bat to use cu128 at the very least (it's still getting pytorch for cu126...)

Heliumrich avatar Aug 07 '25 23:08 Heliumrich

ComfyUI has a compatibility issue with Torch on Apple Silicon macOS. https://github.com/comfyanonymous/ComfyUI/issues/9256

ShinChven avatar Aug 09 '25 03:08 ShinChven

This breaks compatibility with xformers, which hasn't updated to torch 2.8 yet because its only been 4 days since release. It would be smarter to shift to a future torch 2.8.1 when that's released and coordinate with well known dependencies like xformers that you'll be doing so and give them a chance to get their act together as well. Nobody serious shifts to a new .0 library 4 days after release.

This was a terrible idea and should be reverted. I'm tired of uv pulling my fifteenth copy of a different version of the 1.5Gb pytorch suite today on startup of comfyui because nobody can make their mind up which version is required - together. It's broken dependencies so badly I'm about to reinstall comfyui from scratch so I can have only the functioning 2.7.1 version.

Fix the pyproject.toml so this can't happen again in the future.

hawko2600 avatar Aug 11 '25 10:08 hawko2600