
NVIDIA/BioNeMo Evo2 7B
NVIDIA NIM for Evo 2 7B genomic DNA sequence generation and embeddings.
BioNeMo Evo2 7B is a 7-billion-parameter genomic foundation model built on a StripedHyena architecture 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 like zero-shot function prediction for genes and generating synthetic CRISPR-Cas molecular complexes.
Call BioNeMo Evo2 7B on Baseten using the NIM DNA generation route.
Input
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
{
"sequence": "TATAAAAGGCTACGATCGATCGATCGATCGAT...",
"sampled_probs": [
0.98,
0.97
],
"elapsed_ms": 123
}