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

amd and/or apple metal/mps acceleration #515

Closed
BBC-Esq opened this issue Oct 15, 2023 · 7 comments
Closed

amd and/or apple metal/mps acceleration #515

BBC-Esq opened this issue Oct 15, 2023 · 7 comments

Comments

@BBC-Esq
Copy link
Contributor

BBC-Esq commented Oct 15, 2023

Does faster-whisper support either AMD or metal/mps acceleration out of the box? I noticed on the ctranslate2 instruction page it states that it can be built with Apple's Acceleration, but faster-whisper is a separate repository and so it's not clear from the readme whether faster-whisper supports apple's metal/mps and/or "Accelerate?" I'm presuming from the ctranslate2 instructions that faster-whisper also doesn't support AMD GPU acceleration?

Editing this response to also ask about oneDNN, Openblas, and Ruy, which are all indicated as "off" in the instructions to compile Ctranslate2, but not mentioned on the faster-whisper respository.

Thanks!

@phineas-pta
Copy link

"off" is default value but u can change to your need when compiling

@BBC-Esq
Copy link
Contributor Author

BBC-Esq commented Oct 16, 2023

"off" pertains to which of my multiple questions??

@BBC-Esq
Copy link
Contributor Author

BBC-Esq commented Oct 16, 2023

I might be misunderstanding, but...The only instructions I'm aware of regarding "compiling" pertain to Ctranslate2, not faster-whisper. If I use pip install faster-whisper does it come with the certain backends enabled or not? Faster-whisper uses Ctranslate2, but it is itself a separate library. So my questions are whether faster-whisper has the backends enabled, and if not, how can i enable them?

@phineas-pta
Copy link

default backend is here https://opennmt.net/CTranslate2/hardware_support.html

to enable certain backend u compile ctranslate2 from source before install faster-whisper

@BBC-Esq
Copy link
Contributor Author

BBC-Esq commented Oct 16, 2023

Thank you! That answers my questions. Now, faster-whisper automatically installs ctranslate2 as part of its dependencies in requirements.txt. Do I need to modify installation requirements.txt to NOT install ctranslate2 since I already compiled it manually? In other words, I don't want my pip install faster-whisper to accidentally override my manually-compiled version of ctranslate2?

@phineas-pta
Copy link

if u already got latest ctranslate2 compiled and installed as python package then no overwrite to worry about

@BBC-Esq
Copy link
Contributor Author

BBC-Esq commented Oct 16, 2023

Thanks again sir! Will close this issue out.

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