Skip to main content
AbLang Antibody Language Model
License: AbLang is open source and free for academic and commercial use under a BSD-3-Clause license. Please refer to the license for full terms.

This generator is open source. Any third-party models, product names, or trademarks referenced are the property of their respective owners, and Proto is not affiliated with them.


Go to Tool Page
ProtoProtoevo-design/proto-language
View source
@articleolsen2022ablang@articleolsen2024ablang2
Copy citation
Generator contributors
Antibody sequence mutation generator using the AbLang masked language model.
Masks positions of every proposal with the masking strategy and refills them from AbLang. The generator applies the mask itself, because ablang-sample takes pre-masked sequences (_ at positions to restore) rather than a strategy; it uses one seed per call for both the mask and the tool, as ESM2’s sampling tool does internally.

API Reference

ConfigAbLangGeneratorConfig Source
Configuration object for AbLangGenerator.Sampling defaults follow AbLangSampleConfig in proto-tools (proto_tools/tools/masked_models/ablang/ablang_sample.py). AbLang picks its checkpoint from the chains it receives: heavy-only input runs ablang1-heavy and paired input runs ablang2-paired.
RandomMaskingStrategy
Which positions to resample (random selection). Default: random 30%.
number
default:"1.0"
Sampling temperature for refilled residues; 0 is greedy argmax.
array
VH region (start, end) within the segment; set with light_slice for paired sampling.
array
VL region (start, end) within the segment; set with heavy_slice for paired sampling.
array
Single-letter codes never sampled at masked positions (e.g. [‘C’] to forbid cysteine).
string
default:"cuda"
GPU device to run AbLang on (e.g. ‘cuda’ or ‘cuda:0’).
integer
default:"1"
Number of sequences to process simultaneously on GPU

Usage

python

Metadata