> [!NOTE]
>
> **Private Preview**
>
>
> This product is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1), and the
> [Additional Terms for Generative AI
> Preview Products](https://cloud.google.com/trustedtester/aitos).
>
> You can process personal data for
>
> this product
>
> as outlined in the
> [Cloud Data
> Processing Addendum](https://docs.cloud.google.com/terms/data-processing-addendum), subject to the obligations and restrictions described in the
> agreement under which you access Google Cloud.
>
> Pre-GA products are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

> [!IMPORTANT]
> **Important:** AlphaGenome 2 is a research tool and is **not** intended or cleared for clinical diagnostic use.

[AlphaGenome 2](https://doi.org/10.64898/2026.11.11.765857) 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](https://doi.org/10.1038/s41586-025-10014-0),
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.

> [!NOTE]
> **Note:** For serverless, zero-infrastructure inference billed per Science Token, see [AlphaGenome 2 (MaaS)](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-maas.md.txt).

## 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`, and `SC_GENE_EXPRESSION_DENOISED`, which requires `cell_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`, and `NTR`).
- **Single-cell conditioning and cell state encoder** :
  - Condition DNA sequence and variant predictions on custom single-cell RNA-seq count matrices (`anndata.AnnData` with raw integer UMI counts and Ensembl `ENSG...` gene IDs) by passing `cell_conditioning`.
  - Extract latent single-cell embeddings (`CELL_EMBEDDINGS`) using `dna_model.encode_cells(adata)` (automatically batched in parallel).
- **Model fold selection** : Query either the full post-trained ensemble (`ModelVersion.ALL_FOLDS`, default) or cross-validation fold 1 (`ModelVersion.FOLD_1`). When using `ModelVersion.FOLD_1` with `encode_cells` or `cell_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](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome.md.txt),
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 using `supported_conditions()`. Every output track carries an `imputation_mode` label (`observed`, `imputed_supported`, or `imputed_exploratory`).
- **Expression conditioning without fine-tuning** : Pass your own human single-cell RNA-seq count matrix (`anndata.AnnData`) through `cell_conditioning` to predict regulatory activity and variant effects in unseen cell states, or extract latent embeddings with `encode_cells`.
- **Updated modalities and variant scores** : Adds `METHYLATION`, `SC_ATAC`, `SC_GENE_EXPRESSION`, and `SC_GENE_EXPRESSION_DENOISED`, and removes `PROCAP` (use `CAGE` for transcription start site activity). `SPLICE_SITES` is condition-specific with five channels per condition, `CONTACT_MAPS` values aren't directly comparable to AlphaGenome 1, and variant scorers return `raw_score` only (no `quantile_score` column). For full porting details, see [Migrating from AlphaGenome 1](https://www.alphagenomedocs.com/user_guides/ag1_vs_ag2.html).

## 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 |

> [!NOTE]
> **Note:** The 40 GB NVIDIA A100 `a2-highgpu` machine series isn't supported. To scale capacity dynamically for higher request concurrency, configure [autoscaling on your Agent Platform endpoint](https://docs.cloud.google.com/gemini-enterprise-agent-platform/machine-learning/predictions/autoscaling.md.txt). For detailed machine specifications, see [Configure compute resources for inference](https://docs.cloud.google.com/gemini-enterprise-agent-platform/machine-learning/predictions/configure-compute.md.txt#machine-types).

### 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_gpus`
- `aiplatform.googleapis.com/custom_model_serving_nvidia_h100_mega_gpus`
- `aiplatform.googleapis.com/custom_model_serving_nvidia_a100_80gb_gpus`
- `compute.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](https://console.cloud.google.com/agent-platform/publishers/google/model-garden/alphagenome2).
For general step-by-step instructions on deploying self-hosted models from
Model Garden, see
[Deploy open models from Model Garden](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/deploy-model-garden.md.txt).
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. |

> [!CAUTION]
> **Caution:** Do **not** pass a dedicated endpoint DNS (`*.prediction.vertexai.goog`) to `create_grpc_client()` unless your network routes direct gRPC to dedicated endpoints. Use `create_grpc_client()` with standard shared endpoints, and use `create_http_client()` with dedicated endpoints.

## 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:

1. **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.

2. **Authenticate Application Default Credentials (ADC)**:

   ```bash
   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](https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/community/alphagenome/whl/alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whl).
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):

```bash
# 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:

```python
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:

```python
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 the `dedicatedEndpointDns` field of `gcloud 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](https://www.alphagenomedocs.com)
directly against your deployed Google Cloud endpoint:

1. Install `alphagenomev2_cloud_sdk-0.1.4-py3-none-any.whl` as shown in [Install the Python SDK](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-self-deployed.md.txt#install-the-python-sdk).
2. Replace the `dna_client.create(...)` client initialization step in the example with `dna_model = alphagenomev2_cloud_sdk.create_grpc_client(...)` or `dna_model = alphagenomev2_cloud_sdk.create_http_client(...)` as shown in [Initialize the client](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-self-deployed.md.txt#initialize-the-client).
3. 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](https://console.cloud.google.com/agent-platform/publishers/google/model-garden/alphagenome2)
or [contact a Google Cloud sales specialist](https://cloud.google.com/contact).
For underlying compute infrastructure pricing, see
[Agent Platform pricing](https://cloud.google.com/products/gemini-enterprise-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 only `A`, `C`, `G`, `T`, and `N` characters.
- **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. Passing `cell_conditioning=adata` to 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 raises `ValueError`; subsample larger populations using `gene_counts_condition.subsample(adata, n_cells=256, label_key=...)` from `alphagenome.models.v2`. By contrast, `dna_model.encode_cells(adata)` automatically batches larger `AnnData` inputs into parallel requests of at most 256 cells.
- **Variant scorer limits** : Each `score_variant` call 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 raises `ValueError` on Mouse (`Organism.MUS_MUSCULUS`).
- **No fine-tuning** : Fine-tuning on private training datasets isn't supported in this release; use `cell_conditioning` to 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 variable `ENABLE_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)](https://doi.org/10.64898/2026.11.11.765857) | 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)](https://deepmind.google/blog/alphagenome-2-deciphering-how-cells-read-dna-to-better-understand-disease/) | Release blog post outlining cell-type-specific variant prediction and single-cell conditioning capabilities. |
| Overview hub | [AlphaGenome, Google DeepMind](https://deepmind.google/science/alphagenome/) | Overview of AlphaGenome 2, AlphaGenome Atlas, case studies, and research tools. |
| API documentation | [AlphaGenome documentation](https://www.alphagenomedocs.com) | Technical documentation, Python SDK reference, tutorials, and the [AlphaGenome 1 migration guide](https://www.alphagenomedocs.com/user_guides/ag1_vs_ag2.html). |
| AlphaGenome 1 paper | [Advancing regulatory variant effect prediction with AlphaGenome, *Nature* (January 2026)](https://doi.org/10.1038/s41586-025-10014-0) | 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)](https://doi.org/10.64898/2026.09.16.26363192) | 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](https://www.alphagenomedocs.com) for full API schemas, data structures, and biological tutorials. To run any official tutorial against your Google Cloud endpoint, replace the `dna_client` initialization step with `create_grpc_client(...)` or `create_http_client(...)` as shown in [Initialize the client](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-self-deployed.md.txt#initialize-the-client).
- **Genomic science and model output support** : Join the [AlphaGenome Community Forum](https://www.alphagenomecommunity.com/) 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)](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome-2-maas.md.txt).
- Learn about GA self-deployed versions in [AlphaGenome 1](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/alphagenome.md.txt).