Skip to content

Instantly share code, notes, and snippets.

@dobriak
Last active July 5, 2026 08:12
Show Gist options
  • Select an option

  • Save dobriak/232680c2f52ce98c954c9ad0308f8aae to your computer and use it in GitHub Desktop.

Select an option

Save dobriak/232680c2f52ce98c954c9ad0308f8aae to your computer and use it in GitHub Desktop.
Install Wan2GP on Linux with AMD R9700 ROCm 7.2.4 gfx1201

Install Wan2GP on Linux with AMD R9700, ROCm 7.2.4, gfx1201

While the software quality of ROCm is leaps and bounds better than couple of years ago, its documentation online is less than ideal.

Here is how you can install Wan2GP on your shiny new Radeon AI PRO R9700 and not waste a whole day like me fighting Google AI slop just to get it to run Flash attention 2.

#!/usr/bin/env bash
FLASH_ATTENTION_TRITON_AMD_ENABLE=TRUE FLASH_ATTENTION_BACKEND="flash_attn_triton_amd" MIOPEN_FIND_MODE=FAST TRITON_CACHE_DIR=/path/to/cache/triton uv run wgp.py --listen --profile 4 --perc-reserved-mem-max 1 --theme "dark"
#!/usr/bin/env bash
set -ex
git clone https://github.com/deepbeepmeep/Wan2GP.git
rm -rf .venv
uv venv --python 3.13 --seed --managed-python
source .venv/bin/activate
pip install -U --pre torch torchaudio torchvision rocm[devel] --index-url https://rocm.nightlies.amd.com/v2/gfx120X-all/
cd Wan2GP
pip install -r requirements.txt
export FLASH_ATTENTION_TRITON_AMD_ENABLE="TRUE"
pip install flash-attn --no-build-isolation
cd ..
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment