Downloads · 30 days
261
4% of all-time downloads
brineylab/CurrAb
CurrAb is a machine learning model from brineylab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
CurrAb is an antibody language model that uses an ESM-2 architecture. It was pre-trained on unpaired and paired sequences from the OAS, using the curriculum learning approach described in our paper published in PLOS C…
Downloads · 30 days
261
4% of all-time downloads
All-time downloads
6.1K
Public
Parameters
651M
2.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.6 GB · 100%
From the Hugging Face model README
CurrAb is an antibody language model that uses an ESM-2 architecture. It was pre-trained on unpaired and paired sequences from the OAS, using the curriculum learning approach described in our paper published in PLOS Computational Biology. Datasets used for pre-training are available on Zenodo and code is available on GitHub.
Load the model and tokenizer as follows:
from transformers import EsmTokenizer, EsmForMaskedLM
model = EsmForMaskedLM.from_pretrained("brineylab/CurrAb")
tokenizer = EsmTokenizer.from_pretrained("brineylab/CurrAb")
The tokenizer expects inputs in the format: ["VQ..SS<cls>EV..IK"] for paired sequences, ["VQ..SS<cls>"] for unpaired heavy chains and ["<cls>EV..IK"] for unpaired light chains.
The model can be finetuned for classification tasks (such as specificity and pair classification in the paper) by loading the model with a sequence classification head:
from transformers import EsmForSequenceClassification
model = EsmForSequenceClassification.from_pretrained("brineylab/CurrAb")
# freeze the base model weights prior to finetuning
for param in model.base_model.parameters():
param.requires_grad = False