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

D:\ComfyUI>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... done
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\base_command.py", line 105, in _run_wrapper
    status = _inner_run()
             ^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\base_command.py", line 96, in _inner_run
    return self.run(options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\commands\install.py", line 379, in run
    requirement_set = resolver.resolve(
                      ^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 95, in resolve
    result = self._result = resolver.resolve(
                            ^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
    if not criterion.candidates:
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
    return bool(self._sequence)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 174, in __bool__
    return any(self)
           ^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 162, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
                       ^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built
    candidate = func()
                ^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 187, in _make_candidate_from_link
    base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 233, in _make_base_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
                                       ^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in __init__
    super().__init__(
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 159, in __init__
    self.dist = self._prepare()
                ^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 236, in _prepare
    dist = self._prepare_distribution()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 315, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\prepare.py", line 527, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\prepare.py", line 642, in _prepare_linked_requirement
    dist = _get_prepared_distribution(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\prepare.py", line 72, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\distributions\sdist.py", line 69, in prepare_distribution_metadata
    self.req.prepare_metadata()
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\req\req_install.py", line 575, in prepare_metadata
    self.metadata_directory = generate_metadata(
                              ^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\build\metadata.py", line 35, in generate_metadata
    distinfo_dir = backend.prepare_metadata_for_build_wheel(metadata_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\utils\misc.py", line 722, in prepare_metadata_for_build_wheel
    return super().prepare_metadata_for_build_wheel(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 186, in prepare_metadata_for_build_wheel
    return self._call_hook('prepare_metadata_for_build_wheel', {
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'


D:\ComfyUI>call venv\Scripts\activate

(venv) D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      <string>:106: UserWarning: flash_attn was requested, but nvcc was not found.  Are you sure your environment has nvcc available?  If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.


      torch.__version__  = 2.5.1+cpu


      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 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 377, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 190, in <module>
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 1078, in CUDAExtension
          library_dirs += library_paths(cuda=True)
                          ^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 1216, in library_paths
          paths.append(_join_cuda_home(lib_dir))
                       ^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 2416, in _join_cuda_home
          raise OSError('CUDA_HOME environment variable is not set. '
      OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

(venv) D:\ComfyUI>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

(venv) D:\ComfyUI>

(venv) D:\ComfyUI>pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu124
Requirement already satisfied: torch in d:\comfyui\venv\lib\site-packages (2.5.1)
Requirement already satisfied: torchvision in d:\comfyui\venv\lib\site-packages (0.20.1)
Requirement already satisfied: torchaudio in d:\comfyui\venv\lib\site-packages (2.5.1)
Requirement already satisfied: filelock in d:\comfyui\venv\lib\site-packages (from torch) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui\venv\lib\site-packages (from torch) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui\venv\lib\site-packages (from torch) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui\venv\lib\site-packages (from torch) (3.1.5)
Requirement already satisfied: fsspec in d:\comfyui\venv\lib\site-packages (from torch) (2024.12.0)
Requirement already satisfied: setuptools in d:\comfyui\venv\lib\site-packages (from torch) (75.8.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui\venv\lib\site-packages (from torch) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui\venv\lib\site-packages (from sympy==1.13.1->torch) (1.3.0)
Requirement already satisfied: numpy in d:\comfyui\venv\lib\site-packages (from torchvision) (1.26.4)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in d:\comfyui\venv\lib\site-packages (from torchvision) (11.1.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui\venv\lib\site-packages (from jinja2->torch) (3.0.2)

(venv) D:\ComfyUI>pip uninstall torch torchvision torchaudio
Found existing installation: torch 2.5.1
Uninstalling torch-2.5.1:
  Would remove:
    d:\comfyui\venv\lib\site-packages\functorch\*
    d:\comfyui\venv\lib\site-packages\torch-2.5.1.dist-info\*
    d:\comfyui\venv\lib\site-packages\torch\*
    d:\comfyui\venv\lib\site-packages\torchgen\*
    d:\comfyui\venv\scripts\convert-caffe2-to-onnx.exe
    d:\comfyui\venv\scripts\convert-onnx-to-caffe2.exe
    d:\comfyui\venv\scripts\torchfrtrace.exe
    d:\comfyui\venv\scripts\torchrun.exe
Proceed (Y/n)? y
  Successfully uninstalled torch-2.5.1
Found existing installation: torchvision 0.20.1
Uninstalling torchvision-0.20.1:
  Would remove:
    d:\comfyui\venv\lib\site-packages\torchvision-0.20.1.dist-info\*
    d:\comfyui\venv\lib\site-packages\torchvision\*
Proceed (Y/n)? y
  Successfully uninstalled torchvision-0.20.1
Found existing installation: torchaudio 2.5.1
Uninstalling torchaudio-2.5.1:
  Would remove:
    d:\comfyui\venv\lib\site-packages\torchaudio-2.5.1.dist-info\*
    d:\comfyui\venv\lib\site-packages\torchaudio\*
    d:\comfyui\venv\lib\site-packages\torio\*
Proceed (Y/n)? y
  Successfully uninstalled torchaudio-2.5.1

(venv) D:\ComfyUI>pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118
Collecting torch
  Using cached https://download.pytorch.org/whl/cu118/torch-2.5.1%2Bcu118-cp312-cp312-win_amd64.whl (2700.1 MB)
Collecting torchvision
  Using cached https://download.pytorch.org/whl/cu118/torchvision-0.20.1%2Bcu118-cp312-cp312-win_amd64.whl (5.3 MB)
Collecting torchaudio
  Using cached https://download.pytorch.org/whl/cu118/torchaudio-2.5.1%2Bcu118-cp312-cp312-win_amd64.whl (4.0 MB)
Requirement already satisfied: filelock in d:\comfyui\venv\lib\site-packages (from torch) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui\venv\lib\site-packages (from torch) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui\venv\lib\site-packages (from torch) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui\venv\lib\site-packages (from torch) (3.1.5)
Requirement already satisfied: fsspec in d:\comfyui\venv\lib\site-packages (from torch) (2024.12.0)
Requirement already satisfied: setuptools in d:\comfyui\venv\lib\site-packages (from torch) (75.8.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui\venv\lib\site-packages (from torch) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui\venv\lib\site-packages (from sympy==1.13.1->torch) (1.3.0)
Requirement already satisfied: numpy in d:\comfyui\venv\lib\site-packages (from torchvision) (1.26.4)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in d:\comfyui\venv\lib\site-packages (from torchvision) (11.1.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui\venv\lib\site-packages (from jinja2->torch) (3.0.2)
Installing collected packages: torch, torchvision, torchaudio
Successfully installed torch-2.5.1+cu118 torchaudio-2.5.1+cu118 torchvision-0.20.1+cu118

(venv) D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: torch in d:\comfyui\venv\lib\site-packages (from flash-attn) (2.5.1+cu118)
Requirement already satisfied: einops in d:\comfyui\venv\lib\site-packages (from flash-attn) (0.8.0)
Requirement already satisfied: filelock in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.1.5)
Requirement already satisfied: fsspec in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (2024.12.0)
Requirement already satisfied: setuptools in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (75.8.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui\venv\lib\site-packages (from sympy==1.13.1->torch->flash-attn) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui\venv\lib\site-packages (from jinja2->torch->flash-attn) (3.0.2)
Building wheels for collected packages: flash-attn
  Building wheel for flash-attn (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for flash-attn (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [119 lines of output]
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py:251: _IncompatibleBdistWheel: wheel.bdist_wheel is deprecated, please import it from setuptools
      !!

              ********************************************************************************
              Ensure that any custom bdist_wheel implementation is a subclass of
              setuptools.command.bdist_wheel.bdist_wheel.

              By 2025-Oct-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://github.com/pypa/wheel/pull/631 for details.
              ********************************************************************************

      !!
        return _build_backend().build_wheel(wheel_directory, config_settings,
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      running bdist_wheel
      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.'))
      Guessing wheel URL:  https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.3/flash_attn-2.7.3+cu11torch2.5cxx11abiFALSE-cp312-cp312-win_amd64.whl
      Precompiled wheel not found. Building from source...
      running build
      running build_py
      creating build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\bert_padding.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton_og.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attention.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\fused_softmax.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn
      creating build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_flash_attention_fp8.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_split_kv.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\generate_kernels.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\padding.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\setup.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_attn_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_flash_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_util.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\__init__.py -> build\lib.win-amd64-cpython-312\hopper
      creating build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bench.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_decode.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_fa.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_torch.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\test.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\utils.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      creating build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\patch_embed.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      creating build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      creating build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\baichuan.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bert.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bigcode.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\btlm.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\falcon.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gptj.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt_neox.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\llama.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\opt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\vit.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      creating build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\block.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\embedding.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mha.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      creating build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\fused_dense.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\rms_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      creating build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\benchmark.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\distributed.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\generation.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\pretrained.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      creating build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\k_activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\linear.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\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 'flash_attn_2_cuda' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for flash-attn
Failed to build flash-attn
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (flash-attn)

(venv) D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: torch in d:\comfyui\venv\lib\site-packages (from flash-attn) (2.5.1+cu118)
Requirement already satisfied: einops in d:\comfyui\venv\lib\site-packages (from flash-attn) (0.8.0)
Requirement already satisfied: filelock in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.1.5)
Requirement already satisfied: fsspec in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (2024.12.0)
Requirement already satisfied: setuptools in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (75.8.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui\venv\lib\site-packages (from sympy==1.13.1->torch->flash-attn) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui\venv\lib\site-packages (from jinja2->torch->flash-attn) (3.0.2)
Building wheels for collected packages: flash-attn
  Building wheel for flash-attn (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for flash-attn (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [119 lines of output]
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py:251: _IncompatibleBdistWheel: wheel.bdist_wheel is deprecated, please import it from setuptools
      !!

              ********************************************************************************
              Ensure that any custom bdist_wheel implementation is a subclass of
              setuptools.command.bdist_wheel.bdist_wheel.

              By 2025-Oct-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://github.com/pypa/wheel/pull/631 for details.
              ********************************************************************************

      !!
        return _build_backend().build_wheel(wheel_directory, config_settings,
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      running bdist_wheel
      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.'))
      Guessing wheel URL:  https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.3/flash_attn-2.7.3+cu11torch2.5cxx11abiFALSE-cp312-cp312-win_amd64.whl
      Precompiled wheel not found. Building from source...
      running build
      running build_py
      creating build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\bert_padding.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton_og.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attention.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\fused_softmax.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn
      creating build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_flash_attention_fp8.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_split_kv.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\generate_kernels.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\padding.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\setup.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_attn_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_flash_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_util.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\__init__.py -> build\lib.win-amd64-cpython-312\hopper
      creating build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bench.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_decode.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_fa.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_torch.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\test.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\utils.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      creating build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\patch_embed.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      creating build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      creating build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\baichuan.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bert.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bigcode.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\btlm.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\falcon.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gptj.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt_neox.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\llama.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\opt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\vit.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      creating build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\block.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\embedding.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mha.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      creating build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\fused_dense.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\rms_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      creating build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\benchmark.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\distributed.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\generation.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\pretrained.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      creating build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\k_activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\linear.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\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 'flash_attn_2_cuda' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for flash-attn
Failed to build flash-attn
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (flash-attn)

(venv) D:\ComfyUI>