Skip to content
Discussion options

You must be logged in to vote

The core reason is that after you run update_comfyui_and_python_dependencies.bat, torch may also have been updated, and the updated version is not compatible with your CUDA

raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
  1. Backup the python_embeded folder before trying to fix this issue. If it fails, you can still restore it and try another method.
  2. Use this command to check which version of CUDA you have installed.
nvcc --version
  1. Search for the compatible torch version. You can find them here: https://pytorch.org/get-started/locally/
  2. Install the compatible torch, for example:
D:\ComfyUI_windows_portable>.\python_embeded…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Exxb
Comment options

Answer selected by Exxb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants