(一)现象
在Windows11下训练Stable-Diffusion的LoRA模型的时候,总是重复提示:
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named ‘triton’
意思是:
没有匹配的 Triton,一些优化将不会被启用。
捕获的错误是: 没有名为 "TRITON "的模块
虽然过程并不会中断,但是看着好难受。
(二)分析
上网搜了一下,应该是 xformers 需要用到 Triton 进行优化工作。
网上有人说:
并没有Windows下的Triton,所以Windows下会报错,而Linux就有Triton。
直接安装果然没有:
> pip install triton
ERROR: Could not find a version that satisfies the requirement triton (from versions: none)
ERROR: No matching distribution found for triton
看了下https://github.com/openai/triton,https://triton-lang.org/,https://pypi.org/project/triton/,
果然哪里都没有提供Windows的二进制下载,难道要自己编译?
但实际上有大神编译了Windows下二进制:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)