> ## 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 Binder

> Hallucinate a binder against a fixed target from composed ESMFold2 inversion terms.

![ESMFold2 Inversion Binder](https://proto-bio.github.io/proto-assets/images/constraint/esmfold2-inversion-binder/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#L421)

@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 binders with the same weighted ESMFold2 term composition as backward.

## API Reference

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

Configuration for the ESMFold2 inversion binder constraint.

**target\_sequence** `string` *required*

Fixed target chain in canonical one-letter amino acids.

**target\_hotspot\_ids** `array`

Target residues to contact, residue letter plus 1-indexed position (L15).

**epitope\_contact\_distance** `number` (default: 12.0)

Distance in angstroms defining a hotspot-binder contact.

**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: inter\_contact, epitope, 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 and, when the complex was
folded, `distogram_iptm_proxy`.

## Usage

```python python icon="python" theme={null}
from proto_language.core import Constraint
from proto_language.constraint import esmfold2_inversion_binder_constraint, ESMFold2InversionBinderConfig

constraint = Constraint(
    inputs=[segment],
    function=esmfold2_inversion_binder_constraint,
    function_config=ESMFold2InversionBinderConfig(
        # Configure parameters here
    ),
)

scores = constraint.evaluate()
```

## Metadata

| Property | Value |
| - | - |
| Key | `esmfold2-inversion-binder` |
| Function | `esmfold2_inversion_binder_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.