fix(qwentts): fix GPU detection race and add ROCm flash-attn support

This commit is contained in:
2026-09-12 21:26:43 +02:00
parent 90ff24a041
commit 6c859990b6
+1 -1
View File
@@ -41,7 +41,7 @@ RUN pip install --no-cache-dir qwen-tts fastapi uvicorn python-multipart
RUN if [ "$DEVICE" = "rocm" ]; then \
pip install --no-cache-dir ninja \
&& git clone --depth 1 https://github.com/Dao-AILab/flash-attention.git /tmp/flash-attention \
&& (cd /tmp/flash-attention && GPU_ARCHS="gfx1032;gfx1150" python setup.py install) \
&& (cd /tmp/flash-attention && GPU_ARCHS="gfx1150;gfx1151" python setup.py install) \
|| echo "flash-attn build failed or unsupported on this GPU, continuing without it"; \
rm -rf /tmp/flash-attention; \
fi