Skip to content

Commit a2b4be2

Browse files
committed
Reduce size of docker image for DeepSpeech 3
Signed-off-by: Beat Buesser <[email protected]>
1 parent a19f49a commit a2b4be2

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.github/actions/deepspeech-v3/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pod# Get base from a pytorch image
2-
FROM pytorch/pytorch:2.1.1-cuda12.1-cudnn8-runtime
1+
# Get base from a pytorch image
2+
FROM python:3.10.13-slim-bullseye
33

44
# Set to install things in non-interactive mode
55
ENV DEBIAN_FRONTEND noninteractive
@@ -26,10 +26,10 @@ RUN apt-get update \
2626
RUN pip install --ignore-installed PyYAML torch==2.1.1 tensorflow==2.14.1 torchaudio==2.1.1 pytorch-lightning==2.1.2 scikit-learn==1.3.2
2727
RUN pip install --no-build-isolation fairscale==0.4.13
2828

29-
RUN git clone https://github.com/SeanNaren/deepspeech.pytorch.git
30-
RUN cd deepspeech.pytorch && sed -i '/^sklearn/d' requirements.txt && pip install -r requirements.txt && pip install -e .
29+
RUN git clone https://github.com/SeanNaren/deepspeech.pytorch.git && cd deepspeech.pytorch && sed -i '/^sklearn/d' requirements.txt && pip install -r requirements.txt && pip install -e .
3130

3231
RUN pip install numba==0.56.4 pytest-cov==4.1.0 pydub==0.25.1
33-
RUN pip list
3432

3533
RUN mkdir -p /root/.art/data && cd /root/.art/data && curl -LJO "https://github.com/SeanNaren/deepspeech.pytorch/releases/download/V3.0/librispeech_pretrained_v3.ckpt"
34+
35+
CMD ["/bin/bash"]

tests/estimators/speech_recognition/test_pytorch_deep_speech.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -241,26 +241,26 @@
241241
1611.2112
242242
],
243243
"v3": [
244-
-524.2962,
245-
-260.02936,
246-
578.2185,
247-
-158.79018,
248-
-37.202496,
249-
-311.07156,
250-
-3.984712,
251-
166.36012,
252-
-15.264099,
253-
199.08426,
254-
72.971436,
255-
175.62677,
256-
-404.36395,
257-
-171.99176,
258-
370.83533,
259-
-220.93425,
260-
-1.2995263,
261-
146.4521,
262-
-381.7052,
263-
-69.52321
244+
-320.31787,
245+
458.37903,
246+
166.74754,
247+
-60.69311,
248+
-110.62456,
249+
-219.13577,
250+
73.11543,
251+
-242.01416,
252+
133.31516,
253+
112.652115,
254+
60.64424,
255+
-216.93463,
256+
92.05547,
257+
89.600334,
258+
-168.58362,
259+
3.0452464,
260+
144.53711,
261+
299.63873,
262+
124.885254,
263+
56.88322
264264
]
265265
}
266266
},

0 commit comments

Comments
 (0)