HUB
Sign inSign up
whisper-cpp logo

swaleio/whisper-cpp

By swaleio

•Updated 3 days ago

whisper.cpp speech-to-text with CUDA and CPU backends for Swale tasks. Backs the whisper-cpp task.

Image
0

181

swaleio/whisper-cpp repository overview

⁠whisper-cpp

Swale-built image backing the whisper-cpp task definition. It compiles a release of whisper.cpp⁠, the C/C++ implementation of OpenAI's Whisper speech recognition, so a workflow can transcribe audio on a GPU or a CPU compute type. whisper.cpp's own registry publishes images only under moving tags, none of which names a release.

  • Base: NVIDIA's CUDA 13.0 runtime image (nvidia/cuda, Ubuntu 24.04); the build stage compiles on the matching CUDA development image
  • Installed: whisper-cli and whisper.cpp's other tools in /opt/whisper.cpp/bin, on PATH; no model
  • Backends: CUDA for the A100 and H100 and the consumer GPUs between them, and CPU builds for each x86-64 instruction set. They load at start, so the image uses the GPU when there is one and the best CPU build otherwise.
  • User: non-root swale (uid 1000)
  • WORKDIR /mnt/workspace, no ENTRYPOINT (the CUDA base's banner entrypoint is reset)

⁠Invocation

The image declares no entrypoint, so a task definition's exec.args are the full command line: ["whisper-cli", "--model", "<model.bin>", "--file", "<audio>", ...]. whisper-cli reads WAV, MP3 and FLAC.

Models are files in whisper.cpp's format, such as those in ggerganov/whisper.cpp⁠ on the Hugging Face Hub; the image carries none.

⁠Tags

Each tag is the whisper.cpp release the image packages, such as 1.9.6. A rebuild that keeps that version, to pick up a fixed base image or wrapper, adds -r1, -r2, and so on. A tag is never reused; latest follows the newest publish.

⁠Building

From the repository root:

docker build -t swaleio/whisper-cpp:dev images/whisper-cpp

Compiling the CUDA backend takes several minutes. Merging a change under images/whisper-cpp publishes the image under its next tag; task definitions reference it by digest.


Built from images/whisper-cpp⁠ in the swaleio/task-definitions⁠ repository. For how a task definition references an image, see the task definition reference⁠ in the Swale documentation⁠.

The Dockerfile is covered by the MIT License⁠. whisper.cpp is MIT-licensed; its license ships inside the image at /opt/whisper.cpp/LICENSE.

This image also contains software from other projects, each under its own license. The license texts its Ubuntu packages ship are inside the image, in /usr/share/doc/<package>/copyright. Source code for its GPL and LGPL components: https://launchpad.net/ubuntu/+source/<source-package>/<version>. We also provide that source code on request: see Third-party software⁠.

It also contains NVIDIA software, which is not open source. NVIDIA licenses it under the NVIDIA Deep Learning Container License⁠, which you accept by pulling or using this image; a copy is at /NGC-DL-CONTAINER-LICENSE.

Tag summary
Recent tags
Content type
Image
Digest
sha256:43debd7c9…
Size
1.7 GB
Last updated
3 days ago
docker pull swaleio/whisper-cpp:latest