fix: add accelerate package for transformers device_map support

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
tlg
2026-04-05 17:19:17 +02:00
parent f2f73d204c
commit d3285bad8a

View File

@@ -27,9 +27,10 @@ RUN pip install --no-cache-dir --break-system-packages \
"sentencepiece>=0.2.0" \
"protobuf>=5.0.0"
# Install transformers (doesn't touch torch)
# Install transformers + accelerate (needed for device_map)
RUN pip install --no-cache-dir --break-system-packages --no-build-isolation \
"transformers>=5.4.0"
"transformers>=5.4.0" \
"accelerate>=1.0.0"
# Install chatterbox-tts WITHOUT its dependencies (it would downgrade
# torch from 2.11 to 2.6 and pull gradio, librosa, etc.)