Sapiens
A RoBERTa antibody language model that humanizes and scores antibody sequences.
Molecules, proteins and genomics · 119 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 569K
- Operations
- 119
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2021, mAbs
- Cited by
- 189 (as of 29 October 2026)
- Authors
- David Prihoda, Jad Maamary, Andrew Waight and others
- Source
- GitHub: Merck/Sapiens
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20250
- Graph hash
- 284bd32d72ca49553e4c9b1f9de18a3e1bc6da5349116087aea5b7dac5a5db42
- Skeleton hash
- 370a3525b39c18c517360ba849d7859a12b5af0a60a75d1e571c00c9c828d6ba
- Architecture hash
- ee8744744794cc2ca83b9fa5dd05e945b32582989b05b1f75216c2ad65f59fcb
- Diagram SHA-256
- 19e173e7cf7654f9ae51d58766298bda891070597c6a686dc6b5c384905b74ec
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
transformers.RobertaForMaskedLM()
What it is
Sapiens is a human antibody language model that humanizes antibody sequences using deep learning on natural antibody repertoires. It is built on the Transformer encoder and trained with masked language modeling, where random positions in unaligned amino-acid sequences are masked or mutated and the model learns to recognize and repair them.
Separate heavy-chain and light-chain models were trained on 20 million heavy-chain and 19 million light-chain sequences from the Observed Antibody Space (OAS). The Transformer encoder has 4 layers, 8 attention heads and an embedding dimensionality of 128, and the paper reports it contains 568,857 tunable weights.
Key idea. The paper presents Sapiens, a Transformer antibody language model trained by masked language modeling on natural antibody repertoires, and reports it humanizes antibodies comparably to human experts.
- Sapiens
- BioPhi
- antibody humanization
- antibody language model
- humanness
- roberta
- masked language model
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Prihoda_2021, title={BioPhi: A platform for antibody design, humanization and humanness evaluation based on natural antibody repertoires and deep learning}, url={http://dx.doi.org/10.1101/2021.08.08.455394}, DOI={10.1101/2021.08.08.455394}, publisher={openRxiv}, author={Prihoda, David and Maamary, Jad and Waight, Andrew and Juan, Veronica and Fayadat-Dilman, Laurence and Svozil, Daniel and Bitton, Danny A.}, year={2021}, month=Aug }