Skip to content

build(whisper): pin model source and revision, pin Python dependencies - #21

Merged
eksrha merged 1 commit into
mainfrom
fix/whisper-pin-model-source
Oct 4, 2026
Merged

eksrha merged 1 commit into
mainfrom
fix/whisper-pin-model-source

Conversation

@eksrha

@eksrha eksrha commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Closes #18

What

  • Model: snapshot_download(repo_id=dropbox-dash/faster-whisper-large-v3-turbo, revision=0a363e91...) instead of faster-whisper's download_model('large-v3-turbo'), which resolves to mobiuslabsgmbh/faster-whisper-large-v3-turbo and is redirected (HTTP 307) to the dropbox-dash repository. Systran/faster-whisper-large-v3-turbo answers HTTP 401. model.bin is verified against its SHA-256, so a changed source fails the build. Source, revision, hash and the update procedure are documented in the Containerfile and README. Model license: MIT.
  • Dependencies: new deploy/whisper/requirements.txt pins faster-whisper, av (16.x required, with reason), ctranslate2, huggingface_hub, numpy, onnxruntime, tokenizers, fastapi, uvicorn, python-multipart. Base image pinned by digest. Renovate ignores av.
  • ARG WHISPER_MODEL=large-v3-turbo stays untouched (the release workflow reads it).

Verified locally

Built with docker, started read-only with all capabilities dropped, /health ok, German test clip transcribed correctly, pinned versions confirmed in the image (av 16.1.0, faster-whisper 1.2.1). Image size 2.24 GB.

Download large-v3-turbo from the repository that actually serves it
(dropbox-dash/faster-whisper-large-v3-turbo, the target of the
faster-whisper alias redirect) at a fixed commit and verify model.bin
against its SHA-256. Pin all Python dependencies in requirements.txt, the
base image by digest, and keep Renovate away from av.

Closes #18
@eksrha
eksrha force-pushed the fix/whisper-pin-model-source branch from 0165ce1 to a6d30c3 Compare October 4, 2026 20:11
@eksrha
eksrha merged commit 957af09 into main Oct 4, 2026
3 checks passed
@eksrha
eksrha deleted the fix/whisper-pin-model-source branch October 4, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Containerfile.whisper: Modellquelle und Abhängigkeits-Pins prüfen

1 participant