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

session crashes for an unknown reason #260

Closed
federicoalegria opened this issue Oct 24, 2024 · 12 comments
Closed

session crashes for an unknown reason #260

federicoalegria opened this issue Oct 24, 2024 · 12 comments

Comments

@federicoalegria
Copy link

I'm running whisper-diarization on Google Colab (vanilla, no mods); before yesterday, the notebook ran like a charm but i keep getting this message about the session crashing for an unknown reason. Specifically, this happens during the "Transcriping audio using Whisper and realligning timestamps using Wav2Vec2" stage.

[NeMo W 2024-10-24 15:36:03 nemo_logging:349] /usr/local/lib/python3.10/dist-packages/pyannote/audio/utils/reproducibility.py:74: ReproducibilityWarning: TensorFloat-32 (TF32) has been disabled as it might lead to reproducibility issues and lower accuracy.
    It can be re-enabled by calling
       >>> import torch
       >>> torch.backends.cuda.matmul.allow_tf32 = True
       >>> torch.backends.cudnn.allow_tf32 = True
    See https://github.com/pyannote/pyannote-audio/issues/1370 for more details.
    
      warnings.warn(
@MahmoudAshraf97
Copy link
Owner

downgrade ctranslate2 to 4.4.0

@kirahman2
Copy link

@MahmoudAshraf97 Hey this didn't resolve the issue I'm running into. I saw this thread earlier and implemented it.

@federicoalegria
Copy link
Author

i followed the readme as suggested in #261 but got stuck:

model.bin: 100% 1.53G/1.53G [00:36<00:00, 42.1MB/s]
Unable to load any of {libcudnn_ops.so.9.1.0, libcudnn_ops.so.9.1, libcudnn_ops.so.9, libcudnn_ops.so}
Invalid handle. Cannot load symbol cudnnCreateTensorDescriptor

@MahmoudAshraf97
Copy link
Owner

Are you using colab? Uf you are using the provided notebook then it was updated to fix this issue, if not then what is your torch and ctranslate2 versions?

@federicoalegria
Copy link
Author

yeah, i'm using colab, thanks a lot!

@zshawver
Copy link

@MahmoudAshraf97 I have also had "This kernel died..." on my first attempt to run the python code from README after following all the installation steps. The script crashed during the step to transcribe the audio. I applied the fix that you recommended in this thread

downgrade ctranslate2 to 4.4.0

At that point, I got this error in python:

RuntimeError: Library cublas64_12.dll is not found or cannot be loaded

On this thread for faster-whisper, I saw the solution to downgrade the faster-whisper version, at which point I got this error in cmd:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
whisperx 3.1.1 requires faster-whisper==1.0.0, but you have faster-whisper 0.10.1 which is incompatible.

And this error in python:
TypeError: TranscriptionOptions.new() got an unexpected keyword argument 'max_new_tokens'

I feel like at this point I'm chasing my tail toward a dead-end.

@MahmoudAshraf97
Copy link
Owner

Your problem is not related to faster whisper, but I see that you are probably using an older version if this repo so pull the latest version and the solve the cuda incompatibility with ctranslate2
If it can't find a certain library, make sure that you install it and if it's installed make sure you can find it in PATH

@zshawver
Copy link

zshawver commented Nov 13, 2024 via email

@kirahman2
Copy link

kirahman2 commented Nov 13, 2024 via email

@zshawver
Copy link

zshawver commented Nov 13, 2024 via email

@kirahman2
Copy link

@zshawver Use my dockerfile at the bottom of this comment #259 (comment)
Ask chatgpt for steps on how to install this file.

@kirahman2
Copy link

@zshawver did that work for you?

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

4 participants