Update Dockerfile
Browse files- Dockerfile +7 -12
Dockerfile
CHANGED
|
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 10 |
python3-pip \
|
| 11 |
python3-dev \
|
| 12 |
git \
|
|
|
|
|
|
|
| 13 |
libsndfile1 \
|
| 14 |
ffmpeg \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
|
@@ -40,18 +42,11 @@ RUN pip install --no-cache-dir \
|
|
| 40 |
num2words \
|
| 41 |
peft
|
| 42 |
|
| 43 |
-
# Install
|
| 44 |
RUN pip install --no-cache-dir \
|
| 45 |
-
"
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
RUN pip install --no-cache-dir \
|
| 49 |
-
lhotse \
|
| 50 |
-
sentencepiece
|
| 51 |
-
|
| 52 |
-
# CUDA-accelerated TDT and RNN-T decoding
|
| 53 |
-
RUN pip install --no-cache-dir \
|
| 54 |
-
"cuda-python>=12.4"
|
| 55 |
|
| 56 |
# Force soundfile backend for datasets audio decoding (avoids torchcodec/FFmpeg issues)
|
| 57 |
ENV HF_AUDIO_DECODER_BACKEND=soundfile
|
|
@@ -63,6 +58,6 @@ COPY . /app
|
|
| 63 |
ENTRYPOINT ["bash"]
|
| 64 |
|
| 65 |
# Keep-alive CMD so the Space runtime stays healthy. HF Jobs and `docker run`
|
| 66 |
-
# override this with their own command (e.g. `
|
| 67 |
EXPOSE 7860
|
| 68 |
CMD ["-c", "python3 -m http.server 7860"]
|
|
|
|
| 10 |
python3-pip \
|
| 11 |
python3-dev \
|
| 12 |
git \
|
| 13 |
+
gcc \
|
| 14 |
+
g++ \
|
| 15 |
libsndfile1 \
|
| 16 |
ffmpeg \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 42 |
num2words \
|
| 43 |
peft
|
| 44 |
|
| 45 |
+
# Install Kyutai dependencies (moshi for STT model, julius for audio resampling)
|
| 46 |
RUN pip install --no-cache-dir \
|
| 47 |
+
"moshi>=0.2.6" \
|
| 48 |
+
julius \
|
| 49 |
+
soundfile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
# Force soundfile backend for datasets audio decoding (avoids torchcodec/FFmpeg issues)
|
| 52 |
ENV HF_AUDIO_DECODER_BACKEND=soundfile
|
|
|
|
| 58 |
ENTRYPOINT ["bash"]
|
| 59 |
|
| 60 |
# Keep-alive CMD so the Space runtime stays healthy. HF Jobs and `docker run`
|
| 61 |
+
# override this with their own command (e.g. `run_kyutai.sh`).
|
| 62 |
EXPOSE 7860
|
| 63 |
CMD ["-c", "python3 -m http.server 7860"]
|