-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Description
Hi Miguel and Jesus,
great lectures and repo!!!
I looked at this:
# Pre-download the Faster Whisper model during build
# This uses huggingface-cli which is included in the base image
RUN echo "Downloading model: ${FASTER_WHISPER_MODEL}" && \
huggingface-cli download ${FASTER_WHISPER_MODEL} --local-dir-use-symlinks False && \
echo "✓ Model downloaded successfully!"in
| huggingface-cli download ${FASTER_WHISPER_MODEL} --local-dir-use-symlinks False && \ |
and thought that this downloaded model would get lost if the container is rebuilt.
Should we add a build-time caching instruction here (via RUN ----mount=type=cache,target=....) or alternatively download the model when the container first starts via an ENTRYPOINT ["entrypoint.sh"] script in the container, mapping the download directory to a local volume via docker-compose.yaml at run-time?
I'm happy to provide a PR.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels