Feature Extraction
Transformers
Safetensors
protenrich
proteins
bioinformatics
drug-discovery
custom_code
Instructions to use SaeedLab/ProtEnrich-ESM1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SaeedLab/ProtEnrich-ESM1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="SaeedLab/ProtEnrich-ESM1b", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SaeedLab/ProtEnrich-ESM1b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
| from transformers import PretrainedConfig | |
| class ProtEnrichConfig(PretrainedConfig): | |
| model_type = "protenrich" | |
| def __init__( | |
| self, | |
| seq_dim : int = 1280, | |
| struct_dim: int = 1024, | |
| dyn_dim: int = 20, | |
| embed_dim: int = 1024, | |
| project_dim: int = 256, | |
| alpha_max: float = 0.3, | |
| num_labels: int = 2, | |
| **kwargs): | |
| super().__init__(**kwargs) | |
| self.seq_dim = seq_dim | |
| self.struct_dim = struct_dim | |
| self.dyn_dim = dyn_dim | |
| self.embed_dim = embed_dim | |
| self.project_dim = project_dim | |
| self.alpha_max = alpha_max | |
| self.num_labels = num_labels |