Instructions to use InstaDeepAI/nucleotide-transformer-v2-50m-multi-species with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InstaDeepAI/nucleotide-transformer-v2-50m-multi-species with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="InstaDeepAI/nucleotide-transformer-v2-50m-multi-species", trust_remote_code=True)# Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("InstaDeepAI/nucleotide-transformer-v2-50m-multi-species", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
ccc60d1
1
Parent(s): 50add8c
Update modeling_esm.py
Browse files- modeling_esm.py +0 -1
modeling_esm.py
CHANGED
|
@@ -551,7 +551,6 @@ class EsmIntermediate(nn.Module):
|
|
| 551 |
self.activation_fn = SiLU()
|
| 552 |
|
| 553 |
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
| 554 |
-
print("Forwarding in the custom ESM Intermediate!")
|
| 555 |
hidden_states = self.dense(hidden_states)
|
| 556 |
|
| 557 |
# GLU
|
|
|
|
| 551 |
self.activation_fn = SiLU()
|
| 552 |
|
| 553 |
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
|
|
|
| 554 |
hidden_states = self.dense(hidden_states)
|
| 555 |
|
| 556 |
# GLU
|