fix: torchaudio 2.9.1 CPU allineato a torch (pyannote tirava 2.11 da PyPI, mismatch)
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user