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

2 issues on macos / apple silicon #23

Open
gregsadetsky opened this issue Jan 19, 2024 · 1 comment
Open

2 issues on macos / apple silicon #23

gregsadetsky opened this issue Jan 19, 2024 · 1 comment

Comments

@gregsadetsky
Copy link

thanks a lot for this tool!!

I installed it by manually git cloning the repo, and running pip3 install .

the first error I received was:

TypeError: WhisperForConditionalGeneration.__init__() got an unexpected keyword argument 'attn_implementation'

I "fixed" it by removing model_kwargs={"attn_implementation": "sdpa"}, from this line in action.py

the next problem I encountered was AttributeError: module 'torch' has no attribute 'mps'

I "fixed" that one by commenting out these lines in the same file

and then everything worked and I was able to burn the subtitles into the video file! :-) woo

if it helps, I'm using Python 3.11.2 on macos 12.7

thanks again!

@dsymbol
Copy link
Owner

dsymbol commented Jan 22, 2024

Glad you're enjoying it, I don't have a Mac I'm going based off of https://github.com/Vaibhavs10/insanely-fast-whisper/blob/main/src/insanely_fast_whisper/cli.py#L102 I can't find the error you're experiencing anywhere in his repo. could you try his implementation and let me know how it goes?

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

2 participants