# Google Cloud connects AlloyDB Omni to local language models

Published 2026-11-23 · AI.info Team · AI.info

> AlloyDB Omni can call locally hosted language models directly from SQL, including Gemma 4 and Qwen3.8. Google Cloud published a Kubernetes example using Ollama to deploy and register a model.

## Models on local infrastructure

AlloyDB Omni can now call locally hosted language models directly from SQL, including Gemma 4 and Qwen3.8. The integration keeps prompts, data and model responses within the user’s environment, [Google Cloud](https://cloud.google.com/blog/products/databases/alloydb-omni-integration-with-local-models/) said in a blog post.

AlloyDB Omni is a downloadable edition of AlloyDB that can run on a customer’s infrastructure, including on-premises. Google describes the database as 100% PostgreSQL-compatible and says it can run in the cloud, in a data center or on a laptop.

The company identifies air-gapped networks and environments with data-locality requirements as potential settings for the integration. Examples include analyzing local logs, summarizing internal documents and running localized chatbots.

## Calling a model from SQL

In the setup Google describes, the database calls a local model server from a SQL query. The company says placing the model and database in the same local environment keeps data off the public internet and that local inference reduces network transit time.

AlloyDB Omni can also be paired with cloud-hosted models such as Gemini. Its database features include vector search, built-in AI functions and ScaNN indexing technology, which Google says also powers Google Search.

The post illustrates the local connection with a customer-feedback table. A SQL query uses the built-in *ai.generate* function to send comments to a registered model and return a short summary alongside each customer name.

## A Kubernetes example

Google’s walkthrough uses Google Kubernetes Engine, or GKE, to host both the database and the local model. It assumes a GKE cluster and the Kubernetes tools kubectl and Helm are already in place; the company says the same setup can be used on-premises or elsewhere.

The example uses the AlloyDB Omni Kubernetes operator to deploy the database and enables its machine-learning extension. The sample configuration specifies database version 18.4.0, with two CPUs, 4Gi of memory and a 20Gi data disk.

The model deployment uses [Ollama](https://ai.info/companies/ollama) and Gemma 4 from [Google DeepMind](https://ai.info/companies/google-deepmind). The instructions also show how to change the deployment to use Qwen3.8. The Gemma configuration requests four CPUs and 16Gi of memory; a comment in the configuration specifies 24Gi of memory for Qwen3.8. It also requests 30Gi of storage for the model deployment.

## Registering the model

After connecting to the database, the walkthrough registers the local model through the *google_ml_integration* extension. Its script defines transformations for the model’s input and output and registers an endpoint for the model server.

A separate output transformation removes chain-of-thought reasoning that the example says may appear inside tags in the response. Once the model is registered, the final example creates the feedback table, inserts sample comments and calls the model from a SQL client to summarize them.

## Sources

1. Original source · Blog post [Google Cloud](https://cloud.google.com/blog/products/databases/alloydb-omni-integration-with-local-models/) “AlloyDB Omni integration with local models” cloud.google.com

## Companies in this story

- [Google](https://ai.info/companies/google)
- [Google Cloud](https://ai.info/companies/google-cloud)

## In the tracker

- [Gemma 4](https://ai.info/tracker/models/gemma-4)

## Related stories

- [OpenAI Brings Three Models and Codex to Google Cloud](https://ai.info/news/openai-models-codex-google-cloud)
- [Ollama brings Inkling 2 Mini to local Macs in preview](https://ai.info/news/ollama-inkling-2-mini-local-preview)
- [Unsloth Desktop adds local inference on AMD XDNA 2 NPUs in Ryzen AI PCs](https://ai.info/news/amd-unsloth-xdna-2-npu-agentic-ai-apps)
- [Apple’s Claris previews Harbor for running AI models on Macs](https://ai.info/news/claris-harbor-private-preview-local-ai-mac)
- [Google Cloud details AI metadata extraction for storage objects](https://ai.info/news/google-cloud-object-enrichments-agent-context)

## Explore

[More articles](https://ai.info/news)

---

Canonical: https://ai.info/news/google-cloud-alloydb-omni-local-model-support
