-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
segmentation fault in 'generate_with_fallback' when temperature != 0 #223
Comments
Thanks for the info. Is it possible to save and share the audio array causing the issue? You could use |
Hi @guillaumekln , I did exactly that (used soundfile to export the exact same chunks to a wav file), but ... I still can't reproduce the error. The only conclusion I can draw from this is that there must be a conflict with my STT server that happens only on x86 CPU though and only when temperature is not 0 🤷♂️😵💫. Btw I previously mentioned Windows, but actually it is Debian Linux via WSL2. |
I was able to reproduce the same error on a Fedora Linux system with x86 CPU. So to sum this up:
|
Same error appears on my system: ubuntu on Windows WSL2 |
Hi @guillaumekln ,
I've mentioned this bug here for the first time: #71 (comment)
A short summary:
Whisper (faster-whisper) is running on my Windows x86 CPU inside my SEPIA STT Server test environment in a "streaming" mode where I basically feed chunks of audio (numpy float32 arrays) to
WhisperModel.transcribe
every time the VAD system detected a reasonable speech sequence.When I set
temperature=0
everything is stable, but when I leave temperature at its default value I get asegmentation fault
error pretty reliable by making for example a coughing sound. For normal speech input it works fine.The same error does not appear on my Linux Aarch64 system.
Unfortunately any attempt to reproduce the error with pre-recorded audio did not work so far.
Some further investigation shows that the error happens inside
generate_with_fallback
while iterating the temperature values and using self.model.generate (ctranslate2.models.Whisper).The exact sequence is:
final_temperature = 0.0
tokens = [50364, 4064, 0, 50414]
(example)final_temperature = 0.2
segmentation fault
If it crashes (with the right "cough" sound), it always crashes after
final_temperature = 0.2
.The parameters at this step are:
This is as far as I could follow the error. The rest is happening in CTranslate2 C code I think.
Hope that helps to understand the issue 🤔 .
Cu,
Florian
The text was updated successfully, but these errors were encountered: