AlphaGenome 2 is Google DeepMind's next-generation deep learning foundation model for predicting the functional regulatory effects of DNA sequences at single-base resolution. Building on AlphaGenome 1, AlphaGenome 2 introduces improved cell-type specificity, modality imputation across 2,799 Human and 838 Mouse biological conditions, and generalization to custom single-cell RNA-seq datasets.
This guide describes the hardware requirements, deployment options, and Python
SDK workflows for self-deploying and querying AlphaGenome 2
(google/alphagenome2, version alphagenome2-001) in your own Google Cloud
project on Gemini Enterprise Agent Platform.
Key capabilities
Self-deploying AlphaGenome 2 on Gemini Enterprise Agent Platform provides the following capabilities:
- Multimodal and multi-species predictions: Predict regulatory activity
across 14 genomic modalities: gene expression (
RNA_SEQ,CAGE), chromatin accessibility (ATAC,DNASE), histone modifications and transcription factor binding (CHIP_HISTONE,CHIP_TF), DNA methylation (METHYLATION), RNA splicing (SPLICE_SITES,SPLICE_SITE_USAGE,SPLICE_JUNCTIONS), 3D chromatin contact maps (CONTACT_MAPS), and single-cell modalities (SC_ATAC,SC_GENE_EXPRESSION, andSC_GENE_EXPRESSION_DENOISED, which requirescell_conditioning) for Human (GRCh38/Organism.HOMO_SAPIENS) and Mouse (GRCm38/Organism.MUS_MUSCULUS). - Flexible context windows up to 1 MB: Supports DNA sequence lengths of
16 KB (
16,384 bp), 100 KB (131,072 bp), 500 KB (524,288 bp), and 1 MB (1,048,576 bp). - Multi-species reference ontology conditions and modality imputation:
Query observed and imputed tracks across 2,799 Human
(
Organism.HOMO_SAPIENS) and 838 Mouse (Organism.MUS_MUSCULUS) tissue and cell-type ontology conditions (UBERON,CL,EFO,CLO, andNTR). - Single-cell conditioning and cell state encoder:
- Condition DNA sequence and variant predictions on custom single-cell
RNA-seq count matrices (
anndata.AnnDatawith raw integer UMI counts and EnsemblENSG...gene IDs) by passingcell_conditioning. - Extract latent single-cell embeddings (
CELL_EMBEDDINGS) usingdna_model.encode_cells(adata)(automatically batched in parallel).
- Condition DNA sequence and variant predictions on custom single-cell
RNA-seq count matrices (
- Model fold selection: Query either the full post-trained ensemble
(
ModelVersion.ALL_FOLDS, default) or cross-validation fold 1 (ModelVersion.FOLD_1). When usingModelVersion.FOLD_1withencode_cellsorcell_conditioning, the cell encoder masks genes outside fold 1 training intervals. - Unified gRPC and HTTP streaming container: Large multi-modality 1 MB track predictions are automatically streamed in compressed sub-6 MB binary protobuf chunks and transparently reassembled by the client SDK over both gRPC and HTTP.
Differences from AlphaGenome 1
Compared with AlphaGenome 1, AlphaGenome 2 introduces the following changes:
- Condition required on every call: Every prediction and scoring call
requires either a reference condition (
condition=) or human single-cell expression conditioning (cell_conditioning=), evaluating one condition per call. - Cell-type-specific conditioning and imputation: Query observed and
imputed tracks across 2,799 Human (
Organism.HOMO_SAPIENS) and 838 Mouse (Organism.MUS_MUSCULUS) reference ontology conditions usingsupported_conditions(). Every output track carries animputation_modelabel (observed,imputed_supported, orimputed_exploratory). - Expression conditioning without fine-tuning: Pass your own human
single-cell RNA-seq count matrix (
anndata.AnnData) throughcell_conditioningto predict regulatory activity and variant effects in unseen cell states, or extract latent embeddings withencode_cells. - Updated modalities and variant scores: Adds
METHYLATION,SC_ATAC,SC_GENE_EXPRESSION, andSC_GENE_EXPRESSION_DENOISED, and removesPROCAP(useCAGEfor transcription start site activity).SPLICE_SITESis condition-specific with five channels per condition,CONTACT_MAPSvalues aren't directly comparable to AlphaGenome 1, and variant scorers returnraw_scoreonly (noquantile_scorecolumn). For full porting details, see Migrating from AlphaGenome 1.
Hardware and deployment requirements
Because of AlphaGenome 2's architecture and up to 1 MB sequence context window, each model replica requires an 80 GB NVIDIA A100 or H100 accelerator.
Supported VM and GPU configurations
AlphaGenome 2 requires at least one node. Select from the following supported machine types that provide 80 GB of GPU memory per accelerator:
| Accelerator family | Supported machine types | GPUs per replica |
|---|---|---|
| NVIDIA H100 (80 GB) | a3-highgpu-1g, a3-highgpu-2g, a3-highgpu-4g, a3-highgpu-8g |
1, 2, 4, or 8 |
| NVIDIA H100 Mega (80 GB) | a3-megagpu-8g |
8 |
| NVIDIA A100 (80 GB) | a2-ultragpu-1g, a2-ultragpu-2g, a2-ultragpu-4g, a2-ultragpu-8g |
1, 2, 4, or 8 |
Quota requirements
Before deploying AlphaGenome 2, verify that your Google Cloud project
has sufficient serving quota in the target region (such as us-central1) for
the accelerator family you select:
aiplatform.googleapis.com/custom_model_serving_nvidia_h100_gpusaiplatform.googleapis.com/custom_model_serving_nvidia_h100_mega_gpusaiplatform.googleapis.com/custom_model_serving_nvidia_a100_80gb_gpuscompute.googleapis.com/gpus_per_gpu_family
Deploy AlphaGenome 2
Deploy AlphaGenome 2 (publishers/google/models/alphagenome2, version
alphagenome2-001) into your Google Cloud project from the
AlphaGenome 2 Model Garden model card.
For general step-by-step instructions on deploying self-hosted models from
Model Garden, see
Deploy open models from Model Garden.
Initial endpoint deployment can take up to 60 minutes while container weights
load and pass health checks.
The alphagenome2-001 container runs both an HTTP/2 gRPC server on port 8081
and an HTTP streaming server (:streamRawPredict) on port 8080. The client
transport you use depends on the Endpoint access setting you choose when
deploying in Model Garden:
| Model Garden endpoint access option | Protocol and API | Python SDK factory | Primary use case |
|---|---|---|---|
| Public (shared endpoint) | gRPC (PredictionService.StreamDirectRawPredict, port 8081) |
create_grpc_client() |
Lowest latency and highest throughput. Streams binary protobuf chunks over native HTTP/2 gRPC without JSON or base64 framing overhead; suited for 1 MB multi-modality predictions and high-concurrency workloads such as in silico saturation mutagenesis (score_ism_variants). |
| Public (dedicated endpoint) (UI default) | HTTP (:streamRawPredict, port 8080) |
create_http_client() |
HTTPS-only environments. Streams chunked proto_b64 payloads over HTTPS to a dedicated endpoint DNS (ENDPOINT_ID.LOCATION-PROJECT_NUMBER.prediction.vertexai.goog), suited for networks where corporate firewalls or proxies restrict outbound gRPC. |
Use AlphaGenome 2
You can interact with a deployed AlphaGenome 2 endpoint programmatically using the Python SDK over gRPC on shared endpoints or HTTP on dedicated endpoints.
Prerequisites and authentication
Before querying your deployed AlphaGenome 2 endpoint, complete the following steps:
Identity and Access Management (IAM) permissions: Ensure that your execution environment (local workstation, Compute Engine VM, Gemini Enterprise Agent Platform Workbench, or Colab Enterprise) is authenticated with user or service account credentials granted the Agent Platform User (
roles/aiplatform.user) role on the project hosting your endpoint. If you use service account impersonation (service_account=...), your caller credentials also need the Service Account Token Creator (roles/iam.serviceAccountTokenCreator) role on the target service account.Authenticate Application Default Credentials (ADC):
gcloud auth application-default login
Install the Python SDK
The wheel file for the AlphaGenome 2 Cloud SDK (v0.1.4) is available
in the
GoogleCloudPlatform GitHub repository.
In a Python 3.11 or later virtual environment, download and install the wheel
file (which also installs alphagenome>=2.0.0 and required dependencies):
# Download the AlphaGenome 2 Cloud SDK wheel file
wget -q https://github.com/GoogleCloudPlatform/vertex-ai-samples/raw/main/notebooks/community/alphagenome/whl/alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whl
# Install the wheel file and runtime dependencies
pip install alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whl
Initialize the client
Both GrpcDnaClient (create_grpc_client) and HttpDnaClient
(create_http_client) implement the standard AlphaGenome 2 DnaModel
interface. All downstream prediction, scoring, and visualization code is
identical regardless of which transport you initialize.
Shared (standard) endpoint over gRPC
Use create_grpc_client to connect to a shared (standard) endpoint over gRPC:
import alphagenomev2_cloud_sdk
# Replace PROJECT_ID, LOCATION (for example, "us-central1"), and ENDPOINT_ID
# with your deployed shared endpoint details.
dna_model = alphagenomev2_cloud_sdk.create_grpc_client(
endpoint="projects/PROJECT_ID/locations/LOCATION/endpoints/ENDPOINT_ID",
# service_account="SERVICE_ACCOUNT_EMAIL", # Optional: SA impersonation
model_version=alphagenomev2_cloud_sdk.ModelVersion.ALL_FOLDS, # Or ModelVersion.FOLD_1
)
Dedicated endpoint over HTTP
Use create_http_client to connect to a dedicated endpoint over HTTP:
import alphagenomev2_cloud_sdk
# Replace ENDPOINT_DNS (for example,
# "1234567890.us-central1-123456789012.prediction.vertexai.goog"),
# PROJECT_ID, and LOCATION with your deployed dedicated endpoint details.
dna_model = alphagenomev2_cloud_sdk.create_http_client(
endpoint="ENDPOINT_DNS",
project="PROJECT_ID",
location="LOCATION",
# service_account="SERVICE_ACCOUNT_EMAIL", # Optional: SA impersonation
model_version=alphagenomev2_cloud_sdk.ModelVersion.ALL_FOLDS, # Or ModelVersion.FOLD_1
)
Replace the following:
<var>PROJECT_ID</var>: Your Google Cloud project ID.<var>LOCATION</var>: The region where your endpoint is deployed (for example,us-central1).<var>ENDPOINT_ID</var>: The numeric ID of your deployed Agent Platform endpoint.<var>ENDPOINT_DNS</var>: The dedicated endpoint domain name (<var>ENDPOINT_ID</var>.<var>LOCATION</var>-<var>PROJECT_NUMBER</var>.prediction.vertexai.goog), available on the endpoint details page in the Google Cloud console or in thededicatedEndpointDnsfield ofgcloud ai endpoints describe.<var>SERVICE_ACCOUNT_EMAIL</var>: Optional email address of a service account to impersonate.
Examples and tutorials
Because dna_model implements the standard AlphaGenome 2 DnaModel
interface (predict_sequence, predict_interval, predict_variant,
score_variant, score_interval, score_ism_variants, encode_cells,
supported_conditions, and observed_metadata), you can run the examples,
tutorials, and biological workflows in the
official Google DeepMind AlphaGenome documentation
directly against your deployed Google Cloud endpoint:
- Install
alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whlas shown in Install the Python SDK. - Replace the
dna_client.create(...)client initialization step in the example withdna_model = alphagenomev2_cloud_sdk.create_grpc_client(...)ordna_model = alphagenomev2_cloud_sdk.create_http_client(...)as shown in Initialize the client. - Run all downstream prediction, variant scoring, in silico mutagenesis,
single-cell conditioning (
cell_conditioning), and visualization code unchanged.
Pricing
AlphaGenome 2 self-deployed endpoints use consumption-based pricing with an hourly per-GPU model license fee (premium) billed on top of standard GPU infrastructure costs for the hours your endpoint has active serving replicas:
- Per-GPU-hour model license fee (premium): Charged per attached GPU for
every active serving hour
(
gpu_count_per_replica * active_replicas * active_hours), scaling automatically with replica count during autoscaling and stopping immediately when the model is undeployed or the endpoint is deleted. - Infrastructure compute costs: Standard Gemini Enterprise Agent Platform endpoint GPU and host VM charges apply. If you deploy on reserved capacity, compute charges are covered by your existing Compute Engine GPU reservation, and the per-GPU-hour AlphaGenome 2 license fee continues to apply.
For AlphaGenome 2 per-GPU-hour premium rates, check the Pricing details on the AlphaGenome 2 Model Garden model card or contact a Google Cloud sales specialist. For underlying compute infrastructure pricing, see Agent Platform pricing.
Limitations
AlphaGenome 2 self-deployed endpoints have the following limitations:
- Research use only: AlphaGenome 2 is a research tool and isn't intended or cleared for clinical diagnostic use.
- 1 MB context horizon and sequence alphabet: A single prediction query
can't capture long-range genomic interactions spanning more than 1 MB
(
1,048,576 bp). Input sequences accept onlyA,C,G,T, andNcharacters. - Single-cell conditioning scope and batch limits: Dynamic single-cell
conditioning (
cell_conditioning) and cell encoding (encode_cells) support Human (Organism.HOMO_SAPIENS) data only and don't perform batch-effect correction across datasets. Passingcell_conditioning=adatato prediction or variant-scoring methods enforces a hard maximum of 256 cells (MAX_CONDITIONING_CELLS = 256) and doesn't auto-batch. Passing more than 256 cells raisesValueError; subsample larger populations usinggene_counts_condition.subsample(adata, n_cells=256, label_key=...)fromalphagenome.models.v2. By contrast,dna_model.encode_cells(adata)automatically batches largerAnnDatainputs into parallel requests of at most 256 cells. - Variant scorer limits: Each
score_variantcall accepts at most 23 scorers (MAX_VARIANT_SCORERS_PER_REQUEST = 23).PolyadenylationScorer(RECOMMENDED_VARIANT_SCORERS["POLYADENYLATION"]) is supported for Human (Organism.HOMO_SAPIENS) only and raisesValueErroron Mouse (Organism.MUS_MUSCULUS). - No fine-tuning: Fine-tuning on private training datasets isn't supported
in this release; use
cell_conditioningto adapt to unseen human cell states without retraining. - Input gradients (
predict_interval_gradients): Disabled by default on self-deployed endpoints to reduce startup time and memory usage. Enable input gradients at deploy time by setting the container environment variableENABLE_INPUT_GRADIENTS=true.
Scientific reference directory
The following table lists primary reference materials, literature, and resources for AlphaGenome 2:
| Resource type | Title and link | Description |
|---|---|---|
| Pre-print article | AlphaGenome 2 predicts regulatory activity and variant effects across cell states, bioRxiv (November 2026) | Scientific manuscript detailing the AlphaGenome 2 conditional architecture, expression conditioning, imputation, and benchmarks. |
| Announcement | AlphaGenome 2: Deciphering how cells read DNA to better understand disease, Google DeepMind blog (November 2026) | Release blog post outlining cell-type-specific variant prediction and single-cell conditioning capabilities. |
| Overview hub | AlphaGenome, Google DeepMind | Overview of AlphaGenome 2, AlphaGenome Atlas, case studies, and research tools. |
| API documentation | AlphaGenome documentation | Technical documentation, Python SDK reference, tutorials, and the AlphaGenome 1 migration guide. |
| AlphaGenome 1 paper | Advancing regulatory variant effect prediction with AlphaGenome, Nature (January 2026) | Peer-reviewed publication for the AlphaGenome 1 model. |
| AlphaGenome Atlas pre-print | AlphaGenome Atlas: in silico mutagenesis of the entire human genome improves prioritization and interpretation of non-coding variants, medRxiv (September 2026) | Manuscript describing genome-wide in silico mutagenesis across 9 billion human variants and the AlphaGenome Variant Impact (AVI) score. |
Support and feedback
You can get documentation and support for AlphaGenome 2 in the following ways:
- API reference and tutorials: See the
official AlphaGenome documentation
for full API schemas, data structures, and biological tutorials. To run any
official tutorial against your Google Cloud endpoint, replace the
dna_clientinitialization step withcreate_grpc_client(...)orcreate_http_client(...)as shown in Initialize the client. - Genomic science and model output support: Join the AlphaGenome Community Forum for questions about biology, model predictions, and interpretation.
- Infrastructure and deployment support: For questions about GPU quotas, endpoint deployment, or billing, contact your Google Cloud account team or open a case with Cloud Customer Care.
What's next
- Run serverless predictions without managing GPUs with AlphaGenome 2 (MaaS).
- Learn about GA self-deployed versions in AlphaGenome 1.