Skip to content

Conversation

@tapafon
Copy link

@tapafon tapafon commented Sep 1, 2025

Issue #141 proposed to modify poetry file to include ROCm support (for amdgpu acceleration), so I did. And it does work, however:
PYYAML support max Python 3.11, so the requires-python has to be changed (so it won't even attempt to build in Python 3.12 and newer);
memoryview is too large while installing torch on my system (poetry bug?), so I had to fallback to installing it manually:
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/rocm6.3 and only then run poetry install --extras rocm to install the rest;
Under glibc 2.41, libraries that request an executable stack (libctranslate2 in this case) cannot be loaded by default, so I had to also add GLIBC_TUNABLES=glibc.rtld.execstack=2 into env for a workaround.

My system in question is Debian Unstable. After all of that, it does work and does utilises GPU (RX 7800 XT, which works despite being officially unsupported by ROCm). For acceleration, it may be a bit slower that NVIDIA, but it's definetely faster than CPU.

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