-
Notifications
You must be signed in to change notification settings - Fork 40
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
Can't import SageAttention: DLL load failed while importing libtriton: 动态链接库(DLL)初始化例程失败。 #71
Comments
如果跟cuda版本有关系的话,我在考虑要不要装cuda 12.1,但有些节点好像会冲突,纠结ing... |
你可以先把这里的教程看一遍 https://github.com/woct0rdho/triton-windows#install-from-wheel 目前一般来说推荐的是CUDA 12.6,PyTorch 2.6,Triton 3.2,如果有节点冲突那就是那些节点太旧了,应该有办法给它们更新 |
I get 'DLL load failed while importing libtriton' when running the test_triton.py script even after implementing suggested fixes. Do you think its a version issue? Running Python 3.10.14, CUDA 12.4, PyTorch 2.6, Triton 3.2 in venv. |
@usadaddy You can use dlltracer: https://github.com/woct0rdho/triton-windows#dlltracer , and paste the results here Also please run |
dlltracer result: D:\ComfyUI\venv\lib\site-packages\torch\utils_pytree.py:185: FutureWarning: optree is installed but the version is too old to support PyTorch Dynamo in C++ pytree. C++ pytree support is disabled. Please consider upgrading optree using Python (3.10.81* is the venv version I'm trying to install triton under): CommandType Name Version Source Application python.exe 3.10.81... D:\ComfyUI\venv\scripts\python.exe |
Getting exactly the same error as above. |
@usadaddy Did you create the venv using the Python at If it's the Python in conda, did you use the Also, what is the command you used to install triton? |
Pretty sure the venv was created using (base) conda env so the python for that was 3.10.14. The command was Python venv. Command used to install triton was the one given in your guide, but with the appropriate python version, and in the activated venv:
|
Don't mix conda and Python venv, because it's known to cause problems, such as failing to find the correct vcruntime140.dll . As you're already using conda, you can just create a new conda env |
Theyre not mixed. The entire triton install process was conducted inside the activated venv for ComfyUI. Isn't that where it needs to be installed for Comfyui nodes to use it? |
If you use the That's not how conda is designed to work, and that will make things over-complicated. Please don't do that |
你好,我的环境是cuda11.8,torch2.3.0,python3.11.
尝试安装的您的triton3.1.0,3.0.0,3.2.0 这几个版本的轮子后;
在调用sageattnd跑wan2模型的时候都提示:Can't import SageAttention: DLL load failed while importing libtriton: 动态链接库(DLL)初始化例程失败。
请问有什么建议吗?这个和cuda的版本有关系吗?
The text was updated successfully, but these errors were encountered: