"""install.bat 마지막 단계: 엔진이 쓰는 기본 모델(rmvpe · contentvec · 사전학습 가중치 · ffmpeg)을 받고 GPU 를 확인한다.""" import sys from common import use_engine def main(): use_engine() import torch from rvc.lib.tools.prerequisites_download import prequisites_download_pipeline print("엔진 기본 모델 받는 중 (약 2GB)...") prequisites_download_pipeline(True, True, True) if torch.cuda.is_available(): name = torch.cuda.get_device_name(0) cap = torch.cuda.get_device_capability(0) x = torch.ones(1024, device="cuda") * 2 # Blackwell(sm_120) 커널이 실제로 도는지 확인 assert float(x.sum()) == 2048.0 print(f"GPU 확인: {name} (sm_{cap[0]}{cap[1]}), torch {torch.__version__}") else: print("주의: CUDA GPU 를 찾지 못했습니다. NVIDIA 드라이버(580 이상)를 확인해 주세요. CPU 로는 실시간 변환이 어렵습니다.") print("설치 끝.") if __name__ == "__main__": sys.exit(main())