evo2
What it does
This skill teaches an agent how to use Evo 2, a large model trained on DNA. It can estimate how likely a sequence is, turn DNA into numbers for other tools, or generate new DNA after a prefix.
When to use it
- βWhen a researcher wants to score how a DNA variant changes sequence likelihood.
- βWhen a researcher needs embeddings of DNA windows for a classifier.
- βWhen a scientist wants new DNA generated from a starting sequence.
Skill link
https://github.com/aipoch/open-science/blob/main/resources/skills/evo2/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βScore these DNA variants with Evo 2 and tell me which ones lower the likelihood most.β
5 new skills a week. 1 minute to read.
How it works
The agent loads an Evo 2 model size that fits the GPU, then scores each sequence by its average log-likelihood. It can also embed windows or generate DNA that continues from a prompt.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Evo 2 β DNA Language Model
Prerequisites
| Requirement | Minimum | Recommended |
|---|---|---|
| Python | 3.11 | 3.12 (<3.13) |
| CUDA | 12.1+ | 12.4+ |
| GPU VRAM | 24 GB (7B bf16) | 80 GB (40B) |
| RAM | 32 GB | 128 GB |
How to run
Installation
pip install evo2
# Weights pulled from Hugging Face on first model load.
Loading and scoring
from evo2 import Evo2
model = Evo2("evo2_7b") # or "evo2_40b" β see model table
seqs = ["ATCG" * 50, "GGGCTTAA" * 25]
ll = model.score_sequences(seqs) # β list[float], mean per-token log-likelihood
print(ll)
Generation
out = model.generate(
prompt_seqs=["ATGAAAGCT"],
n_tokens=256,
temperature=0.7,
)
print(out.sequences[0])
Models
| Name | Params | Context | VRAM (bf16) | Notes |
|---|---|---|---|---|
evo2_7b |
7 B | 1 M nt | ~22 GB | Default; fits on a single 24 GB+ GPU |
evo2_40b |
40 B | 1 M nt | ~78 GB | H100 80 GB or multi-GPU |
evo2_1b_base |
1 B | 8 K nt | ~6 GB | FP8 path requires sm_89+ (H100) |
Output format
score_sequences returns a list[float] (or np.ndarray) of mean log-likelihoods,
one per input sequence. More negative β less likely under the model. For variant
effect, compute Ξll = ll_alt - ll_ref over a fixed window.
generate returns a GenerationOutput with .sequences (list[str]), .logits
(list[Tensor]), and .logprobs_mean (list[float]) β always populated, no flag required.
Decision tree
Need a DNA model?
β
ββ Per-base/per-sequence likelihood, generation β Evo 2 β
ββ Predict experimental tracks (expression, accessibility) β borzoi
ββ Protein, not DNA β fair-esm2 / esmfold2
Remote compute
7B/40B inference is GPU-bound (β₯24 GB / 80 GB VRAM). Read
compute_details({provider, mode:'read'}) for an environment with evo2 +
flash-attn and a pre-cached HF weight mount, then submit:
c = host.compute.create(provider)
job = c.submitJob(
intent="Evo2-7B score 200bp variant window β 1ΓGPU, ~2 min",
inputs=[{"src": "score_evo2.py", "dstFilename": "score_evo2.py"}],
command="python3 score_evo2.py", # env selection is host-specific β see compute_details for your provider
outputs=["scores.json"],
timeoutSeconds=1800,
)
print(job.job_id) # cell ends here β kernel never blocks on compute
Retain the exact returned job_id. Query that saved ID with the non-blocking
c.attachJob(job_id).status() or .result() when its state or result is relevant; do not scan Job
history. A final .result() read reports whether its follow-up was suppressed or had already been
committed; otherwise the app starts the later analysis turn for an unread final result. See the
remote-compute-ssh skill for details.
Inside score_evo2.py, point HF_HOME at the provider's weight-cache mount
(path is in compute_details) and set HF_HUB_OFFLINE=1 so the loader
doesn't try to write refs/ into a read-only mount. Weight footprint:
~15 GB (7B), ~80 GB (40B).
Typical performance
| Task | 7B on H100 | Notes |
|---|---|---|
| Model load (cached) | ~5-7 min | First call hydrates weights |
score_sequences, 200Γ200bp |
~10-20 s | After load |
generate, 1Γ512 nt |
~15 s |
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Transformer Engine not installed |
No FP8 β falls back to bf16 | Informational only on non-H100; ignore |
| OOM on load | 40B on <80 GB GPU | Use evo2_7b or shard with device_map |
HF tries to write refs/main |
HF_HOME points at RO mount |
Set HF_HUB_OFFLINE=1 |
dtype mismatch in score_sequences |
Passing tensors not strings | Pass list[str]; the API tokenises for you |
Next: pair with borzoi to predict track-level effects of t
FAQ
Which model size should I use?
The skill says the 7 billion parameter model fits a single 24 GB GPU, and the 40 billion parameter model needs a large GPU or several.
What hardware is needed?
The skill lists at least 24 GB of GPU memory for the 7B model, and 80 GB is recommended for 40B.
Are weights downloaded automatically?
Yes. The skill says weights are pulled from Hugging Face on the first model load.
Details
Original description by the author
Score, embed, and generate DNA sequences with Evo 2, a long-context genomic foundation model. Use this skill when: (1) Computing per-nucleotide or per-sequence likelihoods for variant effect scoring, (2) Embedding genomic windows for downstream classification, (3) Generating DNA conditioned on a prefix, (4) Scoring regulatory or coding regions across species.
repo: aipoch/open-science
Popularity
- GitHub stars
- 5.4k
- Ranking position
- #14859
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
alphafold2
5.4kHelps your agent predict a protein's 3D structure from its sequence, including protein complexes, using AlphaFold2 through the ColabFold runner.
boltz
5.4kHelps your agent predict the structure of protein, DNA, RNA, and small-molecule complexes using the open-source Boltz-2 model, with optional binding affinity estimates.
borzoi
5.4kHelps your agent predict genome-wide activity tracks, such as expression and accessibility, from DNA sequence, and compare variants by their predicted effect.
chai1
5.4kHelps your agent predict the structure of protein, nucleic acid, and ligand complexes from one FASTA file, using the Apache-licensed Chai-1 model.
Similar skills
pytorch-patterns
280kHelps your agent use PyTorch for machine learning models. It applies best practices for efficient model training and ensures reproducible results.
evm-token-decimals
280kHelps your agent avoid errors with decimal numbers across different blockchain networks. It ensures token values are accurate in transactions and calculations.
ito-inference
280kLets your agent check the availability of AI models for use. It connects the compute request with the ready model service.