Skip to content

How to make the Separator use the CPU while the GPU can be used #180

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

Open
RDGR8 opened this issue Jan 22, 2025 · 3 comments
Open

How to make the Separator use the CPU while the GPU can be used #180

RDGR8 opened this issue Jan 22, 2025 · 3 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@RDGR8
Copy link

RDGR8 commented Jan 22, 2025

I want give the user the choice to use the CPU or the GPU, how could I do that? Is there an argument for that?

@DJVova
Copy link

DJVova commented Feb 3, 2025

I have a similar question. I have several GPUs in my system. How can I select the necessary GPU for processing?

@Lixi20
Copy link
Contributor

Lixi20 commented Feb 8, 2025

if you want use GPU: pip install "audio-separator[gpu]"
if you want use CPU: pip install "audio-separator[cpu]"

audio-separator[gpu] uses GPU by default

@beveradb
Copy link
Collaborator

There isn't currently a parameter to control this, it always tries to use GPU acceleration if available as it's assumed that will be faster.
I don't really understand the use case for not using the GPU if there's one available, but feel free to raise a PR adding a parameter to disable GPU if you want.

@beveradb beveradb added enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on and removed help wanted Extra attention is needed labels Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants