> ## 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 Inverse Folding

> Caliby Potts-model structure-conditioned protein design, optionally over a conformer ensemble

![Caliby Inverse Folding](https://proto-bio.github.io/proto-assets/images/generator/caliby/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 generator 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/generator/caliby_generator.py#L184)

@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

Generator 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)
Protein sequence generator using Caliby's Potts-model inverse folding.

One structure yields every proposal; `N` structures yield one proposal each (`N` must
equal the proposal count). Each proposal carries Caliby's designed backbone (designed
residues, no sidechains) and, under `_generator_metadata["caliby"]`, the design's Potts
energy (lower is more favorable), per-residue energy and native sequence recovery.

## API Reference

ConfigCalibyGeneratorConfig[ Source](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/generator/caliby_generator.py#L43)

Configuration object for CalibyGenerator.

Defaults follow `CalibySampleConfig` in proto-tools. Designs are backbone-only: the
structure attached to each proposal carries the designed residues on the input backbone,
without sidechains (run `caliby-pack` to place them).

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

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

**structure\_inputs** `array`

Structure(s) with optional conformers, chains\_to\_redesign and position constraints.

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

When designing several chains, write only this chain's sequence to the segment.

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

Final Potts sampling temperature (annealed from 1.0); higher is more diverse.

**potts\_sweeps** `integer` (default: 500)

Monte Carlo sweeps per designed sequence; more converges closer to the optimum.

**excluded\_amino\_acids** `array`

One-letter codes never placed at a designed position (e.g. 'C').

**use\_primary\_res\_type** `boolean` (default: True)

Take residue identities from the primary conformer (ensemble design only).

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

Conformers per forward pass in ensemble-conditioned design; lower on GPU OOM.

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

GPU device for inference (e.g. 'cuda' or 'cuda:0').

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

Whether to print status messages during execution.

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

Design on configured structure\_inputs or on each proposal's attached structure.

Options: `configured_structure_inputs`, `proposal_structure`

**proposal\_fixed\_positions** `array`

Segment positions (1-indexed) whose residue in the proposal's structure is kept.

## Usage

```python python icon="python" theme={null}
>>> gen = CalibyGenerator(CalibyGeneratorConfig(structure_inputs="/path/to/backbone.pdb"))
>>> gen.assign(Segment(length=100, sequence_type="protein"))
>>> gen.sample()  # Each proposal is a designed sequence, e.g. "MKV..."
```

## Metadata

| Property | Value |
| - | - |
| Key | `caliby` |
| Class | `CalibyGenerator` |
| Category | `inverse_folding` |
| Input Type | `structure` |
| Uses GPU | `True` |
| Supported Sequence Types | `protein` |
| Allows Empty Start | `False` |


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