Comfy-Org / Comfy-Org/ComfyUI_frontend
Misleading startup message about “Torch version too old”
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 699
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 490
Description
### Prerequisites
- [x] I am running the latest version of ComfyUI
- [x] I have searched existing issues to make sure this isn't a duplicate
- [x] I have tested with all custom nodes disabled ([see how](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled))
### What happened?
## Description
During ComfyUI startup, the console displays a warning indicating that the Torch version is “too old,” even when the bundled PyTorch package is fully up-to-date.
In my case, ComfyUI reports:
`PyTorch version: 2.5.1+cu124`
This is one of the latest official builds, but the warning still appears.
This makes the message misleading and suggests that the user's installation is outdated or incompatible, even when it is not.
## Expected behavior
The startup check should correctly validate the actual installed Torch version and only warn users when their PyTorch version truly falls below the minimum supported version.
Alternatively, the message should be updated to reflect what condition is actually being detected (e.g., missing features, incompatible extensions, etc.).
## Actual behavior
A generic warning is shown claiming that the Torch version is “too old,” even when using up-to-date PyTorch builds bundled with ComfyUI portable.
## Impact
- Causes confusion for users.
- Suggests unnecessary reinstallations or troubleshooting.
- Makes debugging more difficult when the message does not reflect a real problem.
## Suggested fix
Update the version check logic to correctly evaluate the installed Torch version.
Or update the startup message to clarify what specific feature or version requirement triggered the warning.
Optionally print the detected Torch version alongside the requirement for easier comparison.
## Environment
- ComfyUI portable for Windows
- PyTorch: 2.5.1+cu124
- GPU: NVIDIA RTX 3060 Ti
- Windows 10
### Steps to Reproduce
1. Startup ComfyUI with pytorch 2.5.1+cu124
### How is this affecting you?
Minor inconvenience
### ComfyUI Frontend Version
1.28.8
### Browser
Firefox
### Console Errors
```javascript
```
### Logs
```shell
Checkpoint files will always be loaded safely.
Total VRAM 8191 MB, total RAM 49096 MB
pytorch version: 2.5.1+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
Enabled pinned memory 22093.0
Torch version too old to set sdpa backend priority.
Using pytorch attention
Python version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
ComfyUI version: 0.3.70
ComfyUI frontend version: 1.28.8
```
### Additional Context
_No response_
┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-7056-Misleading-startup-message-about-Torch-version-too-old-2bb6d73d3650811ba44ed0093f9710bc) by [Unito](https://www.unito.io)
Contributor guide
Assessment
This issue has not been assessed yet.