얕고 넓게

[AI] ComfyUI 3/2 @Windows11 본문

IT/AI.ML

[AI] ComfyUI 3/2 @Windows11

블랙오닉스 2025. 10. 2. 16:27

2025.10.02

python 버전 때문에 SegaAttension 설치가 안돼서 다시 도전

 

일단 3.11 가상환경 만들려고 하는데 그냥은 안된다.

python3.11 -m venv venv_comfyui311
or
pip install virtualenv
virtualenv venv_comfyui311 --python=python3.11

둘다 에러

 

 

윈도우즈에서 python 3.11 설치

https://www.python.org/ftp/python/3.11.9/python-3.11.9-amd64.exe

 

py -3.11 -m venv venv_comfyui311

생성 되었다.

 

가상 환경에 패키지 다시 설치해도 기존에 설치한 ComfyUI는 그대로 사용가능하다고 함

당연한 것이 Git으로 받은 ComfyUI는 Python 버전과 상관없고,

가상환경에서 ComfyUI의  requirements로 패키지를 설치함


 

(venv_comfyui311) PS D:\AI\ComfyUI> pip install -r .\requirements.txt
(venv_comfyui311) PS D:\AI> pip install torch==2.8.0+cu128 torchvision==0.23.0+cu128 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128
(venv_comfyui311) PS D:\AI\ComfyUI> pip install "pyyaml"
(venv_comfyui311) PS D:\AI\ComfyUI> python .\main.py

실제 순서는 다르지만 정리하면 위에 처럼 설치 후 실행

잘된다.

다시 나머지 패키지 설치

pip install -U "triton-windows<3.5"
python -c "import triton; print('triton ok')"
# ✅ triton ok

pip install "D:\AI\xformers-0.0.32.post2-cp39-abi3-win_amd64.whl"
python -c "import xformers; print('xformers ok')"
python -m xformers.info
# ✅ memory_efficient_attention 등 available

pip install "D:\AI\sageattention-2.2.0+cu128torch2.8.0-cp311-cp311-win_amd64.whl"
python -c "import sageattention; print('sage ok')"
# ✅ sage ok

 

다 설치하고 보니 유튜브 설명에 3.12.10 설치하라고 함 ㅠㅠ

5. Python 3.12.10 (Windows) 현재 젤 안정적이라함
https://www.python.org/downloads/wind...

 

실행파일 만들기 run_nvidia_gpu_sage.bat

python -s ComfyUI\main.py --windows-standalone-build --use-sage-attention
pause

실행해보니 에러다.

SageAttention은 현재 GPU에서 안되는 것 같다

Error running sage attention: Unsupported CUDA architecture: sm61, using pytorch attention instead.
Error running sage attention: Unsupported CUDA architecture: sm61, using pytorch attention instead.
Error running sage attention: Unsupported CUDA architecture: sm61, using pytorch attention instead.
Error running sage attention: Unsupported CUDA architecture: sm61, using pytorch attention instead.
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:10<00:00,  1.84it/s]
Requested to load AutoencoderKL
loaded completely 2506.6169929504395 319.11416244506836 True
Prompt executed in 15.58 seconds

Nunchaku는 웹에서 Manager를 실행해서 하면 된다.