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

How to activate flash attention? #161

Open
pooya-mohammadi opened this issue Jan 15, 2024 · 2 comments
Open

How to activate flash attention? #161

pooya-mohammadi opened this issue Jan 15, 2024 · 2 comments
Labels
wontfix This will not be worked on

Comments

@pooya-mohammadi
Copy link

No description provided.

@Jeronymous
Copy link
Member

That is a question for openai-whisper (whisper-timestamped being a wrapper around it).
https://github.com/openai/whisper/discussions?discussions_q=flash+

I know flash attention is implemented in transformers.
So maybe what should be done is to be able to use either openai-whisper or transformers backend in whisper-timestamped...
But that sounds like a big project.

@Jeronymous
Copy link
Member

I added (HuggingFace) transformers backend in whisper-timestamped.
Unfortunately, this does not unlock the use of flash attention, because when enabling flash attention in transformers, there is no more possibility of accessing attention weights (and this is require to guess timestamps).
Also, I did not notice any speedup by using HF transformers instead of openai-whisper implementation.

@Jeronymous Jeronymous added the wontfix This will not be worked on label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants