Skip to main content
Version: 2.x

GPU Acceleration

The most resource-intensive part of Storyteller's forced alignment process is transcription, where Storyteller uses a local or hosted AI-powered transcription engine to transcribe the audiobook's contents. If you're running Storyteller's transcription locally with whisper.cpp, you can greatly speed up the transcription step by running it on a dedicated GPU, if you have one. Depending on your CPU and GPU, this can sometimes be a speedup of 10x or greater.

Image Tags

The image tag format is registry.gitlab.com/storyteller-platform/storyteller:<version>-<variant>.

Version is either latest or web-v<version> (eg web-v2.7.0). Variant is one of cuda-11.8.0, cuda-12.9.0, cuda-13.1.0, rocm, sycl, blas, or vulkan. If you don't specify a variant, the image defaults to CPU-only.

GPU acceleration is only available on x86 architecture. For arm64, use the CPU variant.

When running Storyteller on macOS, or if host Storyteller on a low resource machine but have a more powerful machine to offload transcription to, you likely want to use Storyteller's remote transcription feature.

Configuration

If you are using bind mounts and need Storyteller to write files as your host user, see the PUID/PGID setup in self-hosting. For GPU access, keep the default container user flow and do not set user: in Compose.

Choose the CUDA version that matches your NVIDIA driver (check with nvidia-smi): cuda-13.1.0 for CUDA 13.1+, cuda-12.9.0 for CUDA 12.x, or cuda-11.8.0 for CUDA 11.x.

note

You likely want to use cuda-12.9.0 if you are on cuda-13.0.x and/or are using an RTX 10 series GPU or older.

You must install the NVIDIA Container Toolkit and configure docker.

compose.yml
services:
web:
image: registry.gitlab.com/storyteller-platform/storyteller:latest-cuda-13.1.0
runtime: nvidia
volumes:
- ~/Documents/Storyteller:/data:rw
environment:
- STORYTELLER_SECRET_KEY_FILE=/run/secrets/secret_key
ports:
- "8001:8001"
secrets:
- secret_key
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]

secrets:
secret_key:
file: ./STORYTELLER_SECRET_KEY.txt