Jingjing Zhai
commited on
Commit
•
35fa607
1
Parent(s):
f3a7ed0
Update README
Browse files
README.md
CHANGED
@@ -14,6 +14,7 @@ PlantCaduceus is a DNA language model pre-trained on 16 Angiosperm genomes. Util
|
|
14 |
## How to use
|
15 |
```python
|
16 |
from transformers import AutoModel, AutoModelForMaskedLM, AutoTokenizer
|
|
|
17 |
model_path = 'kuleshov-group/PlantCaduceus_l32'
|
18 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
19 |
model = AutoModelForMaskedLM.from_pretrained(model_path, trust_remote_code=True).to(device)
|
|
|
14 |
## How to use
|
15 |
```python
|
16 |
from transformers import AutoModel, AutoModelForMaskedLM, AutoTokenizer
|
17 |
+
import torch
|
18 |
model_path = 'kuleshov-group/PlantCaduceus_l32'
|
19 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
20 |
model = AutoModelForMaskedLM.from_pretrained(model_path, trust_remote_code=True).to(device)
|