Sage Attention causes Wan 2.1 image to video models to generate black output - text to video works fine
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
logs : https://paste.denizenscript.com/View/134081
Tested torch 2.7.1 and torch 2.7.0 both fails with CUDA 12.8
**It was working 2 weeks ago here in my another video you can see so some ComfyUI updates broken it : https://youtu.be/1rAwZv0hEcU**
Output is black for image to video models - i think it was working before like 2 weeks ago or something
**When I remove --use-sage-attention image to work works as well**

**Text to video works fine though with --use-sage-attention**

Using latest version of manually installed ComfyUI - clean install didn't install anything else

ComfyUI venv pip freeze below
```
(venv) E:\Comfy_UI_V27\ComfyUI\venv\Scripts>pip freeze
accelerate==1.7.0
aiohappyeyeballs==2.6.1
aiohttp==3.12.13
aiosignal==1.3.2
albucore==0.0.24
albumentations==2.0.8
alembic==1.16.1
annotated-types==0.7.0
antlr4-python3-runtime==4.9.3
async-timeout==5.0.1
attrs==25.3.0
av==14.4.0
certifi==2025.6.15
cffi==1.17.1
chardet==5.2.0
charset-normalizer==3.4.2
click==8.2.1
colorama==0.4.6
coloredlogs==15.0.1
comfyui-embedded-docs==0.2.2
comfyui_frontend_package==1.21.7
comfyui_workflow_templates==0.1.28
contourpy==1.3.2
cryptography==45.0.4
cycler==0.12.1
Cython==3.1.2
deepspeed @ https://files.pythonhosted.org/packages/3d/65/1a6394f5d6dee851e9ea59e385f6d6428e3bfe36f83c06e0336e14dcfd11/deepspeed-0.16.4-cp310-cp310-win_amd64.whl#sha256=09e0b4f10c22b8054f340d90077a8d382092491fcf90fe1779c4e6180314e234
Deprecated==1.2.18
diffusers==0.33.1
dill==0.4.0
easydict==1.13
einops==0.8.1
filelock==3.13.1
flash-attn @ https://huggingface.co/MonsterMMORPG/SECourses_Premium_Flash_Attention/resolve/main/flash_attn-2.7.4.post1-cp310-cp310-win_amd64.whl#sha256=aa08d3af3bd5e65a8a30a438aa362c319b133536c960b831f0f71af2677c02db
flatbuffers==25.2.10
fonttools==4.58.4
frozenlist==1.7.0
fsspec==2024.6.1
gguf==0.17.0
gitdb==4.0.12
GitPython==3.1.44
greenlet==3.2.3
hf-xet==1.1.3
hf_transfer==0.1.9
hjson==3.1.0
huggingface-hub==0.33.0
humanfriendly==10.0
idna==3.10
imageio==2.37.0
imageio-ffmpeg==0.6.0
importlib_metadata==8.7.0
insightface @ https://huggingface.co/MonsterMMORPG/SECourses_Premium_Flash_Attention/resolve/main/insightface-0.7.3-cp310-cp310-win_amd64.whl#sha256=dd77692380c79d1baa44314b17238fa26053f64f63f879e7d4e2a47f95b58b0d
Jinja2==3.1.4
joblib==1.5.1
jsonschema==4.24.0
jsonschema-specifications==2025.4.1
kiwisolver==1.4.8
kornia==0.8.1
kornia_rs==0.1.9
lazy_loader==0.4
llvmlite==0.44.0
Mako==1.3.10
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.10.3
matrix-client==0.4.0
mdurl==0.1.2
mpmath==1.3.0
msgpack==1.1.1
multidict==6.4.4
networkx==3.3
ninja==1.11.1.4
numba==0.61.2
numpy==1.26.4
nvidia-ml-py==12.575.51
omegaconf==2.3.0
onnx==1.18.0
onnxruntime-gpu==1.22.0
opencv-python==4.11.0.86
opencv-python-headless==4.11.0.86
packaging==25.0
pandas==2.3.0
pillow==11.0.0
platformdirs==4.3.8
pooch==1.8.2
prettytable==3.16.0
propcache==0.3.2
protobuf==6.31.1
psutil==7.0.0
py-cpuinfo==9.0.0
pycparser==2.22
pydantic==2.11.7
pydantic-settings==2.9.1
pydantic_core==2.33.2
PyGithub==2.6.1
Pygments==2.19.1
PyJWT==2.10.1
PyMatting==1.1.14
PyNaCl==1.5.0
pyparsing==3.2.3
pyreadline3==3.5.4
python-dateutil==2.9.0.post0
python-dotenv==1.1.0
pytz==2025.2
PyYAML==6.0.2
referencing==0.36.2
regex==2024.11.6
rembg==2.0.66
requests==2.32.4
rich==14.0.0
rpds-py==0.25.1
safetensors==0.5.3
sageattention @ https://github.com/woct0rdho/SageAttention/releases/download/v2.1.1-windows/sageattention-2.1.1+cu128torch2.7.1-cp310-cp310-win_amd64.whl#sha256=fde6a193b0a6101f3de8636819fbb0d4fcc53949c4845cbc041e9ccb19c56287
scikit-image==0.25.2
scikit-learn==1.7.0
scipy==1.15.3
seaborn==0.13.2
sentencepiece==0.2.0
shellingham==1.5.4
simsimd==6.4.9
six==1.17.0
smmap==5.0.2
soundfile==0.13.1
spandrel==0.4.1
SQLAlchemy==2.0.41
stringzilla==3.12.5
sympy==1.13.3
threadpoolctl==3.6.0
tifffile==2025.5.10
tokenizers==0.21.1
toml==0.10.2
tomli==2.2.1
torch==2.7.0+cu128
torchaudio==2.7.0+cu128
torchsde==0.2.6
torchvision==0.22.0+cu128
tqdm==4.67.1
trampoline==0.1.2
transformers==4.52.4
triton-windows==3.3.0.post19
typer==0.16.0
typing-inspection==0.4.1
typing_extensions==4.12.2
tzdata==2025.2
ultralytics==8.3.155
ultralytics-thop==2.0.14
urllib3==1.26.20
uv==0.7.13
wcwidth==0.2.13
wrapt==1.17.2
xformers @ https://huggingface.co/MonsterMMORPG/SECourses_Premium_Flash_Attention/resolve/main/xformers-0.0.30+3abeaa9e.d20250424-cp310-cp310-win_amd64.whl#sha256=1317dd636b165f3ac88d9de41b755a209f44f4dff71334b9dd046ad1db828431
yarl==1.20.1
zipp==3.23.0
(venv) E:\Comfy_UI_V27\ComfyUI\venv\Scripts>
```
Contributor guide
Assessment
This issue has not been assessed yet.