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

unimol_tools do not make use of gpu when infer #212

Open
PoloWitty opened this issue Apr 12, 2024 · 1 comment
Open

unimol_tools do not make use of gpu when infer #212

PoloWitty opened this issue Apr 12, 2024 · 1 comment

Comments

@PoloWitty
Copy link

The code implemented in unimol_tools did not pass the cuda variable to Trainer, so the gpu won't be used.

The related code is here.

Should be changed like this:

self.trainer = Trainer(task='repr', cuda=self.device)
@emotionor
Copy link
Contributor

Thank you for bringing this issue to our attention and for providing a solution.

Your contribution is greatly appreciated.

We will review the fix and incorporate it if appropriate. Thanks again for your help!

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