Still cannot install on Linux with rocm
I tried some things from the other issue open for linux,
I had success with this:
pip3 --no-cache install torch==2.6.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/rocm6.2.4
PyTorch version: 2.6.0+rocm6.2.4 amdgpu.ids: No such file or directory ROCm available: True Device name: AMD Radeon Graphics but after downgrade: PyTorch version: 2.5.1+rocm6.1 amdgpu.ids: No such file or directory ROCm available: False Device name: None
rocminfo | grep -E "Name|gfx"
Name: AMD Ryzen 5 5600X 6-Core Processor
Marketing Name: AMD Ryzen 5 5600X 6-Core Processor
Vendor Name: CPU
Name: gfx1201
Marketing Name: AMD Radeon RX 9070 XT
Vendor Name: AMD
Name: amdgcn-amd-amdhsa--gfx1201
Name: amdgcn-amd-amdhsa--gfx12-generic
I tried a newer version:
pip3 install torch==2.7.0 torchaudio==2.7.0+rocm6.3 torchvision==0.22.0+rocm6.3 --index-url https://download.pytorch.org/whl/rocm6.3 --force-reinstall
a bunch of errors I ignored:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
chatterbox-tts 0.1.6 requires gradio==5.44.1, which is not installed.
chatterbox-tts 0.1.6 requires pykakasi==2.3.0, which is not installed.
chatterbox-tts 0.1.6 requires spacy-pkuseg, which is not installed.
s3tokenizer 0.3.0 requires pre-commit, which is not installed.
chatterbox-tts 0.1.6 requires numpy<1.26.0,>=1.24.0, but you have numpy 2.4.4 which is incompatible.
chatterbox-tts 0.1.6 requires safetensors==0.5.3, but you have safetensors 0.7.0 which is incompatible.
chatterbox-tts 0.1.6 requires torch==2.5.1, but you have torch 2.6.0+rocm6.2.4 which is incompatible.
chatterbox-tts 0.1.6 requires torchaudio==2.5.1, but you have torchaudio 2.6.0+rocm6.2.4 which is incompatible.
descript-audiotools 0.7.2 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.2 which is incompatible.
This finally worked.
also added these, unsure if they made a difference
export HSA_OVERRIDE_GFX_VERSION=12.0.1 export PYTORCH_ROCM_ARCH=gfx1201
Hi @luthis1124,
There's now a dedicated Docker path for this in PR #151 that uses ROCm 7.2.3 wheels (the latest patch release). Once merged, you'd be able to run:
docker compose -f docker-compose-rdna4.yml up -d
In the meantime, if you want to try it now from the PR branch:
git clone https://github.com/Kaihui-AMD/Chatterbox-TTS-Server.git
cd Chatterbox-TTS-Server
git checkout feat/rdna4-docker-support
docker compose -f docker-compose-rdna4.yml up -d
Closing, AMD RDNA4 (gfx1201) now has a dedicated Docker path merged in #151 (thank you @Kaihui-AMD). For RX 9070 / 9070 XT / R9700:
docker compose -f docker-compose-rdna4.yml up -d
The compose file uses ROCm 7.2.3 wheels and intentionally does not set HSA_OVERRIDE_GFX_VERSION since gfx1201 is natively supported by ROCm 7.0+. Please reopen or file a new issue if you hit a problem on a clean build.