Feature Extraction
Transformers
Safetensors
seqscreen
proteins
molecules
bioinformatics
drug-discovery
custom_code
Instructions to use SaeedLab/BindScreen-Finetuning-LIT_PCBA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SaeedLab/BindScreen-Finetuning-LIT_PCBA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="SaeedLab/BindScreen-Finetuning-LIT_PCBA", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SaeedLab/BindScreen-Finetuning-LIT_PCBA", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download configuration_seqscreen.py from SaeedLab/BindScreen-Finetuning-LIT_PCBA: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/SaeedLab/BindScreen-Finetuning-LIT_PCBA/resolve/main/configuration_seqscreen.py
- Command line
-
hf download hf://SaeedLab/BindScreen-Finetuning-LIT_PCBA/configuration_seqscreen.py
-
curl -L -o configuration_seqscreen.py https://huggingface.co/SaeedLab/BindScreen-Finetuning-LIT_PCBA/resolve/main/configuration_seqscreen.py
583 Bytes
| from transformers import PretrainedConfig | |
| class SeqScreenConfig(PretrainedConfig): | |
| model_type = "seqscreen" | |
| def __init__( | |
| self, | |
| prot_dim: int = 2560, | |
| mol_dim: int = 768, | |
| proj_dim: int = 512, | |
| dropout: float = 0.1, | |
| esm2_model_name: str = "facebook/esm2_t36_3B_UR50D", | |
| lora_adapter_repo: str = None, | |
| **kwargs, | |
| ): | |
| super().__init__(**kwargs) | |
| self.prot_dim = prot_dim | |
| self.mol_dim = mol_dim | |
| self.proj_dim = proj_dim | |
| self.dropout = dropout | |
| self.esm2_model_name = esm2_model_name | |
| self.lora_adapter_repo = lora_adapter_repo |