evo2
यह क्या करती है
यह स्किल एजेंट को Evo 2 इस्तेमाल करना सिखाती है, जो DNA पर प्रशिक्षित एक बड़ा मॉडल है। यह अनुमान लगा सकता है कि कोई सीक्वेंस कितना संभव है, दूसरे टूल्स के लिए DNA को संख्याओं में बदल सकता है, या किसी प्रीफ़िक्स के बाद नया DNA बना सकता है।
कब इस्तेमाल करें
- ✓जब रिसर्चर स्कोर करना चाहता है कि कोई DNA वेरिएंट सीक्वेंस की संभावना को कैसे बदलता है।
- ✓जब रिसर्चर क्लासिफ़ायर के लिए DNA विंडो के embeddings चाहता है।
- ✓जब वैज्ञानिक किसी शुरुआती सीक्वेंस से नया DNA बनवाना चाहता है।
Skill का लिंक
https://github.com/aipoch/open-science/blob/main/resources/skills/evo2/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इन DNA वेरिएंट्स को Evo 2 से स्कोर कीजिए और बताइए कि कौन-से संभावना सबसे ज़्यादा घटाते हैं।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट GPU के अनुरूप Evo 2 मॉडल आकार लोड करता है, फिर हर सीक्वेंस को उसकी औसत log-likelihood से स्कोर करता है। वह विंडो को एम्बेड भी कर सकता है, या प्रॉम्प्ट के बाद आगे का DNA बना सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
किस मॉडल आकार का इस्तेमाल करूँ?
स्किल कहती है कि 7 अरब पैरामीटर वाला मॉडल एक 24 GB GPU पर चलता है, और 40 अरब पैरामीटर वाले को बड़ा GPU या कई GPU चाहिए।
कौन-सा हार्डवेयर चाहिए?
स्किल 7B मॉडल के लिए कम से कम 24 GB GPU मेमोरी बताती है, और 40B के लिए 80 GB की सलाह देती है।
क्या weights अपने-आप डाउनलोड होते हैं?
हाँ। स्किल कहती है कि पहली बार मॉडल लोड होने पर weights Hugging Face से लिए जाते हैं।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 5.4k
- रैंकिंग में स्थान
- #14859
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
alphafold2
5.4kयह आपके एजेंट को ColabFold रनर के ज़रिए AlphaFold2 से प्रोटीन की 3D संरचना उसके सीक्वेंस से अनुमानित करने देती है, प्रोटीन कॉम्प्लेक्स सहित।
boltz
5.4kयह आपके एजेंट को Boltz-2 मॉडल से प्रोटीन, DNA, RNA और छोटे अणुओं के कॉम्प्लेक्स अनुमानित करने देती है, वैकल्पिक बाइंडिंग एफ़िनिटी के साथ।
borzoi
5.4kयह आपके एजेंट को DNA सीक्वेंस से जीनोम-व्यापी गतिविधि ट्रैक, जैसे एक्सप्रेशन और एक्सेसिबिलिटी, अनुमानित करने देती है, और वेरिएंट की अनुमानित असर से तुलना करने देती है।
chai1
5.4kयह आपके एजेंट को एक FASTA फ़ाइल से Apache लाइसेंस वाले Chai-1 मॉडल के साथ प्रोटीन, न्यूक्लिक एसिड और लिगैंड कॉम्प्लेक्स की संरचना अनुमानित करने देती है।
मिलती-जुलती skills
pytorch-patterns
280kआपके एजेंट को machine learning models के लिए PyTorch इस्तेमाल करने में मदद करता है। कुशल model training के best practices लागू करता है और नतीजों को दोहराने लायक रखता है।
evm-token-decimals
280kयह आपके एजेंट को अलग-अलग blockchain networks पर decimal numbers की गलतियों से बचने में मदद करता है। यह transactions और calculations में token values सही रखने का ध्यान रखता है।
ito-inference
280kआपके एजेंट को AI models की उपलब्धता जाँचने देता है। यह compute request को तैयार model service से जोड़ता है।