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 run this model in GPU #10

Open
Hasan-Mesbaul-Ali-Taher opened this issue Aug 6, 2023 · 2 comments
Open

How to run this model in GPU #10

Hasan-Mesbaul-Ali-Taher opened this issue Aug 6, 2023 · 2 comments

Comments

@Hasan-Mesbaul-Ali-Taher
Copy link

I am using this git in Colab and kaggle. But it always runs on CPU. I have tried many things but can not get it to run on GPU.

Can you give me solution on how to run it in GPU.

@MahirMahbub
Copy link
Owner

changing the requirements.txt will be enough to run the model on GPU as it is using torch as the backend of transformer. Can you please make a pull request so that I can merge it?

@Hasan-Mesbaul-Ali-Taher
Copy link
Author

I actually used the model without installing the libraries from the requirements.txt because I ran into some issues while trying to install them. But it still managed to run all the examples mentioned in the readme, including a few I came up with. So, if it's possible, could you maybe update the requirements.txt so the model can run on a GPU? That would be awesome!

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