From 9f7a043d8b06d5be91886b19bfc15427cfe83586 Mon Sep 17 00:00:00 2001 From: Aaron Boxer Date: Sun, 14 Jun 2026 20:06:45 -0400 Subject: [PATCH] ctranslate2: add missing libcublas dep --- setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.py b/setup.py index 6cb6c9c..961382d 100644 --- a/setup.py +++ b/setup.py @@ -70,6 +70,15 @@ setup( "fastapi", "uvicorn", "python-multipart", + # CTranslate2 (faster-whisper's backend) is hard-linked against + # libcublas.so.12 / libcudnn.so.9 but doesn't declare the matching + # wheels as runtime deps. torch >=2.12 also dropped the cu12 + # wheels in favor of cu13, so users no longer get cu12 transitively. + # Without these wheels GPU inference dies at first transcription: + # ERROR: Library libcublas.so.12 is not found or cannot be loaded + # Skip only for CPU-only inference. + "nvidia-cublas-cu12; sys_platform == 'linux'", + "nvidia-cudnn-cu12; sys_platform == 'linux'", ], python_requires=">=3.9" )