Skip to content

Fix AMD rocm#92

Open
Alexander-Ger-Reich wants to merge 3 commits into
k2-fsa:masterfrom
Alexander-Ger-Reich:master
Open

Fix AMD rocm#92
Alexander-Ger-Reich wants to merge 3 commits into
k2-fsa:masterfrom
Alexander-Ger-Reich:master

Conversation

@Alexander-Ger-Reich

Copy link
Copy Markdown

With this, it should work on AMD and NVIDIA graphics cards.

@zhu-han

zhu-han commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

It seems that to support AMD, we only need to install the corresponding Torch version and avoid using torchaudio? In the recent update, I switched the audio I/O from torchaudio to soundfile+librosa. So the only remaining task is to add instructions for installing the correct Torch version. If you find this is the case, maybe you could open a PR to add the Torch installation instructions under “Step 1: Install PyTorch”.

@bluemoehre

bluemoehre commented Apr 26, 2026

Copy link
Copy Markdown

I am using the image provided by ROCm / AMD:

FROM docker.io/rocm/pytorch:rocm7.2.2_ubuntu24.04_py3.12_pytorch_release_2.10.0

WORKDIR /app

# Install flash attention with triton backend
RUN FLASH_ATTENTION_TRITON_AMD_ENABLE=TRUE pip install flash-attention --no-build-isolation

# System deps
RUN apt-get update && apt-get install -y \
    git \
    ffmpeg \
    && rm -rf /var/lib/apt/lists/*

# Python deps - choose one
#RUN pip install --no-cache-dir omnivoice
RUN pip install git+https://github.com/k2-fsa/OmniVoice.git

# Startup
CMD ["omnivoice-demo", "--ip", "0.0.0.0", "--port", "8880"]

Comment thread pyproject.toml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can avoid needed users to uncomment lines by using the optional dependencies methods like in #143.

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.

4 participants