RaphaelMourad
commited on
Commit
•
8b7cc1d
1
Parent(s):
e7c188c
Update README.md
Browse files
README.md
CHANGED
@@ -33,8 +33,8 @@ model = AutoModel.from_pretrained("RaphaelMourad/Mistral-Peptide-v1-15M", trust_
|
|
33 |
## Calculate the embedding of a protein sequence
|
34 |
|
35 |
```
|
36 |
-
|
37 |
-
inputs = tokenizer(
|
38 |
hidden_states = model(inputs)[0] # [1, sequence_length, 256]
|
39 |
|
40 |
# embedding with max pooling
|
|
|
33 |
## Calculate the embedding of a protein sequence
|
34 |
|
35 |
```
|
36 |
+
peptide = "MALWMRLLPLLALLALWG"
|
37 |
+
inputs = tokenizer(peptide, return_tensors = 'pt')["input_ids"]
|
38 |
hidden_states = model(inputs)[0] # [1, sequence_length, 256]
|
39 |
|
40 |
# embedding with max pooling
|