Skip to content

[AMD] Add AMD ROCm Docker support (RDNA3/RDNA4)#1292

Open
Kaihui-AMD wants to merge 1 commit into
fishaudio:mainfrom
Kaihui-AMD:add-rocm-docker-support
Open

[AMD] Add AMD ROCm Docker support (RDNA3/RDNA4)#1292
Kaihui-AMD wants to merge 1 commit into
fishaudio:mainfrom
Kaihui-AMD:add-rocm-docker-support

Conversation

@Kaihui-AMD
Copy link
Copy Markdown

Feature

Fish Speech runs on AMD GPUs via ROCm. The ROCm image is based on the official rocm/pytorch image, which already ships a gfx-tuned PyTorch, so no separate torch install is needed. Verified on RDNA4 (Radeon AI PRO R9700 / gfx1201) with ROCm 7.2.3; RDNA3 (gfx1100/gfx1101) should also work.

  • Add docker/Dockerfile.rocm based on rocm/pytorch:rocm7.2.3 (webui + server targets)
  • Add compose.rocm.yml with /dev/kfd + /dev/dri passthrough
  • Document ROCm setup in docs/en/install.md

The ROCm base image ships a gfx-tuned PyTorch, so deps install without torch (--no-deps) to avoid pulling a CUDA build. pyaudio uses --no-build-isolation, and protobuf is pinned after install to satisfy the generated proto code.

Verified end-to-end on Radeon AI PRO R9700 (gfx1201/RDNA4) with ROCm 7.2.3, PyTorch 2.9.1: s2-pro inference + WebUI both working (bf16, AOTriton SDPA).

Is this PR adding new feature or fix a BUG?

Add feature: AMD ROCm Docker support (RDNA3/RDNA4), alongside the existing CUDA/CPU paths.

Is this pull request related to any issue? If yes, please link the issue.

No linked issue

Test

image-20260601164331149

@Kaihui-AMD Kaihui-AMD force-pushed the add-rocm-docker-support branch from 700a38c to fea78b2 Compare June 1, 2026 09:36
@Kaihui-AMD
Copy link
Copy Markdown
Author

Hi @leng-yue, adds ROCm Docker support, verified on RDNA4 (gfx1201). Review when you have a chance, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant