fix: torchaudio 2.9.1 CPU allineato a torch (pyannote tirava 2.11 da PyPI, mismatch)

This commit is contained in:
enne2
2026-08-13 22:36:37 +02:00
parent 2b9442f33e
commit 87bcbd49b0
+4 -2
View File
@@ -42,8 +42,10 @@ RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \
WORKDIR /app
COPY --from=build-vulkan /build/whisper.cpp/build/bin/whisper-cli /build/whisper.cpp/build/bin/*.so* ./
# torch CPU (niente CUDA) prima di requirements, per evitare il wheel CUDA
RUN pip install --no-cache-dir torch==2.9.1 --index-url https://download.pytorch.org/whl/cpu
# torch + torchaudio CPU (niente CUDA) prima di requirements, per evitare il
# wheel CUDA e il mismatch torchaudio (pyannote tira su torchaudio da PyPI
# standard, che richiede una versione di torch diversa)
RUN pip install --no-cache-dir torch==2.9.1 torchaudio==2.9.1 --index-url https://download.pytorch.org/whl/cpu
COPY requirements.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt