7800xt在wsl上的rocm支持,Comfyui的使用
•
在25年8月的AMD驱动更新中,7800xt在wsl上的工作终于被支持了(意味着windows作为linux最好的发行版又进了一步)
尝试在wsl中使用了Comfyui进行AI生成图片的测试:
Comfyui
根据官方仓库的说明,简单的配置就可以在wsl中使用Comfyui 需要注意的是在25年9月时,需要使用特定版本的pytroch库,详见AMD的说明文档
操作步骤
# 克隆Comfyui项目仓库
git clone https://github.com/comfyanonymous/ComfyUI
# 使用uv创建虚拟python环境,并且激活
uv venv .
source .venv/bin/activate
# 安装AMD编译的pytroch
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4.2/torch-2.6.0%2Brocm6.4.2.git76481f7c-cp312-cp312-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4.2/torchvision-0.21.0%2Brocm6.4.2.git4040d51f-cp312-cp312-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4.2/pytorch_triton_rocm-3.2.0%2Brocm6.4.2.git7e948ebf-cp312-cp312-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4.2/torchaudio-2.6.0%2Brocm6.4.2.gitd8831425-cp312-cp312-linux_x86_64.whl
pip3 uninstall torch torchvision pytorch-triton-rocm
pip3 install torch-2.6.0+rocm6.4.2.git76481f7c-cp312-cp312-linux_x86_64.whl torchvision-0.21.0+rocm6.4.2.git4040d51f-cp312-cp312-linux_x86_64.whl torchaudio-2.6.0+rocm6.4.2.gitd8831425-cp312-cp312-linux_x86_64.whl pytorch_triton_rocm-3.2.0+rocm6.4.2.git7e948ebf-cp312-cp312-linux_x86_64.whl
# 安装必要依赖
pip install -r requirements.txt
# 启动Comfyui
python main.py随后正常操作Comfyui,附上几张成果
