PolarDB for AI is a distributed machine learning component of PolarDB for MySQL with built-in AI models that you call through SQL to analyze data directly in PolarDB. PolarDB for AI also supports building custom models and loading external models with SQL statements, eliminating external data migration.
With PolarDB for AI, you can:
|
Call built-in Qwen foundation models to run inference and interact with data in PolarDB. Choose a model based on your scenario.
|
|||||
Benefits
End-to-end data intelligence: Manages the full lifecycle from model creation and evaluation to inference, eliminating cross-system data movement.
MySQL-compatible syntax: Use familiar SQL for machine learning operations (MLOps) with a minimal learning curve.
Built-in algorithm library: Includes machine learning and AI algorithms for classification, regression, clustering, and more.
Data protection: All data processing and model operations stay within the database for end-to-end security.
Prerequisites
Your cluster must meet the following requirements:
-
Region: Available only in Japan (Tokyo) and Singapore.
-
Database Edition is Enterprise Edition and Edition is Cluster Edition.
-
database engine version is MySQL 8.0.1 or later.
-
PolarProxy version is 2.7.5 or later.
You can view or upgrade the database engine version and PolarProxy version in Version management.
Billing
To use PolarDB for AI, you must create an AI node. The feature itself is free, but you are billed for the AI node at the same rates as standard compute nodes.
AI nodes also support two GPU specifications for model creation and inference:
-
8 cores, 30 GB + one GU30 (polar.mysql.g8.2xlarge.gpu)
-
16 cores, 125 GB + one GU100 (polar.mysql.x8.2xlarge.gpu)
Compute node billing rules are detailed in Compute nodes.
Get started
-
Add an AI node and create a database account: Enable PolarDB for AI
If you added an AI node during cluster creation, skip to creating a database account.
-
Connect to the PolarDB cluster by using a cluster endpoint: Log on to PolarDB for AI
-
Explore the built-in model: Use Qwen foundation models
-
Advanced usage:
The complete model lifecycle is covered in Model usage workflow.