
Windows 11에서 AMD GPU(gfx1151) PyTorch + ComfyUI 완벽 설치 가이드
2025년 6월 업데이트 | AMD Ryzen AI Max+ 395, RX 7900 시리즈 등 최신 AMD GPU 지원
AMD의 최신 gfx1151 아키텍처(Ryzen AI Max+ 395, RX 7900 시리즈 등)에서 PyTorch와 ComfyUI를 완벽하게 설치하는 방법을 단계별로 정리했습니다^1. Windows 11 환경에서 AMD GPU를 활용한 AI 개발이 가능합니다.
📋 목차
🔧 사전 준비사항
시스템 요구사항
- Windows 11 (최신 업데이트 권장)
- AMD GPU: gfx1151 아키텍처 (Ryzen AI Max+ 395, RX 7900 시리즈 등)
- 메모리: 16GB 이상 권장
- 저장공간: 10GB 이상
필수 도구 설치
# 1. AMD GPU 드라이버 최신 버전 설치
# AMD 공식 사이트에서 다운로드
# 2. Git 설치 확인
git --version
# 3. Python 3.12 설치 확인
python --version
🚀 방법 1: 표준 pip + venv 설치 (권장)
가장 안정적이고 널리 사용되는 방법입니다^1.
1단계: 프로젝트 준비
# ComfyUI 프로젝트 클론
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
# Python 가상환경 생성 및 활성화
python -m venv venv
.\venv\Scripts\Activate.ps1
# pip 업그레이드
python -m pip install --upgrade pip
2단계: AMD GPU용 PyTorch 설치
# PyTorch, torchaudio, torchvision wheel 파일 다운로드
Start-BitsTransfer -Source https://github.com/scottt/rocm-TheRock/releases/download/v6.5.0rc-pytorch/torch-2.7.0a0+git3f903c3-cp312-cp312-win_amd64.whl
Start-BitsTransfer -Source https://github.com/scottt/rocm-TheRock/releases/download/v6.5.0rc-pytorch/torchaudio-2.6.0a0+1a8f621-cp312-cp312-win_amd64.whl
Start-BitsTransfer -Source https://github.com/scottt/rocm-TheRock/releases/download/v6.5.0rc-pytorch/torchvision-0.22.0+9eb57cd-cp312-cp312-win_amd64.whl
# wheel 파일들 설치
pip install .\torch-2.7.0a0+git3f903c3-cp312-cp312-win_amd64.whl
pip install .\torchaudio-2.6.0a0+1a8f621-cp312-cp312-win_amd64.whl
pip install .\torchvision-0.22.0+9eb57cd-cp312-cp312-win_amd64.whl
3단계: 호환성 최적화 requirements.txt
기존 requirements.txt를 다음과 같이 수정하세요^2:
comfyui-frontend-package==1.21.7
comfyui-workflow-templates==0.1.27
comfyui-embedded-docs==0.2.0
# PyTorch 관련 패키지 주석처리 (AMD GPU용 수동 설치와 충돌 방지)
# torch
# torchvision
# torchaudio
# AMD GPU HIP SDK 호환성을 위한 numpy 버전 (공식 권장)
numpy==1.26.4
einops
transformers>=4.28.1
tokenizers>=0.13.3
sentencepiece
safetensors>=0.4.2
aiohttp>=3.11.8
yarl>=1.18.0
pyyaml
Pillow>=8.0.0,<11.0.0
scipy>=1.9.0
tqdm
psutil
# non essential dependencies:
kornia>=0.7.1
spandrel
soundfile
av>=14.2.0
pydantic~=2.0
4단계: 의존성 설치
# 수정된 requirements.txt로 설치
pip install -r requirements.txt
# torchsde 별도 설치 (PyTorch 의존성 해결 후)
pip install torchsde
# 설치 검증
python -c "import torch; import numpy as np; print(f'PyTorch: {torch.__version__}'); print(f'NumPy: {np.__version__}'); print(f'AMD GPU: {torch.cuda.is_available()}')"
⚡ 방법 2: uv 패키지 매니저 설치
더 빠른 설치를 원한다면 uv를 사용할 수 있습니다^3.
# 1. ComfyUI 프로젝트 클론
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
# 2. Python 3.12 환경 준비
uv python pin 3.12
uv init
# 3. PyTorch 다운로드 및 설치
Start-BitsTransfer -Source https://github.com/scottt/rocm-TheRock/releases/download/v6.5.0rc-pytorch/torch-2.7.0a0+git3f903c3-cp312-cp312-win_amd64.whl
Start-BitsTransfer -Source https://github.com/scottt/rocm-TheRock/releases/download/v6.5.0rc-pytorch/torchaudio-2.6.0a0+1a8f621-cp312-cp312-win_amd64.whl
Start-BitsTransfer -Source https://github.com/scottt/rocm-TheRock/releases/download/v6.5.0rc-pytorch/torchvision-0.22.0+9eb57cd-cp312-cp312-win_amd64.whl
uv add .\torch-2.7.0a0+git3f903c3-cp312-cp312-win_amd64.whl .\torchaudio-2.6.0a0+1a8f621-cp312-cp312-win_amd64.whl .\torchvision-0.22.0+9eb57cd-cp312-cp312-win_amd64.whl
# 4. 추가 패키지 설치
uv add -r .\requirements.txt
uv add "numpy==1.26.4"
🔌 ComfyUI Manager 설치
ComfyUI의 필수 확장 관리 도구입니다^3.
방법 1: Git 클론 (권장)
# ComfyUI/custom_nodes 폴더로 이동
cd custom_nodes
# ComfyUI Manager 클론
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
# ComfyUI 재시작
cd ..
python main.py
방법 2: 수동 설치
Git 문제가 있을 경우:
- ComfyUI-Manager GitHub에서 ZIP 다운로드
ComfyUI/custom_nodes/ComfyUI-Manager/
폴더에 압축 해제- ComfyUI 재시작
⚙️ 호환성 최적화
numpy 버전 관리
AMD GPU HIP SDK와의 최적 호환성을 위해 numpy==1.26.4를 사용합니다^2:
# 현재 numpy 버전 확인
python -c "import numpy; print(numpy.__version__)"
# numpy 2.0이 설치되어 있다면 다운그레이드
pip install --force-reinstall numpy==1.26.4
성능 테스트
# 설치 완료 후 실행하여 확인
import torch
import numpy as np
print(f"PyTorch 버전: {torch.__version__}")
print(f"NumPy 버전: {np.__version__}")
print(f"AMD GPU 사용 가능: {torch.cuda.is_available()}")
if torch.cuda.is_available():
print(f"GPU 이름: {torch.cuda.get_device_name(0)}")
print(f"GPU 메모리: {torch.cuda.get_device_properties(0).total_memory / 1024**3:.1f}GB")
# 간단한 연산 테스트
x = torch.randn(1000, 1000).cuda()
y = torch.mm(x, x.t())
print("✅ AMD GPU 연산 테스트 성공!")
🔧 문제 해결
자주 발생하는 문제들
문제 | 원인 | 해결방법 |
---|---|---|
numpy 2.0 호환성 오류 | numpy 버전 충돌 | pip install numpy==1.26.4 |
MIOpen 관련 에러 | VAE 연산 문제 | ComfyUI 실행시 --cpu-vae 옵션 추가 |
Manager 설치 안됨 | Git 미설치 | Git 설치 후 재시도 |
PowerShell 실행 정책 | 보안 설정 | Set-ExecutionPolicy RemoteSigned |
환경 초기화
문제가 지속될 경우 환경을 초기화하세요^1:
# 가상환경 삭제 후 재생성
deactivate
Remove-Item -Recurse -Force venv
python -m venv venv
.\venv\Scripts\Activate.ps1
# 처음부터 재설치
pip install --upgrade pip
# 위의 설치 과정 반복
🎯 최종 실행
모든 설치가 완료되면 ComfyUI를 실행합니다:
# ComfyUI 실행
python main.py
# 또는 GPU 메모리 부족시
python main.py --cpu-vae --lowvram
브라우저에서 http://localhost:8188
로 접속하여 ComfyUI 인터페이스를 확인할 수 있습니다^3.
📝 마무리
이 가이드를 따라하면 Windows 11에서 AMD GPU(gfx1151)를 활용한 PyTorch + ComfyUI 환경을 완벽하게 구축할 수 있습니다^1.
핵심은 numpy==1.26.4 버전 고정과 AMD GPU용 PyTorch 수동 설치입니다. 문제가 발생하면 문제 해결 섹션을 참고하거나 환경을 초기화 후 재시도하세요.
참고: 이 방법은 2025년 6월 기준 최신 정보이며, AMD와 PyTorch의 업데이트에 따라 변경될 수 있습니다. 정기적으로 공식 문서를 확인하시기 바랍니다.
'영상생성AI > ComfyUI' 카테고리의 다른 글
"RTX 4090으로 ComfyUI에서 동영상을 애니메이션 스타일로 업스케일링하는 완벽 가이드" (0) | 2025.05.14 |
---|---|
ComfyUI에서 완벽한 이미지를 위한 조명 프롬프트 마스터 가이드 (2025) (0) | 2025.04.02 |
ComfyUI와 Hunyuan Video로 메카 이미지에 생명을 불어넣는 20가지 동적 프롬프트 (2) | 2025.03.16 |
Hunyuan Video를 위한 TEXT to VIDEO고품질 프롬프트 모음집 (1) | 2025.03.13 |
Hunyuan Video 모델로 멋진 AI 비디오 만들기: ComfyUI 완벽 가이드 (0) | 2025.03.13 |