Skip to content
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

ValueError: Can't import SageAttention: DLL load failed while importing _qattn: The specified module could not be found. #323

Open
AIKE-Dereks opened this issue Feb 2, 2025 · 0 comments

Comments

@AIKE-Dereks
Copy link

Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████| 4/4 [00:34<00:00,  8.71s/it]
Text encoder to dtype: torch.float16
Loading tokenizer (llm) from: E:\ComfyUI_windows_portable_nvidia_3.11.9 - 副本\ComfyUI_windows_portable\ComfyUI\models\LLM\llava-llama-3-8b-text-encoder-tokenizer
llm prompt attention_mask shape: torch.Size([1, 161]), masked tokens: 146
Requested to load SD1ClipModel
Loading 1 new model
loaded completely 0.0 235.84423828125 True
!!! Exception during processing !!! Can't import SageAttention: DLL load failed while importing _qattn: 找不到指定的模块。
Traceback (most recent call last):
  File "E:\ComfyUI_windows_portable_nvidia_3.11.9 - 副本\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-hunyuanvideowrapper\nodes.py", line 295, in loadmodel
    from sageattention import sageattn_varlen
  File "E:\ComfyUI_windows_portable_nvidia_3.11.9 - 副本\ComfyUI_windows_portable\python_embeded\Lib\site-packages\sageattention\__init__.py", line 1, in <module>
    from .core import sageattn, sageattn_varlen
  File "E:\ComfyUI_windows_portable_nvidia_3.11.9 - 副本\ComfyUI_windows_portable\python_embeded\Lib\site-packages\sageattention\core.py", line 29, in <module>
    from . import _qattn
ImportError: DLL load failed while importing _qattn: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\ComfyUI_windows_portable_nvidia_3.11.9 - 副本\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, 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 "E:\ComfyUI_windows_portable_nvidia_3.11.9 - 副本\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, 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 "E:\ComfyUI_windows_portable_nvidia_3.11.9 - 副本\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "E:\ComfyUI_windows_portable_nvidia_3.11.9 - 副本\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI_windows_portable_nvidia_3.11.9 - 副本\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-hunyuanvideowrapper\nodes.py", line 297, in loadmodel
    raise ValueError(f"Can't import SageAttention: {str(e)}")
ValueError: Can't import SageAttention: DLL load failed while importing _qattn: 找不到指定的模块。

Prompt executed in 106.09 seconds

How should I solve this problem?

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