feat(media): run Storyteller whisper on the P100 (CUDA 12.9 image)

Switch storyteller to the amd64-cuda-12.9.0 image with the P100 via CDI.
Tested on a 2-min clip: 3.9 s on GPU vs 25 s on the CPU build. The whisper
build lacks sm_60 kernels, so persist the PTX JIT cache under /data.
CUDA images are SHA-tagged only, so pin the tag and exclude from Watchtower.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ginnoirandClaude Opus 5.5 committed 2026-10-18 19:39:31 -05:00
1 parent f51cc9c7e8
commit 17743dfdcf
2 files changed
+15 -11

No files matched your search

+1 -1
View File
@@ -65,5 +65,5 @@ sudo chown -R 1000:1000 /config/chaptarr /config/calibre-web-automated /config/a
## Notes ## Notes
- `STORYTELLER_SECRET_KEY` is in `stack.env` (`secrets.token_hex(64)`). If you rotate it, every Storyteller session is logged out. - `STORYTELLER_SECRET_KEY` is in `stack.env` (`secrets.token_hex(64)`). If you rotate it, every Storyteller session is logged out.
- GPU: the `deploy:` block for the P100s is commented out in compose. When you turn it on, check upstream's GPU Acceleration docs for the CUDA image tag. - GPU: Storyteller runs the CUDA 12.9 image on the P100 (`nvidia.com/gpu=0`, CDI). Upstream only tags CUDA images by commit SHA, so the tag is pinned and Watchtower is off. To bump it, pick a newer SHA from the registry's `amd64-cuda-12.9.0` repository. Don't use the CUDA 13.x images: they drop Pascal. The whisper build has no sm_60 kernels, so the first GPU run JIT-compiles PTX (~60 s). `CUDA_CACHE_PATH=/data/.nv-compute-cache` keeps that cache across restarts.
- Chaptarr is young and runs on `:latest` with Watchtower. If an update breaks it, pin a tag and add `com.centurylabs.watchtower.enable=false`. - Chaptarr is young and runs on `:latest` with Watchtower. If an update breaks it, pin a tag and add `com.centurylabs.watchtower.enable=false`.
+14 -10
View File
@@ -289,26 +289,30 @@ services:
storyteller: storyteller:
container_name: storyteller container_name: storyteller
image: registry.gitlab.com/storyteller-platform/storyteller:latest # CUDA 12.9 build so whisper runs on the P100 (~6x the CPU build). CUDA 13.x
# images drop Pascal. Upstream publishes CUDA images only as commit-SHA tags
# (no :latest), so this is pinned and out of Watchtower; bump the tag by hand
# from the registry's amd64-cuda-12.9.0 repository.
image: registry.gitlab.com/storyteller-platform/storyteller/amd64-cuda-12.9.0:67260c54
restart: unless-stopped restart: unless-stopped
labels:
- "com.centurylabs.watchtower.enable=false"
networks: [media, edge] networks: [media, edge]
env_file: env_file:
- stack.env # STORYTELLER_SECRET_KEY lives here - stack.env # STORYTELLER_SECRET_KEY lives here
devices:
- nvidia.com/gpu=0
environment:
# The whisper build has no sm_60 kernels, so the P100 JIT-compiles PTX on
# first use (~60 s). Persist the JIT cache so that only happens once.
- CUDA_CACHE_PATH=/data/.nv-compute-cache
- CUDA_CACHE_MAXSIZE=4294967296
volumes: volumes:
- /storage1/labdata/storyteller:/data - /storage1/labdata/storyteller:/data
- /storage1/Media/Books:/libraries/books:ro - /storage1/Media/Books:/libraries/books:ro
- /storage1/Media/Audiobooks:/libraries/audiobooks:ro - /storage1/Media/Audiobooks:/libraries/audiobooks:ro
ports: ports:
- "8001:8001" - "8001:8001"
# Whisper runs on CPU until the P100s land. Then add (and check upstream's
# GPU Acceleration docs for the CUDA image tag):
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
networks: networks:
media: media: