deepmodeling / deepmodeling/Uni-Mol

unimol_tools do not make use of gpu when infer

Open
#212 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
181
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/dptech-corp/Uni-Mol/blob/c458c0fae2318b6bf49fed51f56fdc8d4b7003e1/unimol_tools/unimol_tools/predictor.py#L90).

Should be changed like this:
```python
self.trainer = Trainer(task='repr', cuda=self.device)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.