Skip to content

"No Module Named Sage Attention" #474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Caligo-Immortalem opened this issue Apr 11, 2025 · 0 comments
Open

"No Module Named Sage Attention" #474

Caligo-Immortalem opened this issue Apr 11, 2025 · 0 comments

Comments

@Caligo-Immortalem
Copy link

So i just installed Triton and Sageattention, and it is clearly there in my Python folder aswell as the Comfyui folder, but when i run the WAN21 Workflow with TeaCache it says

PathchSageAttentionKJ
No module named 'sageattention'

Patching comfy attention to use sageattn !!! Exception during processing !!! No module named 'sageattention' Traceback (most recent call last): File "F:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\execution.py", line 327, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\execution.py", line 202, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "F:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\execution.py", line 174, in _map_node_over_list process_inputs(input_dict, i) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\execution.py", line 163, in process_inputs results.append(getattr(obj, func)(**inputs)) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "F:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\custom_nodes\comfyui-kjnodes\nodes\model_optimization_nodes.py", line 140, in patch self._patch_modules(False, sage_attention) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\custom_nodes\comfyui-kjnodes\nodes\model_optimization_nodes.py", line 24, in _patch_modules from sageattention import sageattn ModuleNotFoundError: No module named 'sageattention'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant