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

# ProGen3 Protein Language Model

> ProGen3 bidirectional autoregressive protein language model for protein sequence generation

![ProGen3 Protein Language Model](https://proto-bio.github.io/proto-assets/images/generator/progen3/hero.png)

> [!NOTE]
>
> **License:** ProGen3 uses Apache-2.0 for code and CC-BY-NC-SA-4.0 for model weights and has restrictions around commercial use and may require explicit attribution when utilized. Please refer to the [code license](https://github.com/Profluent-AI/progen3/blob/main/LICENSE-CODE) and [model weights license](https://github.com/Profluent-AI/progen3#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/progen3/social.png)

&#x20;Go to Tool Page

[Open](https://proto.evodesign.org/docs/tools/causal-models/progen3.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/progen3_generator.py#L168)

@articlebhatnagar2025progen3

```bibtex theme={null}
@article{bhatnagar2025progen3,
  title={Scaling unlocks broader generation and deeper functional understanding of proteins},
  author={Bhatnagar, Aadyot and Jain, Sarthak and Beazer, Joel and Curran, Samuel C and Hoffnagle, Alexander M and Ching, Kyle S and Martyn, Michael and Nayfach, Stephen and Ruffolo, Jeffrey A and Madani, Ali},
  journal={bioRxiv},
  year={2025},
  doi={10.1101/2025.04.15.649055},
  publisher={Cold Spring Harbor Laboratory}
}
```

&#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 the ProGen3 autoregressive language model.

Each proposal gets one prompt (a single prompt is replicated across proposals) and is
overwritten with ProGen3's continuation. The new-residue budget fills the segment:
`segment_length - prompt_length` when the prompt is kept, else `segment_length`.
`BeamSearchOptimizer` accepts it with `direction="forward"`: beam search appends each
step's residues to the C-terminal end of the beam, which reverse generation does not grow.

## API Reference

ConfigProGen3GeneratorConfig[ Source](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/generator/progen3_generator.py#L33)

Configuration object for ProGen3Generator.

Sampling defaults follow `ProGen3SampleConfig` in proto-tools
(`proto_tools/tools/causal_models/progen3/progen3_sample.py`). The number of new
residues is derived from the assigned segment's length, as for `ProGen2Generator`.

> [!NOTE]
>
> ProGen3 may emit its end token before the segment is full, so outputs can be shorter
> than the segment (the generator base class logs a warning when they are); raise
> `min_new_tokens` to prevent that. A generation that runs out of budget is trimmed to
> it, since `progen3-sample` can return up to two residues more than `max_new_tokens`.

**prompts** `List[string]` *required*

Prompt sequences (plain residues, N to C) for protein generation

**model\_checkpoint** `enum` (default: progen3-762m)

ProGen3 model variant to load (e.g. progen3-762m).

Options: `progen3-112m`, `progen3-219m`, `progen3-339m`, `progen3-762m`, `progen3-1b`, `progen3-3b`

**direction** `enum` (default: forward)

'forward' extends the prompt toward the C-terminus; 'reverse' toward the N-terminus.

Options: `forward`, `reverse`

**local\_path** `string`

Path to local model weights

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

GPU device to run ProGen3 on (e.g. 'cuda' or 'cuda:0').

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

Sharpness of sampling. Below 1 favors high-probability tokens; above 1 increases diversity.

**top\_p** `number` (default: 0.95)

Nucleus sampling cumulative probability cutoff. 1.0 disables nucleus sampling.

**min\_new\_tokens** `integer` (default: 1)

Fewest new residues before ProGen3 may stop; raise it to force full-length output.

**prepend\_prompt** `boolean` (default: True)

Whether to prepend prompt to generation

**batch\_size** `integer` (default: 1)

Number of sequences to process simultaneously on GPU

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

Whether to print verbose output

## Usage

```python python icon="python" theme={null}
>>> from proto_language.core import Segment
>>> from proto_language.generator import ProGen3Generator, ProGen3GeneratorConfig
>>> gen = ProGen3Generator(ProGen3GeneratorConfig(prompts="RYTE", direction="reverse"))
>>> segment = Segment(length=80, sequence_type="protein")
>>> gen.assign(segment)
>>> gen.sample()  # up to 76 residues grown N-terminal of RYTE, returned N→C
```

## Metadata

| Property | Value |
| - | - |
| Key | `progen3` |
| Class | `ProGen3Generator` |
| Category | `autoregressive` |
| Input Type | `prompt` |
| 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.