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

bark.cpp is not using gpu #181

Open
sasatte opened this issue Jun 10, 2024 · 5 comments
Open

bark.cpp is not using gpu #181

sasatte opened this issue Jun 10, 2024 · 5 comments

Comments

@sasatte
Copy link

sasatte commented Jun 10, 2024

inspite of turning on GGML_CUBLAS it is not using gpu. When running bark, it still says using CPU backend. How to force it to use gpu? there is no --cuda option.

@mfrederico
Copy link

I was wondering the same - but found this in the issues: #165

@soarek94
Copy link

soarek94 commented Aug 6, 2024

have you checked the number of n_gpu_layers? for me, that's where the problem is coming from cause if the number of the gpu layers is not greater than 0, it will run on CPU

@axelatsiemens
Copy link

Same issue, in the bark_context n_gpu_layers is default initialized to 0, but then neither main nor server offer to possibility to set it. What should it be? does it need to be calculated form the model?

@newpolygons
Copy link

Im just getting here. So im assuming the Metal support check box in the readme just isnt true? Has anyone been able to implement the feature themselves or will I have to do more digging.

@vinovo
Copy link
Contributor

vinovo commented Nov 4, 2024

@PABannier I see that n_gpu_layers is configurable only via examples, but if we want to build bark as a dynamic library, n_gpu_layers is not exposed via bark.h

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

6 participants