Downloads · 30 days
8
5% of all-time downloads
evillegasgarcia/esm2-ppi-biolip-1
esm2-ppi-biolip-1 is a feature extraction model from evillegasgarcia. Use it when you need embeddings to search or compare text. It is set up for transformers.
This model is a finetuned version of ESM2-3B [1] for protein-protein interaction site prediction. It predicts whether a certain amino acid in a protein sequence is part of an interaction site (1) or not (0).
Downloads · 30 days
8
5% of all-time downloads
All-time downloads
161
Public
Parameters
2.8B
11.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors11.4 GB · 100%
From the Hugging Face model README
This model is a finetuned version of ESM2-3B [1] for protein-protein interaction site prediction. It predicts whether a certain amino acid in a protein sequence is part of an interaction site (1) or not (0).
For more details on the training and testing on this model, refer to the article [...].
The github repository to use with this model is available here: https://github.com/RitAreaSciencePark/PPI-Reps
The data for the training and evaluation of this model is available in csv format in this zenodo repository: https://doi.org/10.5281/zenodo.18802482
import torch
from transformers import AutoModel, AutoTokenizer, AutoConfig
model_name = "evillegasgarcia/esm2-ppi-biolip-1"
# Load config
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
# Load model using the custom remote code
model = AutoModel.from_pretrained(model_name, trust_remote_code=True)
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
#move model to device
device = "cuda" if torch.cuda.is_available() else "cpu"
model = model.to(device)
# run over a sample sequence
sequence = "MKTVRQERLKSIVRILEAAKEPVSGAQLAEELSVSRQVIVQDIAYLRSLGYNIVATPRGYVLAGG"
inputs = tokenizer.encode(sequence, return_tensors="pt").to(device)
logits = model(inputs)["logits"]
probabilities = torch.sigmoid(logits)
probabilities
The model was trained on a curated subset of the biolip dataset taken from [2]. We used the Adam optimizer with default hyperparameters, and weight decay of 0.05. The learning rate was 1e-5 and we had a gradient accumulation batch size of 2.
The performance of the model was tested on the ZK448 benchmark available from the Zenodo repository and originally curated by [3]. The model has an accuracy of 0.74 and a Matthews Correlation Coefficient (MCC) score of 0.35.