PolarDB for AI is the distributed machine learning component of PolarDB for MySQL. It provides multiple built-in large AI models, which eliminates the need to manually synchronize data from PolarDB to other AI platforms. You can use SQL statements to directly call the built-in large AI models for complex analytical tasks. Additionally, PolarDB for AI lets you use SQL statements to build custom models and load external models.
With PolarDB for AI, you can:
Call the Qwen large language model You can directly use the built-in Qwen large language model to perform inference and interact with data in PolarDB. You can select different Qwen large language models based on your scenario.
| |||||
Advantages
One-stop data intelligence service: PolarDB for AI provides full lifecycle management from model creation and evaluation to inference. This avoids the problems caused by frequent data transfers between different systems in traditional solutions.
Seamless compatibility with MySQL syntax: You can use the familiar SQL language to perform a series of Machine Learning Operations (MLOps). This eliminates the need for extra learning, allowing you to get started quickly.
Rich library of built-in algorithms: Includes various machine learning and artificial intelligence algorithms, such as classification, regression, and clustering algorithms.
Strict data protection: All data processing and model operations are performed within the database. This ensures end-to-end data security.
Scope
Your cluster must meet the following requirements:
Region: Only Japan (Tokyo) and Singapore are supported.
The Edition is Enterprise Edition and the Series is Cluster Edition.
The kernel version is MySQL 8.0.1 or later.
The database proxy (PolarProxy) version is 2.7.5 or later.
For more information about how to view or upgrade the kernel version and database proxy version, see Minor version management.
Billing
To use the PolarDB for AI feature, you must create an AI node. While the feature is free, the AI node is charged. AI nodes are billed as standard compute nodes.
In addition to standard compute node specifications, AI nodes also support two GPU specifications that are primarily used for AI model creation and inference.
8 cores, 30 GB of memory, and one GU30 (polar.mysql.g8.2xlarge.gpu)
16 cores, 125 GB of memory, and one GU100 (polar.mysql.x8.2xlarge.gpu)
For more information about the billing rules for compute nodes, see Compute nodes.
Get started
Add an AI node and set the database account for connecting to the AI node: Enable the PolarDB for AI feature
If you added an AI node when you purchased the cluster, you can directly set the database account for the AI node.
Use a cluster endpoint to connect to the PolarDB cluster: Log on to PolarDB for AI
Try the built-in model: Use the Qwen large language model for data inference and interaction
Advanced usage:
For more information about how to use models, see Model usage process and instructions.