Instructions to use Synthyra/ESMplusplus_small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Synthyra/ESMplusplus_small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Synthyra/ESMplusplus_small", trust_remote_code=True)# Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("Synthyra/ESMplusplus_small", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload modeling_esm_plusplus.py with huggingface_hub
Browse files- modeling_esm_plusplus.py +1 -7
modeling_esm_plusplus.py
CHANGED
|
@@ -32,13 +32,7 @@ except ImportError:
|
|
| 32 |
create_block_mask = None
|
| 33 |
flex_attention = None
|
| 34 |
|
| 35 |
-
|
| 36 |
-
from .embedding_mixin import EmbeddingMixin, Pooler
|
| 37 |
-
except ImportError:
|
| 38 |
-
try:
|
| 39 |
-
from ..embedding_mixin import EmbeddingMixin, Pooler
|
| 40 |
-
except ImportError:
|
| 41 |
-
from embedding_mixin import EmbeddingMixin, Pooler
|
| 42 |
|
| 43 |
|
| 44 |
|
|
|
|
| 32 |
create_block_mask = None
|
| 33 |
flex_attention = None
|
| 34 |
|
| 35 |
+
from embedding_mixin import EmbeddingMixin, Pooler
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
|