jim60105/docker-whisperX: WhisperX in a Prebuilt GPU Image
Dockerfile for WhisperX: Automatic Speech Recognition with Word-Level Timestamps and Speaker Diarization (Dockerfile, CI image build and test)
At a glance
- What is it?
- A community Docker packaging of WhisperX that ships 175 model-language image tags, including a distilled English model and a Taiwanese Hokkien model. The trade-off is that you inherit someone else's weekly build schedule and a very large pull.
- Who is it for?
- Adopt it if you want WhisperX transcription with word-level timestamps and speaker diarization without assembling CUDA, cuDNN, faster-whisper and wav2vec2 alignment models yourself, and if a GPU host plus a multi-gigabyte pull is acceptable.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 4 days ago.
- What is it written in?
- Mainly Dockerfile, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- jim60105/docker-whisperX459 ★ · +4
| Repository | 2026-09-21 | 2026-11-25 |
|---|---|---|
| jim60105/docker-whisperX | 455 | 459 |
4 Stars in the last 65 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
What problem the WhisperX Docker image removes
WhisperX is an automatic speech recognition project that adds word-level timestamps and speaker diarization on top of Whisper-style transcription. Running it from source means resolving a Python environment, a CUDA-capable PyTorch build, faster-whisper, a wav2vec2 alignment model per language, and a diarization pipeline that downloads its own weights. That is a stack where a single version mismatch shows up as a runtime error minutes into a transcription job.
This repository is a Dockerfile plus a CI workflow that turns that stack into pullable images. The README describes the objective plainly: manage a continuous integration build on the GitHub Free runner on a weekly basis, covering 175 Docker images built in parallel, each around 10GB. The audience is therefore anyone who wants WhisperX as a command-line tool behind a container boundary: batch transcription jobs, subtitle generation, research pipelines, and people who already have an NVIDIA GPU and a container runtime but do not want to own the Python dependency graph.
It is not the WhisperX project itself. The README states the WhisperX code base in these images aligns with the git submodule commit hash, and that a scheduled CI workflow runs weekly to target the upstream main branch and rebuild all images. You are consuming a repackaging, with the maintenance cadence that implies.
How the image tags encode model and language
The tag format is `WHISPER_MODEL`-`LANG`, so `tiny-en`, `base-de` and `large-v3-zh` are valid names. The language half is not cosmetic. It selects which alignment model gets baked into the image, and the Dockerfile exposes that as the `LANG` build argument, defaulting to `en`, with the supported list in `load_align_model.py`.
The `WHISPER_MODEL` build argument defaults to `base` and feeds the transcription model download. Because both dimensions are baked at build time rather than resolved at run time, an image tagged for a language carries the alignment weights for that language and nothing else. The README addresses the obvious consequence: if multiple language alignments are needed, mount a shared cache directory instead of pulling one image per language.
The `no_model` tag, also published as `latest`, carries no pre-downloaded models. The README calls this the tag to use when you want to share alignment models between containers, and the example passes `--model large-v3 --language en` on the command line so the model is fetched at run time into the mounted cache. That is the flexible option and the slow first run. The README also notes that the `*.en`, `large-v1` and `large-v2` models were excluded as not frequently used, which is a judgement call by the maintainer rather than a technical constraint; if you need one of them, the README points you at building it yourself.
Installing the image and running a first transcription
There is no package to install. You pull from ghcr.io. The prerequisite is a working GPU passthrough: on Windows the README asks for Docker Desktop, the CUDA Toolkit, an NVIDIA Windows driver and WSL2; on Linux and macOS it asks for an NVIDIA GPU driver plus the NVIDIA Container Toolkit, with links to the vendor guides. The README also links a blog post about Podman GPU configuration on Fedora and RHEL, which matters if you are not using Docker.
The README gives three run commands. The first uses the `base-en` tag and writes an SRT file into the current directory, which is mounted at `/app`:
docker run --gpus all -it -v ".:/app" ghcr.io/jim60105/whisperx:base-en -- --output_format srt audio.mp3The second swaps in the `large-v3-ja` tag for Japanese. The third uses `no_model` and names the model and language explicitly, which is the pattern to copy when you want control over what gets downloaded:
docker run --gpus all -it -v ".:/app" ghcr.io/jim60105/whisperx:no_model -- --model tiny --language en --output_format srt audio.mp3Expect the container to start, load the model, and write `audio.srt` next to your input file. On a `no_model` tag the first run is slower because weights are fetched into the container's cache; the README's cache example mounts a named volume at `/.cache` so that download survives the container:
docker run --gpus all -it -v ".:/app" -v whisper_cache:/.cache ghcr.io/jim60105/whisperx:latest -- --model large-v3 --language en --output_format srt audio.mp3The double dash before the WhisperX arguments separates container arguments from the entrypoint's own arguments. Dropping it is the most common way to get an unexpected error on the first attempt.
Building your own tag when the published matrix does not cover you
The README is explicit that the published tags are a subset. To build the excluded models, or a language pairing not in the matrix, clone recursively so the WhisperX submodule comes along:
git clone --recursive https://github.com/jim60105/docker-whisperX.gitThen pass `LANG` and `WHISPER_MODEL` as build arguments. The Dockerfile declares both with defaults of `en` and `base`, and it also takes `UID`, `VERSION` and `RELEASE`. Two arguments, `LOAD_WHISPER_STAGE` and `NO_MODEL_STAGE`, exist for CI cache staging and the Dockerfile comment says to leave them as is when building locally. That comment is worth heeding: they participate in the layer cache scheme the project is built around, and changing them locally changes which stages get reused.
The build is heavy. The README states each image is around 10GB and that the CI builds 175 of them in parallel on a free runner, which is why the Dockerfile is written around layer reuse and cache read/write order rather than around a short build. If you build locally you are reproducing that weight on one machine, and the upstream WhisperX revision you get is whatever the submodule points at in your clone.
Where the packaged approach breaks down
The clearest limitation is documented by the maintainer rather than hidden. The `breeze-asr-26-zh` tag repackages a Taiwanese Hokkien model that outputs Mandarin Chinese characters, and the README warns that for genuine Taigi audio, phoneme-level alignment will not work because the bundled `zh` wav2vec2 alignment model is trained on Mandarin phonology. The instruction is to pass `--no_align`. In other words, on that tag you lose the word-level timestamp feature that is one of the reasons to use WhisperX in the first place. That is a real functional boundary, not a rough edge.
Second, the freshness model is weekly and upstream-tracking. The README says the scheduled workflow targets the upstream main branch. If you need reproducibility against a specific WhisperX commit, this packaging works against you: the image for a given tag can move as the submodule advances. The Dockerfile's `VERSION` and `RELEASE` arguments exist and are set to `EDGE` and `0` by default, but the README does not document how to pin a specific upstream revision through them.
Third, the size and the GPU requirement are not negotiable. There is no CPU-only variant documented, and a 10GB image per model-language pair is a poor fit for constrained CI runners or laptops. If your workload is occasional transcription on a CPU machine, the pip install path from the upstream WhisperX project is the smaller commitment. The README also does not document rollback to a previous image build, so if a weekly rebuild regresses you will be choosing between waiting and building your own tag.
How this differs from installing WhisperX with pip
The upstream WhisperX repository is a Python package you install into an environment you control. That gives you a pinned version, a virtual environment you can inspect, and no container runtime in the loop. The cost is that you own the CUDA and PyTorch compatibility question, and you own the alignment and diarization model downloads.
This project inverts that. The environment is fixed at build time by the Dockerfile, which starts from `python:3.13-slim` and installs the NVIDIA library dependencies, including `libnppicc12` from the non-free components of the Debian sources. The models are baked in for the tags that carry a model. You get a single artifact to pull and run, and you give up the ability to upgrade one Python package independently of the image.
The practical difference shows up in failure modes. With pip, a broken CUDA match is an error you debug in your environment. With this image, a broken GPU passthrough is an error in your host configuration, and the README's instructions for Windows and Linux are aimed squarely at that layer. The README also records a specific quirk: when downloading the diarization model with an auth token, the `TORCH_HOME` environment variable is not respected, so `CACHE_HOME` is set to the same path as the default, with a link to the issue. That is the kind of detail you would otherwise rediscover yourself, and it is the strongest argument for using someone else's packaging here.
Licence and maintenance cost
The repository is MIT licensed, and the LICENSE file is at the top level. MIT covers the Dockerfile and the CI workflow in this repository. It does not relicense WhisperX itself, the Whisper model weights, the alignment models, or the diarization pipeline, each of which carries its own terms from its own publisher. The README names the upstreams: m-bain/whisperX, Systran's faster-whisper models, HuggingFace's distil-whisper, and MediaTek Research's Breeze-ASR-26 with a re-packaging by paulpengtw. If you are shipping transcriptions commercially, check the terms of the specific model tag you pull, not just this repository's MIT file. That is a licensing question for your own counsel, not something the README settles.
The upgrade cost is the pull. The last push to the repository was on 2026-08-15, and the README describes a weekly rebuild schedule, so the images move on their own cadence whether or not you are watching. Nothing in the README describes a stable channel or a long-term tag, so a deployment that pins a tag is pinning a name that gets rebuilt. The `no_model` tag is the exception worth noting: because it carries no weights, its content changes only when the underlying environment changes, which makes it the more predictable target if you can tolerate a first-run download.
Editorial conclusion
Adopt it if you want WhisperX transcription with word-level timestamps and speaker diarization without assembling CUDA, cuDNN, faster-whisper and wav2vec2 alignment models yourself, and if a GPU host plus a multi-gigabyte pull is acceptable. Do not adopt it if you need CPU-only transcription, a pinned upstream commit you control, or the excluded models such as large-v2 and the *.en variants; build from the Dockerfile with --build-arg WHISPER_MODEL and --build-arg LANG instead. Before relying on it, verify that your Docker runtime actually exposes the GPU to the container, and check the ghcr.io tag list for the model-language pair you need.
Frequently asked questions
What does WhisperX do?
WhisperX is an automatic speech recognition project that produces transcriptions with word-level timestamps and speaker diarization. This repository packages it as Docker images rather than changing what it does.
What are the key differences between Whisper and WhisperX?
The README describes WhisperX as adding word-level timestamps and speaker diarization on top of Whisper-style transcription, and the images bundle a wav2vec2 alignment model per language to produce that alignment. It does not offer a line-by-line comparison of the two projects.
Should I use Docker Build or BuildX?
The Dockerfile begins with the syntax directive for the Dockerfile frontend and relies on cache mounts and multi-architecture build arguments, and the README states the CI builds 175 images in parallel across architectures. That points to BuildX for reproducing the project's own builds; the README does not spell out the choice.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/jim60105-docker-whisperx)Star history chart for your README
[](https://hysenlabs.com/projects/jim60105-docker-whisperx)Was this useful?