Update README.md
Browse files
README.md
CHANGED
|
@@ -4,13 +4,16 @@ library_name: transformers
|
|
| 4 |
datasets:
|
| 5 |
- CCDS
|
| 6 |
- Ensembl
|
| 7 |
-
pipeline_tag:
|
| 8 |
tags:
|
| 9 |
- protein language model
|
| 10 |
- biology
|
| 11 |
widget:
|
| 12 |
-
- text:
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
# cdsBERT
|
|
@@ -29,7 +32,7 @@ import torch
|
|
| 29 |
import torch.nn.functional as F
|
| 30 |
from transformers import BertForMaskedLM, BertTokenizer
|
| 31 |
|
| 32 |
-
model =
|
| 33 |
tokenizer = BertTokenizer.from_pretrained('lhallee/cdsBERT') # load tokenizer
|
| 34 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu') # gather device
|
| 35 |
model.to(device) # move to device
|
|
@@ -59,5 +62,4 @@ The [Gleghorn lab](https://www.gleghornlab.com/) is an interdisciplinary researc
|
|
| 59 |
doi = {10.1101/2023.09.15.558027},
|
| 60 |
publisher = {Cold Spring Harbor Laboratory},
|
| 61 |
journal = {bioRxiv}
|
| 62 |
-
}
|
| 63 |
-
|
|
|
|
| 4 |
datasets:
|
| 5 |
- CCDS
|
| 6 |
- Ensembl
|
| 7 |
+
pipeline_tag: feature-extraction
|
| 8 |
tags:
|
| 9 |
- protein language model
|
| 10 |
- biology
|
| 11 |
widget:
|
| 12 |
+
- text: >-
|
| 13 |
+
( Z E V L P Y G D E K L S P Y G D G G D V G Q I F s C B L Q D T N N F F G A
|
| 14 |
+
g Q N K % O P K L G Q I G % S K % u u i e d d R i d D V L k n ( T D K @ p p
|
| 15 |
+
^ v
|
| 16 |
+
example_title: Feature extraction
|
| 17 |
---
|
| 18 |
|
| 19 |
# cdsBERT
|
|
|
|
| 32 |
import torch.nn.functional as F
|
| 33 |
from transformers import BertForMaskedLM, BertTokenizer
|
| 34 |
|
| 35 |
+
model = BertModel.from_pretrained('lhallee/cdsBERT') # load model
|
| 36 |
tokenizer = BertTokenizer.from_pretrained('lhallee/cdsBERT') # load tokenizer
|
| 37 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu') # gather device
|
| 38 |
model.to(device) # move to device
|
|
|
|
| 62 |
doi = {10.1101/2023.09.15.558027},
|
| 63 |
publisher = {Cold Spring Harbor Laboratory},
|
| 64 |
journal = {bioRxiv}
|
| 65 |
+
}
|
|
|