Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python process crashes on exit under Windows with CUDA #1782

Open
TechInterMezzo opened this issue Sep 17, 2024 · 2 comments
Open

Python process crashes on exit under Windows with CUDA #1782

TechInterMezzo opened this issue Sep 17, 2024 · 2 comments

Comments

@TechInterMezzo
Copy link

I am using Windows 10 with CUDA 11.8, Python 3.10 and ctranslate2 4.4.0.
The problem already seems to reported in the faster-whisper repo but I also have it when I directly use ctranslate2:
SYSTRAN/faster-whisper#71

The python process crashes after executing this code:

import ctranslate2
model = ctranslate2.models.Whisper("openai/whisper-tiny", device="cuda")

It is not the the code itself that crashes the process but I guess some kind of internal routine on process exit that is necessary for CUDA.

@minhthuc2502
Copy link
Collaborator

Try with CUDA 12.x . Ctranslate2 is compatible with cuda 12

@nebehr
Copy link

nebehr commented Nov 7, 2024

I do not use ctranslate2 directly, but I do use faster-whisper with CUDA 12.5, and the issue is reproducible almost always unless it's with very short audio/video files. It does not necessarily mean that file size is the culprit, it's just that with smaller inputs it sometimes does complete without a crash, but with any decent-sized one it always crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants