Downloads · 30 days
372
0% of all-time downloads
alchemab/antiberta2-cssp
antiberta2-cssp is a feature extraction model from alchemab. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as other.
AntiBERTa2 is an antibody-specific language model based on the RoFormer model - it is pre-trained using masked language modelling. We also provide a multimodal version of AntiBERTa2, AntiBERTa2-CSSP, that has been tra…
Downloads · 30 days
372
0% of all-time downloads
All-time downloads
150K
Public
Parameters
202M
1.6 GB on disk
Likes
8
Public
Click a slice to open those files.
.safetensors806 MB · 100%
From the Hugging Face model README
## AntiBERTa2-CSSP 🧬
AntiBERTa2 is an antibody-specific language model based on the RoFormer model - it is pre-trained using masked language modelling. We also provide a multimodal version of AntiBERTa2, AntiBERTa2-CSSP, that has been trained using a contrastive objective, similar to the CLIP method. Further details on both AntiBERTa2 and AntiBERTa2-CSSP are described in our paper accepted at the NeurIPS MLSB Workshop 2023.
Both AntiBERTa2 models are only available for non-commercial use. Output antibody sequences (e.g. from infilling via masked language models) can only be used for non-commercial use. For any users seeking commercial use of our model and generated antibodies, please reach out to us at info@alchemab.com.
| Model variant | Parameters | Config |
|---|---|---|
| AntiBERTa2 | 202M | 16L, 16H, 1024d |
| AntiBERTa2-CSSP | 202M | 16L, 16H, 1024d |
>>> from transformers import (
RoFormerModel,
RoFormerTokenizer,
RoFormerForSequenceClassification
)
>>> tokenizer = RoFormerTokenizer.from_pretrained("alchemab/antiberta2-cssp")
>>> model = RoFormerModel.from_pretrained("alchemab/antiberta2-cssp")
>>> model(**tokenizer("Ḣ Q V Q ... T V S S", return_tensors='pt')).last_hidden_state... # etc
>>> new_model = RoFormerForSequenceClassification.from_pretrained(
"alchemab/antiberta2-cssp") # this will of course raise warnings
# that a new linear layer will be added
# and randomly initialized