Skip to content

Commit 440c2ba

Browse files
authored
Merge pull request #1 from agitter/main
Make CUDA optional for PLL
2 parents f76309e + 57cd94b commit 440c2ba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Here `{NAME}` is the name of the protein. Most of the time it is the name you pr
8080

8181
## Computing ESM PLL
8282

83-
The ESM PLL metric can be computed with a separate script. This assumes that your machine has a GPU.
83+
The ESM PLL metric can be computed with a separate script. This will use a GPU if your machine has one.
8484

8585
```bash
8686
python compute_pll.py {BINDER_SEQUENCE}

compute_pll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import esm
66
import click
77

8-
device = torch.device("cuda")
8+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
99

1010
model, alphabet = esm.pretrained.esm2_t33_650M_UR50D()
1111
batch_converter = alphabet.get_batch_converter()

0 commit comments

Comments
 (0)