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

# Caliby Potts Energy

> Score a sequence threaded onto a backbone by its Caliby Potts energy (lower is better).

![Caliby Potts Energy](https://proto-bio.github.io/proto-assets/images/constraint/caliby-potts-energy/hero.png)

> [!NOTE]
>
> **License:** Caliby is open source and free for academic and commercial use under an Apache-2.0 license and may require explicit attribution when utilized. Please refer to [the license](https://github.com/ProteinDesignLab/caliby/blob/main/LICENSE) 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/caliby/social.png)

&#x20;Go to Tool Page

[Open](https://proto.evodesign.org/docs/tools/inverse-folding/caliby.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/sequence_scoring/caliby_potts_energy_constraint.py#L148)

@articleshuai2025caliby

```bibtex theme={null}
@article{shuai2025caliby,
  title={Ensemble-conditioned protein sequence design with {Caliby}},
  author={Shuai, Richard W. and Lu, Tianyu and Bhatti, Subhang and Kouba, Petr and Huang, Po-Ssu},
  journal={bioRxiv},
  year={2025},
  publisher={Cold Spring Harbor Laboratory},
  doi={10.1101/2025.09.30.679633},
  url={https://www.biorxiv.org/content/10.1101/2025.09.30.679633}
}
```

&#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 proposals by Caliby Potts energy on their backbone; lower is better.

## API Reference

ConfigCalibyPottsEnergyConfig[ Source](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/sequence_scoring/caliby_potts_energy_constraint.py#L36)

Configuration for Caliby Potts-energy scoring.

**model\_checkpoint** `string` (default: caliby)

Bundled Caliby design checkpoint name, or a path to a custom .ckpt file.

**structure\_source** `enum` (default: configured\_structure\_inputs)

Thread proposals onto configured structure\_inputs or each proposal's structure.

Options: `configured_structure_inputs`, `proposal_structure`

**structure\_inputs** `array`

Structures (with optional conformers) to thread proposals onto.

**output\_chain\_id** `string`

Structure chain whose sequence the proposal supplies; inferred when unambiguous.

**score\_mode** `enum` (default: avg\_potts\_energy)

Per-residue (avg\_potts\_energy) or summed (potts\_energy) Potts energy; lower is better.

Options: `avg_potts_energy`, `potts_energy`

**conformer\_batch\_size** `integer` (default: 4)

Conformers per forward pass when scoring against an ensemble.

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

Device for Caliby scoring.

**verbose** `boolean` (default: False)

Whether to print Caliby scoring progress.

ReturnsConstraintOutput

One output per proposal. `score` is the raw energy chosen by
`score_mode`; metadata carries both energies and the scored chain.

## Usage

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

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

scores = constraint.evaluate()
```

## Metadata

| Property | Value |
| - | - |
| Key | `caliby-potts-energy` |
| Function | `caliby_potts_energy_constraint` |
| Category | `sequence_scoring` |
| Mode | `discrete` |
| Uses GPU | `True` |
| Supported Types | `protein` |


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