Update README.md
Browse files
README.md
CHANGED
|
@@ -87,7 +87,7 @@ To use any of the models, you need to install the required dependencies, such as
|
|
| 87 |
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
| 88 |
pip install transformers
|
| 89 |
```
|
| 90 |
-
Here’s a quick example of how to load
|
| 91 |
|
| 92 |
```python
|
| 93 |
from transformers import AutoModel, AutoTokenizer
|
|
@@ -95,14 +95,6 @@ from transformers import AutoModel, AutoTokenizer
|
|
| 95 |
# Load the model
|
| 96 |
model_name = "fondress/PDeepPP_ACE"
|
| 97 |
model = AutoModel.from_pretrained(model_name, trust_remote_code=True)
|
| 98 |
-
|
| 99 |
-
# Example input
|
| 100 |
-
protein_sequence = "VELYP"
|
| 101 |
-
# Preprocess the sequence (refer to specific model documentation for preprocessing steps)
|
| 102 |
-
|
| 103 |
-
# Forward pass
|
| 104 |
-
outputs = model(input_ids=processed_input)
|
| 105 |
-
logits = outputs.logits
|
| 106 |
```
|
| 107 |
|
| 108 |
## Training and Customization
|
|
|
|
| 87 |
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
| 88 |
pip install transformers
|
| 89 |
```
|
| 90 |
+
Here’s a quick example of how to load a model:
|
| 91 |
|
| 92 |
```python
|
| 93 |
from transformers import AutoModel, AutoTokenizer
|
|
|
|
| 95 |
# Load the model
|
| 96 |
model_name = "fondress/PDeepPP_ACE"
|
| 97 |
model = AutoModel.from_pretrained(model_name, trust_remote_code=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
```
|
| 99 |
|
| 100 |
## Training and Customization
|