The model is finetuned from ProtT5 using unpaired antibody sequences from the
Observed Antibody Space
.
Use
The encoder part of the model and tokeniser can be loaded using the
transformers
library
from transformers import T5EncoderModel, T5Tokenizer
tokeniser = T5Tokenizer.from_pretrained("Exscientia/IgT5_unpaired", do_lower_case=False)
model = T5EncoderModel.from_pretrained("Exscientia/IgT5_unpaired")
The tokeniser is used to prepare batch inputs
# single chain sequences
sequences = [
"EVVMTQSPASLSVSPGERATLSCRARASLGISTDLAWYQQRPGQAPRLLIYGASTRATGIPARFSGSGSGTEFTLTISSLQSEDSAVYYCQQYSNWPLTFGGGTKVEIK",
"ALTQPASVSGSPGQSITISCTGTSSDVGGYNYVSWYQQHPGKAPKLMIYDVSKRPSGVSNRFSGSKSGNTASLTISGLQSEDEADYYCNSLTSISTWVFGGGTKLTVL"
]
# The tokeniser expects input of the form ["E V V M...", "A L T Q..."]
sequences = [' '.join(sequence) for sequence in sequences]
tokens = tokeniser.batch_encode_plus(
sequences,
add_special_tokens=True,
pad_to_max_length=True,
return_tensors="pt",
return_special_tokens_mask=True
)
Note that the tokeniser adds a
</s>
token at the end of each sequence and pads using the
<pad>
token. For example a batch containing sequences
E V V M
,
A L
will be tokenised to
E V V M </s>
and
A L </s> <pad> <pad>
.
Sequence embeddings are generated by feeding tokens through the model
IgT5_unpaired huggingface.co is an AI model on huggingface.co that provides IgT5_unpaired's model effect (), which can be used instantly with this Exscientia IgT5_unpaired model. huggingface.co supports a free trial of the IgT5_unpaired model, and also provides paid use of the IgT5_unpaired. Support call IgT5_unpaired model through api, including Node.js, Python, http.
IgT5_unpaired huggingface.co is an online trial and call api platform, which integrates IgT5_unpaired's modeling effects, including api services, and provides a free online trial of IgT5_unpaired, you can try IgT5_unpaired online for free by clicking the link below.
Exscientia IgT5_unpaired online free url in huggingface.co:
IgT5_unpaired is an open source model from GitHub that offers a free installation service, and any user can find IgT5_unpaired on GitHub to install. At the same time, huggingface.co provides the effect of IgT5_unpaired install, users can directly use IgT5_unpaired installed effect in huggingface.co for debugging and trial. It also supports api for free installation.