Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.54 KB

README.adoc

File metadata and controls

57 lines (44 loc) · 1.54 KB

Run ComfyUI with ROCm on AMD GPU

In case of WSL2

If you are using WSL2 with AMD/Intel GPU, try Run ComfyUI on WSL2 with DirectML. It’s slower than ROCm but still faster than CPU, and even works on an APU.

Prepare

Run

Run with Docker
mkdir -p storage

docker run -it --rm \
  --name comfyui-rocm \
  --device=/dev/kfd --device=/dev/dri \
  --group-add=video --ipc=host --cap-add=SYS_PTRACE \
  --security-opt seccomp=unconfined \
  --security-opt label=disable \
  -p 8188:8188 \
  -v "$(pwd)"/storage:/root \
  -e CLI_ARGS="" \
  yanwk/comfyui-boot:rocm
Run with Podman
mkdir -p storage

podman run -it --rm \
  --name comfyui-rocm \
  --device=/dev/kfd --device=/dev/dri \
  --group-add=video --ipc=host --cap-add=SYS_PTRACE \
  --security-opt seccomp=unconfined \
  --security-opt label=disable \
  -p 8188:8188 \
  -v "$(pwd)"/storage:/root \
  -e CLI_ARGS="" \
  docker.io/yanwk/comfyui-boot:rocm

Once the app is loaded, visit http://localhost:8188/