Instructions to use mila-intel/ProtST-esm1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mila-intel/ProtST-esm1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="mila-intel/ProtST-esm1b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mila-intel/ProtST-esm1b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update configuration_protst.py
Browse files- configuration_protst.py +1 -1
configuration_protst.py
CHANGED
|
@@ -20,7 +20,7 @@ class ProtSTConfig(PretrainedConfig):
|
|
| 20 |
Dictionary of configuration options used to initialize [`BertForPubMed`].
|
| 21 |
```"""
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
def __init__(
|
| 26 |
self,
|
|
|
|
| 20 |
Dictionary of configuration options used to initialize [`BertForPubMed`].
|
| 21 |
```"""
|
| 22 |
|
| 23 |
+
model_type = "protst"
|
| 24 |
|
| 25 |
def __init__(
|
| 26 |
self,
|