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

use GPU for #3

Open
red-fly opened this issue Apr 26, 2021 · 3 comments
Open

use GPU for #3

red-fly opened this issue Apr 26, 2021 · 3 comments

Comments

@red-fly
Copy link

red-fly commented Apr 26, 2021

No description provided.

@red-fly
Copy link
Author

red-fly commented Apr 26, 2021

If I want to use the GPU for computing, what should I do?

@pariajm
Copy link
Owner

pariajm commented May 2, 2021

If I want to use the GPU for computing, what should I do?

You don't need to do anything! The code already checks for the availability of GPUs! If it finds any, it will automatically use GPUs. If you want to run the code on a specific GPU, assign the id by using CUDA_VISIBLE_DEIVCES=0,1 python main.py ...

@red-fly
Copy link
Author

red-fly commented May 3, 2021

thanks very much!Does it take about 10 seconds to parse a sentence?

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