Microsoft Windows [Version 10.0.22621.1413]
(c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

D:\ComfyUI>call venv\Scripts\activate

(venv) D:\ComfyUI>cd SageAttention

(venv) D:\ComfyUI\SageAttention>python setup.py install
running install
D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\cmd.py:79: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\cmd.py:79: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
running bdist_egg
running egg_info
creating sageattention.egg-info
writing sageattention.egg-info\PKG-INFO
writing dependency_links to sageattention.egg-info\dependency_links.txt
writing top-level names to sageattention.egg-info\top_level.txt
writing manifest file 'sageattention.egg-info\SOURCES.txt'
D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py:497: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
  warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'sageattention.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'sageattention.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build\lib.win-amd64-cpython-312\sageattention
copying sageattention\core.py -> build\lib.win-amd64-cpython-312\sageattention
copying sageattention\quant.py -> build\lib.win-amd64-cpython-312\sageattention
copying sageattention\__init__.py -> build\lib.win-amd64-cpython-312\sageattention
creating build\lib.win-amd64-cpython-312\sageattention\triton
copying sageattention\triton\attn_qk_int8_block_varlen.py -> build\lib.win-amd64-cpython-312\sageattention\triton
copying sageattention\triton\attn_qk_int8_per_block.py -> build\lib.win-amd64-cpython-312\sageattention\triton
copying sageattention\triton\attn_qk_int8_per_block_causal.py -> build\lib.win-amd64-cpython-312\sageattention\triton
copying sageattention\triton\attn_qk_int8_per_block_causal_varlen.py -> build\lib.win-amd64-cpython-312\sageattention\triton
copying sageattention\triton\quant_per_block.py -> build\lib.win-amd64-cpython-312\sageattention\triton
copying sageattention\triton\quant_per_block_varlen.py -> build\lib.win-amd64-cpython-312\sageattention\triton
copying sageattention\triton\quant_per_thread.py -> build\lib.win-amd64-cpython-312\sageattention\triton
copying sageattention\triton\__init__.py -> build\lib.win-amd64-cpython-312\sageattention\triton
running build_ext
D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py:382: UserWarning: Error checking compiler version for cl: [WinError 2] Не удается найти указанный файл
  warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'sageattention._qattn' extension
creating build\temp.win-amd64-cpython-312\Release\csrc\qattn
D:\VS\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\ComfyUI\venv\Lib\site-packages\torch\include -ID:\ComfyUI\venv\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\ComfyUI\venv\Lib\site-packages\torch\include\TH -ID:\ComfyUI\venv\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include" -ID:\ComfyUI\venv\include -IC:\Users\User\AppData\Local\Programs\Python\Python312\include -IC:\Users\User\AppData\Local\Programs\Python\Python312\Include -ID:\VS\VC\Tools\MSVC\14.42.34433\include -ID:\VS\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /EHsc /Tpcsrc/qattn/pybind.cpp /Fobuild\temp.win-amd64-cpython-312\Release\csrc\qattn\pybind.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -g -O3 -fopenmp -lgomp -std=c++17 -DENABLE_BF16 -D_GLIBCXX_USE_CXX11_ABI=0 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_qattn -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17
cl: командная строка warning D9002: пропуск неизвестного параметра "-g"
cl: командная строка warning D9002: пропуск неизвестного параметра "-O3"
cl: командная строка warning D9002: пропуск неизвестного параметра "-fopenmp"
cl: командная строка warning D9002: пропуск неизвестного параметра "-lgomp"
cl: командная строка warning D9002: пропуск неизвестного параметра "-std=c++17"
pybind.cpp
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvcc" -c csrc/qattn/qk_int_sv_f16_buffer_cuda.cu -o build\temp.win-amd64-cpython-312\Release\csrc\qattn\qk_int_sv_f16_buffer_cuda.obj -ID:\ComfyUI\venv\Lib\site-packages\torch\include -ID:\ComfyUI\venv\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\ComfyUI\venv\Lib\site-packages\torch\include\TH -ID:\ComfyUI\venv\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include" -ID:\ComfyUI\venv\include -IC:\Users\User\AppData\Local\Programs\Python\Python312\include -IC:\Users\User\AppData\Local\Programs\Python\Python312\Include -ID:\VS\VC\Tools\MSVC\14.42.34433\include -ID:\VS\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 -std=c++17 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ --use_fast_math --threads=8 -Xptxas=-v -diag-suppress=174 -D_GLIBCXX_USE_CXX11_ABI=0 -gencode arch=compute_89,code=sm_89 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_qattn -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 --use-local-env
qk_int_sv_f16_buffer_cuda.cu
cl: командная строка warning D9025: переопределение "/D__CUDA_NO_HALF_OPERATORS__" на "/U__CUDA_NO_HALF_OPERATORS__"
cl: командная строка warning D9025: переопределение "/D__CUDA_NO_HALF_CONVERSIONS__" на "/U__CUDA_NO_HALF_CONVERSIONS__"
qk_int_sv_f16_buffer_cuda.cu
cl: командная строка warning D9025: переопределение "/D__CUDA_NO_HALF_OPERATORS__" на "/U__CUDA_NO_HALF_OPERATORS__"
cl: командная строка warning D9025: переопределение "/D__CUDA_NO_HALF_CONVERSIONS__" на "/U__CUDA_NO_HALF_CONVERSIONS__"
qk_int_sv_f16_buffer_cuda.cu
C:/Program Files (x86)/Windows Kits/10//include/10.0.22621.0//um\winuser.h(14668): warning #108-D: signed bit field of length 1
      BOOL fBarFocused:1;
           ^

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

C:/Program Files (x86)/Windows Kits/10//include/10.0.22621.0//um\winuser.h(14669): warning #108-D: signed bit field of length 1
      BOOL fFocused:1;
           ^

C:/Program Files (x86)/Windows Kits/10//include/10.0.22621.0//um\wincrypt.h(21836): warning #1835-D: attribute "dllimport" does not apply here
  typedef __declspec(dllimport) BOOL (__stdcall *PFN_CERT_IS_WEAK_HASH)(
                     ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(730): warning #108-D: signed bit field of length 1
      int                             fInDontFree       :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(731): warning #108-D: signed bit field of length 1
      int                             fDontCallFreeInst :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(732): warning #108-D: signed bit field of length 1
      int                             fUnused1          :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(733): warning #108-D: signed bit field of length 1
      int                             fHasReturn        :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(734): warning #108-D: signed bit field of length 1
      int                             fHasExtensions    :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(735): warning #108-D: signed bit field of length 1
      int                             fHasNewCorrDesc   :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(736): warning #108-D: signed bit field of length 1
      int                             fIsIn             :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(737): warning #108-D: signed bit field of length 1
      int                             fIsOut            :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(738): warning #108-D: signed bit field of length 1
      int                             fIsOicf           :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(739): warning #108-D: signed bit field of length 1
      int                             fBufferValid      :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(740): warning #108-D: signed bit field of length 1
      int                             fHasMemoryValidateCallback: 1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(741): warning #108-D: signed bit field of length 1
      int                             fInFree             :1;
                                      ^

C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(742): warning #108-D: signed bit field of length 1
      int                             fNeedMCCP         :1;
                                      ^

D:\ComfyUI\SageAttention\csrc\qattn\../math.cuh(71): error: identifier "ushort" is undefined
    ushort y_u16;
    ^

D:\ComfyUI\SageAttention\csrc\qattn\../math.cuh(72): error: an asm operand must have scalar type
    asm volatile("ex2.approx.f16 %0, %1;" : "=h"(y_u16) : "h"(__half_as_ushort(x)));
                                            ^

D:\ComfyUI\SageAttention\csrc\qattn\../math.cuh(146): error: identifier "ushort" is undefined
    ushort y_u16;
    ^

D:\ComfyUI\SageAttention\csrc\qattn\../math.cuh(147): error: an asm operand must have scalar type
    asm volatile("tanh.approx.f16 %0, %1;" : "=h"(y_u16) : "h"(__half_as_ushort(x)));
                                             ^

4 errors detected in the compilation of "csrc/qattn/qk_int_sv_f16_buffer_cuda.cu".
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\bin\\nvcc.EXE' failed with exit code 4294967295

(venv) D:\ComfyUI\SageAttention>pip install .
Processing d:\comfyui\sageattention
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-0inredh1\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-0inredh1\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-0inredh1\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-0inredh1\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 24, in <module>
      ModuleNotFoundError: No module named 'torch'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

(venv) D:\ComfyUI\SageAttention>pip install ninja
Collecting ninja
  Downloading ninja-1.11.1.3-py3-none-win_amd64.whl.metadata (5.3 kB)
Downloading ninja-1.11.1.3-py3-none-win_amd64.whl (296 kB)
Installing collected packages: ninja
Successfully installed ninja-1.11.1.3

(venv) D:\ComfyUI\SageAttention>pip install .
Processing d:\comfyui\sageattention
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-jrta4msb\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-jrta4msb\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-jrta4msb\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-jrta4msb\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 24, in <module>
      ModuleNotFoundError: No module named 'torch'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

(venv) D:\ComfyUI\SageAttention>pip list
Package                   Version
------------------------- ---------------
accelerate                1.2.1
aiohappyeyeballs          2.4.4
aiohttp                   3.11.11
aiosignal                 1.3.2
albucore                  0.0.16
albumentations            1.4.15
annotated-types           0.7.0
anyio                     4.8.0
attrs                     24.3.0
av                        14.0.1
beautifulsoup4            4.12.3
blend_modes               2.2.0
cachetools                5.5.0
certifi                   2024.12.14
cffi                      1.17.1
charset-normalizer        3.4.1
click                     8.1.8
color-matcher             0.5.0
colorama                  0.4.6
coloredlogs               15.0.1
colour-science            0.4.6
contourpy                 1.3.1
cryptography              44.0.0
cupy-cuda11x              13.3.0
cycler                    0.12.1
ddt                       1.7.2
deepdiff                  8.1.1
Deprecated                1.2.15
diffusers                 0.32.1
docutils                  0.21.2
dynamicprompts            0.30.2
easydict                  1.13
einops                    0.8.0
eval_type_backport        0.2.2
evalidate                 2.0.3
fastrlock                 0.8.3
filelock                  3.16.1
flatbuffers               24.12.23
flet                      0.25.2
fonttools                 4.55.3
frozenlist                1.5.0
fsspec                    2024.12.0
gdown                     5.2.0
gguf                      0.14.0
gitdb                     4.0.12
GitPython                 3.1.44
glitch_this               1.0.3
h11                       0.14.0
httpcore                  1.0.7
httpx                     0.27.2
huggingface-hub           0.25.2
humanfriendly             10.0
idna                      3.10
imageio                   2.36.1
imageio-ffmpeg            0.5.1
importlib_metadata        8.5.0
jax                       0.4.38
jaxlib                    0.4.38
Jinja2                    3.1.5
joblib                    1.4.2
jsonschema                4.23.0
jsonschema-specifications 2024.10.1
kiwisolver                1.4.8
kornia                    0.8.0
kornia_rs                 0.1.8
lazy_loader               0.4
llvmlite                  0.43.0
loguru                    0.7.3
ltx-video                 0.1.2
markdown-it-py            3.0.0
MarkupSafe                3.0.2
matplotlib                3.10.0
matrix-client             0.4.0
mdurl                     0.1.2
ml_dtypes                 0.5.1
mpmath                    1.3.0
mss                       10.0.0
multidict                 6.1.0
networkx                  3.4.2
ninja                     1.11.1.3
numba                     0.60.0
numpy                     1.26.4
nvidia-ml-py              12.560.30
oauthlib                  3.2.2
ollama                    0.4.5
onnxruntime-gpu           1.20.1
opencv-contrib-python     4.10.0.84
opencv-python             4.10.0.84
opencv-python-headless    4.10.0.84
opt_einsum                3.4.0
orderly-set               5.2.3
packaging                 24.2
peft                      0.14.0
piexif                    1.1.3
pilgram                   1.2.1
pillow                    11.1.0
pip                       24.3.1
pixeloe                   0.0.10
pixelsort                 1.0.1
platformdirs              4.3.6
pooch                     1.8.2
propcache                 0.2.1
protobuf                  5.29.3
psutil                    6.1.1
py-cpuinfo                9.0.0
pycparser                 2.22
pydantic                  2.10.5
pydantic_core             2.27.2
pygame                    2.6.1
PyGithub                  2.5.0
Pygments                  2.19.1
PyJWT                     2.10.1
PyMatting                 1.1.13
PyNaCl                    1.5.0
pynvml                    12.0.0
pyparsing                 3.2.1
pyreadline3               3.5.4
PySocks                   1.7.1
python-dateutil           2.9.0.post0
PyYAML                    6.0.2
qrcode                    8.0
referencing               0.35.1
regex                     2024.11.6
rembg                     2.0.61
repath                    0.9.0
requests                  2.32.3
requirements-parser       0.11.0
rich                      13.9.4
rich-argparse             1.6.0
rpds-py                   0.22.3
safetensors               0.5.2
scikit-image              0.25.0
scikit-learn              1.6.1
scipy                     1.15.1
sentencepiece             0.2.0
setuptools                75.8.0
shellingham               1.5.4
six                       1.17.0
smmap                     5.0.2
sniffio                   1.3.1
soundfile                 0.13.0
soupsieve                 2.6
spandrel                  0.4.0
sympy                     1.13.1
threadpoolctl             3.5.0
tifffile                  2025.1.10
timm                      1.0.13
tokenizers                0.21.0
toml                      0.10.2
torch                     2.5.1+cu124
torchaudio                2.5.1+cu124
torchsde                  0.2.6
torchvision               0.20.1+cu124
tqdm                      4.67.1
trampoline                0.1.2
transformers              4.48.0
transparent-background    1.3.3
triton                    3.1.0
typer                     0.15.1
types-setuptools          75.8.0.20250110
typing_extensions         4.12.2
urllib3                   1.26.20
wget                      3.2
win32_setctime            1.2.0
wrapt                     1.17.1
yarl                      1.18.3
zipp                      3.21.0

(venv) D:\ComfyUI\SageAttention>