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

# Evo1 DNA Language Model

> Evo1 genome language model for DNA sequence generation

![Evo1 DNA Language Model](https://proto-bio.github.io/proto-assets/images/generator/evo1/hero.png)

> [!NOTE]
>
> **License:** Evo1 is open source and free for academic and commercial use under an Apache-2.0 license. Please refer to [the license](https://github.com/evo-design/evo/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/evo1/social.png)

&#x20;Go to Tool Page

[Open](https://proto.evodesign.org/docs/tools/causal-models/evo1.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/d58aca210f720d4729abbfe6a8050f5c50ca0246/proto_language/generator/evo1_generator.py#L105)

@articlenguyen2024evo

```bibtex theme={null}
@article{nguyen2024evo,
  title={Sequence modeling and design from molecular to genome scale with Evo},
  author={Nguyen, Eric and Poli, Michael and Durrant, Matthew G and Kang, Brian and Katrekar, Dhruva and Li, David B and Bartie, Liam J and Thomas, Armin W and King, Samuel H and Brixi, Garyk and Sullivan, Jeremy and Ng, Madelena Y and Lewis, Ashley and Lou, Aaron and Ermon, Stefano and Baccus, Stephen A and Hernandez-Boussard, Tina and R{\'e}, Christopher and Hsu, Patrick D and Hie, Brian L},
  journal={Science},
  volume={386},
  number={6723},
  pages={eado9336},
  year={2024},
  publisher={American Association for the Advancement of Science},
  doi={10.1126/science.ado9336}
}
```

&#x20;Copy citation

Generator contributors[![](https://avatars.githubusercontent.com/u/46211285?v=4\&s=64)dguo8412](https://github.com/dguo8412)[![](https://avatars.githubusercontent.com/u/21143637?v=4\&s=64)bviggiano](https://github.com/bviggiano)
Sequence generator using the Evo1 genomic language model.

Supports multiple checkpoints including CRISPR and transposon fine-tuned
variants. The number of tokens to generate is automatically calculated
based on the assigned segment's sequence\_length.

## API Reference

ConfigEvo1GeneratorConfig[ Source](https://github.com/evo-design/proto-language/blob/d58aca210f720d4729abbfe6a8050f5c50ca0246/proto_language/generator/evo1_generator.py#L18)

Configuration object for Evo1Generator.

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

Prompt sequences for DNA generation (single prompt or multiple)

**model\_checkpoint** `enum` (default: evo-1-8k-base)

Evo1 model variant to load (e.g. evo-1-8k-base).

Options: `evo-1.5-8k-base`, `evo-1-8k-base`, `evo-1-131k-base`, `evo-1-8k-crispr`, `evo-1-8k-transposon`

**top\_k** `integer` (default: 4)

At each step, restrict sampling to the k most probable tokens.

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

Sharpness of the sampling distribution. Below 1 sharpens; above 1 increases diversity. Must be > 0.

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

Whether to prepend prompt to generation

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

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

**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}
>>> config = Evo1GeneratorConfig(
...     prompts="ATG",
...     model_checkpoint="evo-1-8k-crispr",
...     temperature=1.0,
... )
>>> gen = Evo1Generator(config)
>>> segment = Segment(length=1003, sequence_type="dna")
>>> gen.assign(segment)  # prepend_prompt defaults to False, so max_new_tokens = 1003
>>> gen.sample()
```

## Metadata

| Property | Value |
| - | - |
| Key | `evo1` |
| Class | `Evo1Generator` |
| Category | `autoregressive` |
| Input Type | `prompt` |
| Uses GPU | `True` |
| Supported Sequence Types | `dna` |
| Allows Empty Start | `False` |


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