> [!WARNING]
>
> **Preview**
>
>
> This feature 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).
>
> Pre-GA features 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).

Model Garden lets you self-deploy select partner models (preview).
Self-deployed models aren't serverless. You must deploy them on
Gemini Enterprise Agent Platform before you use them. These models deploy securely within your
Google Cloud project and VPC network. For more information about self-deployed
models, see the
[self-deployed models documentation](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-garden/self-deployed-models.md.txt).

## Purchase self-deployable partner models

To deploy self-deployable partner models on Gemini Enterprise Agent Platform, you must first
purchase them through Google Cloud Marketplace. To purchase a self-deployed partner
model, do the following:

1. Go to Model Garden.

   [Go to Model Garden](https://console.cloud.google.com/agent-platform/model-garden)
2. In **Model collections** , click **Self-deployable partner models** to filter
   the list of models.

3. Click the model card of the partner model that you want to purchase.

4. Click **Contact sales**.

5. Complete the form and submit your request.

After completing these steps, you'll be connected with a Google Cloud sales
representative to finalize the purchase.

## Deploy models

After purchasing a self-deployable partner model, you can deploy it to a
Gemini Enterprise Agent Platform Endpoint using **one-click deployment**. This process
simplifies deployment by pre-configuring the necessary settings.

You can perform one-click deployment using either the Google Cloud console or the
Agent Platform SDK for Python.

### Console

To deploy a partner model in the Google Cloud console, do the following:

1. Go to Model Garden.

   [Go to Model Garden](https://console.cloud.google.com/agent-platform/model-garden)
2. Locate and click the model card of the partner model that you want to use.

3. Click **Deploy model**.

4. Configure your deployment settings as prompted.

5. Click **Deploy**.

### Python

The following sample shows how to deploy a partner model using the
Agent Platform SDK for Python. Replace the placeholder values with your specific
information.

```python
import agentplatform
from agentplatform import types

client = agentplatform.Client(project="PROJECT_ID", location="LOCATION")

response = client.model_garden.deploy_publisher_model(
  # Replace with the actual partner model ID from Model Garden
  model="PARTNER_MODEL_ID",
  config=types.DeployPublisherModelConfig(
    accept_eula=True,
    machine_type="MACHINE_TYPE",  # e.g., "a3-ultragpu-8g"
    accelerator_type="ACCELERATOR_TYPE",  # e.g., "NVIDIA_H200_141GB"
    accelerator_count=ACCELERATOR_COUNT,  # e.g., 8
    endpoint_display_name="ENDPOINT_DISPLAY_NAME",
    model_display_name="MODEL_DISPLAY_NAME",
  ),
)
print(f"Model deployed to endpoint: {response.endpoint}")
```

Use a machine type and accelerator from the model's verified deployment
options. To list them, call
`client.model_garden.list_publisher_model_deploy_options(model="PARTNER_MODEL_ID")`.
Partner models use their publisher's serving container, so you can't override
the container image.

## What's next

- [Choose an open model serving option](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/choose-serving-option.md.txt)
- [Use open models using Model as a Service (MaaS)](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/use-maas.md.txt)
- [Deploy open models with prebuilt containers](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/use-prebuilt-containers.md.txt)
- [Deploy open models with a custom vLLM container](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/open-models/deploy-custom-vllm.md.txt)