Please rotate your device

To continue exploring this website, please rotate your device to a vertical orientation

BioNeMo Evo2 40B

NVIDIA/BioNeMo Evo2 40B

NVIDIA NIM for Evo 2 40B genomic DNA sequence generation and embeddings.

biology

BioNeMo Evo2 40B is a 40-billion-parameter genomic foundation model built on a StripedHyena architecture — the largest AI model for biology to date, trained on nearly 9 trillion nucleotides — that enables prediction and generation tasks from the molecular to genome scale. It takes a DNA sequence (string) as input and generates a DNA sequence (string) as output, supporting use cases such as zero-shot function prediction for genes, generating synthetic CRISPR-Cas molecular complexes, and predicting gene essentiality at nucleotide resolution.

Call BioNeMo Evo2 40B on Baseten using the NIM DNA generation route.

Input

python
import os
import requests

MODEL_ID = os.environ["BASETEN_MODEL_ID"]
BASETEN_API_KEY = os.environ["BASETEN_API_KEY"]
BASETEN_URL = (
    f"https://model-{MODEL_ID}.api.baseten.co/environments/production/sync"
    "/biology/arc/evo2/generate"
)

payload = {
    "sequence": "TATAAAAGGCTACGATCGATCGATCGATCGAT",
    "num_tokens": 64,
    "top_k": 3,
    "temperature": 0.7,
    "enable_sampled_probs": True,
}

response = requests.post(
    BASETEN_URL,
    headers={
        "Authorization": f"Bearer {BASETEN_API_KEY}",
        "Content-Type": "application/json",
    },
    json=payload,
    timeout=300,
)
response.raise_for_status()
result = response.json()
print(result)

Output

json
{
  "sequence": "TATAAAAGGCTACGATCGATCGATCGATCGAT...",
  "sampled_probs": [
    0.98,
    0.97
  ],
  "elapsed_ms": 123
}