All models

esm2_t6_8M

A BERT-style encoder trained on protein sequences with masked language modeling.

Molecules, proteins and genomics · 337 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (32 KB)

Open in a new tab

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

Family
ESM-2
Parameters
7.5M
Operations
337
Framework
PyTorch
Recurrent
No
Published
2022, Science
Cited by
5,562 (as of 29 October 2026)
Authors
Zeming Lin, Halil Akin, Roshan Rao and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m4736
Graph hash
6e5cc3b4add6de54d1f613ba1c225c038cbf8177fe429e4408bd39293cb0d3df
Skeleton hash
9605e6d1302c8bedb8cb6095a95eeee981e576478adcdb50d92691394c02f90e
Architecture hash
8423d7337ec5656cfcfe3938dfad8700e548eb36942c354f227823d2f08c0c7f
Diagram SHA-256
6f46d9e7320d8de5aa7d6b805efa59ae04204f086108dfb9c7a4c251fa5a35f3
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

What it is

This model is the smallest ESM-2 size; its model card lists it with 6 layers and 8M parameters.

About this model's family

ESM-2 is a family of Transformer protein language models, which the paper trains at scales from 8 million up to 15 billion parameters. The models are trained with masked language modeling: they predict the identity of randomly selected amino acids in a protein sequence from their context in the rest of the sequence.

The architecture is a BERT-style encoder-only Transformer with modifications. The number of layers, the number of attention heads and the hidden sizes change with model scale. Where the earlier ESM-1b used a learned positional encoding, ESM-2 uses Rotary Position Embedding so that the model can extrapolate beyond the context window it was trained on.

The paper's central finding is that as the language models are scaled they learn information that enables prediction of a protein's three-dimensional structure at the resolution of individual atoms. That finding is the basis of ESMFold, a single-sequence structure predictor built by training a folding head for ESM-2. On unsupervised contact prediction, the paper reports that the 150M parameter ESM-2 model is comparable to the 650M parameter ESM-1b model.

Key idea. The paper shows that protein language models, scaled up to 15B parameters, learn enough about structure to predict it at atomic resolution directly from a single sequence.

  • ESM-2
  • ESM
  • ESM-1b
  • protein language model
  • evolutionary scale modeling
  • protein structure prediction
  • masked language modeling
  • protein embeddings

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Lin_2022, title={Evolutionary-scale prediction of atomic level protein structure with a language model}, url={http://dx.doi.org/10.1101/2022.07.20.500902}, DOI={10.1101/2022.07.20.500902}, publisher={openRxiv}, author={Lin, Zeming and Akin, Halil and Rao, Roshan and Hie, Brian and Zhu, Zhongkai and Lu, Wenting and Smetanin, Nikita and Verkuil, Robert and Kabeli, Ori and Shmueli, Yaniv and dos Santos Costa, Allan and Fazel-Zarandi, Maryam and Sercu, Tom and Candido, Salvatore and Rives, Alexander}, year={2022}, month=July }