# Evo 2
Score and embed DNA sequences with Arc Institute's Evo 2 genome language model.
- Job type: `EVO2`
- Task: Embeddings
- Price: 1 credit a run
- Behavior and limits: DNA (A/C/G/T/N) only, 7B checkpoints (7b/7b_base/7b_262k via params.model). Autoregressive: params.reduce returns pll_sum/pll_mean/entropy and params.score_mutations scores each variant by a forward pass (loglik + delta vs reference). Sequences cap at 8192 bases. Results come back from GET /v1/jobs/{id}/embeddings.
- Source: Arc Institute (https://github.com/ArcInstitute/evo2)
- Paper: Brixi et al., Genome modeling and design across all domains of life with Evo 2. bioRxiv 2025. doi:10.1101/2025.02.18.638918

## Example

### CLI

```bash
# layers takes a list the example cannot fill; pass it from Python or HTTP
phi jobs submit EVO2 \
  --input sequences=AGAGCGTCGGGATATCGGGTGGCGGCTCGGGACGGAGGACGCGCTAGTGTGAGTGCGGGC \
  --param model=7b \
  --param pooling=mean \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    job = phi.jobs.submit(
        "EVO2",
        inputs={
        "sequences": [
                "AGAGCGTCGGGATATCGGGTGGCGGCTCGGGACGGAGGACGCGCTAGTGTGAGTGCGGGC"
        ]
        },
        params={
        "model": "7b",
        "pooling": "mean",
        "layers": []
        },
    )
    print(phi.jobs.wait(job.job_id).status)
```

### HTTP

```bash
curl -X POST https://api.dynophi.com/v1/jobs \
  -H "x-api-key: $PHI_KEY" -H "content-type: application/json" \
  -d '{
  "job_type": "EVO2",
  "inputs": {
    "sequences": [
      "AGAGCGTCGGGATATCGGGTGGCGGCTCGGGACGGAGGACGCGCTAGTGTGAGTGCGGGC"
    ]
  },
  "params": {
    "model": "7b",
    "pooling": "mean",
    "layers": []
  }
}'
```

## Parameters

| Name | Type | Default | Description |
|---|---|---|---|
| `gpu` | string one of a100, t4, a100_80gb, h100, a100_or_h100, a100_80gb_or_h100, a100_preferred, h100_preferred | `null` | Per-job GPU class override. |
| `model` (essential) | string one of 7b, 7b_base, 7b_262k | `"7b"` | Evo 2 7B checkpoint: '7b' (1M context), '7b_base' (8k), '7b_262k' (262k). |
| `pooling` (essential) | string one of mean, none | `"mean"` | 'mean' = one vector per sequence; 'none' = per-nucleotide. |
| `layers` (essential) | list of integer | string | `null` | StripedHyena block indices (0..31) to return embeddings for; each index i selects that block's MLP output ('blocks.{i}.mlp.l3'). 'all' returns every block; omit for the default intermediate layer. Per-nucleotide output ('none') is capped at 4 layers. |
| `score_mutations` | list of string | `null` | Default mutations to score against the reference sequence: substitutions '<wt><1-based pos><mut>' over A/C/G/T (e.g. 'A104G'), insertions 'ins<pos>:<bases>' (e.g. 'ins588:ACGT', inserted after 1-based position 588), or deletions 'del<start>-<end>' (e.g. 'del588-594', inclusive). Evo 2 is autoregressive, so every spec is scored by forward-passing the reconstructed variant: each returns the variant's mean per-nucleotide log-likelihood and its delta vs the reference. Applied to every sequence without its own list; override per sequence via the sequence object's 'mutations' key. |
| `reduce` | list of string | `null` | Whole-sequence reductions over the autoregressive logits, returned inline under 'reductions'. Names: 'pll_sum', 'pll_mean' (mean per-nucleotide log-likelihood), 'entropy' (mean per-position Shannon entropy in nats). |
| `region` | list of integer | `null` | [start, end] window (1-based, inclusive) restricting pooling and per-residue rows to a sub-window of the sequence. Omit for the whole sequence. Cannot be combined with score_mutations (mutation positions are full-sequence 1-based). |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `sequences` (essential) | list of string | EVO2SequenceInput |  | DNA sequences to score and embed (bare strings or objects). |

---
Source: https://dynophi.com/docs/models/EVO2. From the live API schema and phi-api's model catalog, 2026-11-23.