> ## Documentation Index
> Fetch the complete documentation index at: https://proto.evodesign.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ESMFold2 Inversion

> Hallucinate a single protein chain from composed ESMFold2 inversion terms.

![ESMFold2 Inversion](https://proto-bio.github.io/proto-assets/images/constraint/esmfold2-inversion/hero.png)

> [!NOTE]
>
> **License:** ESMFold2 is open source and free for academic and commercial use under an MIT license and may require explicit attribution when utilized. Please refer to [the license](https://github.com/Biohub/esm/blob/main/LICENSE.md) for full terms.

This constraint 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.

***

&#x20;Tools Used Tools Used  Source Source  Cite Cite

![](https://proto-bio.github.io/proto-assets/images/tool/esmfold2/social.png)

&#x20;Go to Tool Page

[Open](https://proto.evodesign.org/docs/tools/structure-prediction/esmfold2.md)

![Proto](https://mintcdn.com/bio-pro/cMLt8hAqaP9M3LKy/assets/logo/logo-light.svg?fit=max\&auto=format\&n=cMLt8hAqaP9M3LKy\&q=85\&s=f5e5dfd1b8f9b9db3a0be0e2eb01f678)

evo-design/proto-language

&#x20;View source

[Open](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/protein_structure/esmfold2_inversion_binder_constraint.py#L479)

@misccandido2026language

```bibtex theme={null}
@misc{candido2026language,
  title={Language Modeling Materializes a World Model of Protein Biology},
  author={Candido, Salvatore and Hayes, Thomas and Derry, Alexander and Rao, Roshan and Lin, Zeming and Verkuil, Robert and Wu, Bryan and Lee, Jin Sub and Bruguera, Elise S. and Keval, Jehan A. and Kopylov, Mykhailo and Pak, John E. and Wu, Wesley and Thomas, Neil and Mataraso, Samson and Hsu, Alvin and Trotman-Grant, Ashton C. and Fatras, Kilian and dos Santos Costa, Allan and Badkundri, Rohil and Ak{\i}n, Halil and Oktay, Deniz and Deaton, Jonathan and Montabana, Elizabeth and Sitwala, Hrishita and Yu, Yue and Wiggert, Marius and Carlin, Dylan Alexander and Goering, Anthony W. and Blazejewski, Tomasz and Sandora, McCullen and Hla, Michael and Jia, Tina Z. and Kloker, Leon H. and Sofroniew, Nicholas J. and Uehara, Masatoshi and Pannu, Jassi and Bachas, Sharrol and Liu, Daniel S. and Sercu, Tom and Rives, Alexander},
  year={2026},
  url={https://biohub.ai/papers/esm_protein.pdf},
  note={Preprint}
}
```

&#x20;Copy citation

Constraint contributors[![](https://avatars.githubusercontent.com/u/61667248?v=4\&s=64)adititm](https://github.com/adititm)[![](https://avatars.githubusercontent.com/u/21143637?v=4\&s=64)bviggiano](https://github.com/bviggiano)
Score discrete single chains with the same weighted ESMFold2 term composition as backward.

## API Reference

ConfigESMFold2InversionConfig[ Source](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/protein_structure/esmfold2_inversion_binder_constraint.py#L221)

Configuration for the single-chain ESMFold2 inversion constraint.

**model\_checkpoint** `enum` (default: esmfold2-experimental-fast)

ESMFold2 variant; interface terms need an 'experimental' head (52 angstrom range).

Options: `esmfold2`, `esmfold2-fast`, `esmfold2-experimental`, `esmfold2-experimental-fast`, `esmfold2-experimental-cutoff2025`, `esmfold2-experimental-fast-cutoff2025`

**seed** `integer`

Base seed for dropout and mask draws, offset per evaluation; a program seed overrides it.

**device** `string` (default: cuda)

Device used for ESMFold2 inference.

**term\_weights** `object`

Weight per tool term: intra\_contact, globularity, plm\_nll.

**plm\_passes** `integer` (default: 4)

Mask draws for the pseudo-perplexity term.

**temperature** `number` (default: 1.0)

Fallback softmax temperature; optimizer schedules take precedence.

**lm\_dropout** `number` (default: 0.0)

Pair-representation dropout to diversify runs; experimental checkpoints only, 0 disables.

ReturnsConstraintOutput

One per proposal; `score` is the weighted term sum (lower is
better) and `metadata` carries each raw term value.

## Usage

```python python icon="python" theme={null}
>>> config = ESMFold2InversionConfig(term_weights={"intra_contact": 1.0, "globularity": 0.5})
>>> out = esmfold2_inversion_constraint([(Sequence("MKTAYIAKQRQISFVKSHFSRQLE", "protein"),)], config)
>>> out[0].score  # intra_contact + 0.5 * globularity, each raw value also in metadata
```

## Metadata

| Property | Value |
| - | - |
| Key | `esmfold2-inversion` |
| Function | `esmfold2_inversion_constraint` |
| Category | `protein_structure` |
| Mode | `dual` |
| Uses GPU | `True` |
| Supported Types | `protein` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.