PolarDB for AI is a distributed machine learning component provided by PolarDB for MySQL. It provides a variety of built-in AI models. You do not need to manually synchronize data in PolarDB to other AI platforms. You can directly execute SQL statements to call built-in AI models to complete complex analysis tasks. In addition, PolarDB for AI allows you to execute SQL statements to build custom models and load external models through SQL statements.
With PolarDB for AI, you can perform the following tasks:
Use the Qwen LLM for data inference and interaction You can use the built-in Tongyi Qianwen model for data inference and interaction with PolarDB data. Choose the appropriate model based on the scenarios.
|
Benefits
End-to-end data intelligence service: provides full lifecycle management such as model creation, model evaluation, and model inference. This helps avoid the issues caused by frequent data transmission between different systems in traditional solutions.
Compatibility with MySQL syntax: allows you to execute SQL statements to perform Machine Learning Operations (MLOps) without additional learning.
Various built-in algorithms: provides a set of built-in machine learning and AI algorithms, including classification algorithms, regression algorithms, and clustering algorithms.
Strict data protection: performs all data processing and model operations within the database to ensure the security of the entire process.
Supported versions
Your cluster must meet the following requirements:
When you create the cluster, Database Edition is set to Enterprise Edition and Edition is set to Cluster Edition.
The database engine version of your cluster is MySQL 8.0.1 or later.
PolarProxy is 2.7.5 or later.
For more information about how to view or update the database engine version and PolarProxy, see Minor version update.
Billing rules
To use the PolarDB for AI feature, you must create AI nodes. You are not charged for the feature, but you are charged for the AI nodes. AI nodes are billed as common compute nodes.
In addition to common compute node specifications, AI nodes support two GPU specifications, which are mainly used for AI model creation and inference.
8 cores, 30 GB memory and one GU30 (polar.mysql.g8.2xlarge.gpu)
16 cores, 125 GB memory and one GU100 (polar.mysql.x8.2xlarge.gpu)
For information about the billing rules for compute nodes, see Compute nodes.
Get started with PolarDB for AI feature
Add AI nodes and configure the database account for the AI nodes: Enable the PolarDB for AI feature.
If you have added AI nodes when you purchase the cluster, you can directly configure an account for the AI nodes to connect to the database.
Connect to the PolarDB cluster by using a cluster endpoint: Connect to a cluster by using the cluster endpoint to use the PolarDB for AI feature
Use the built-in model: Use the Qwen LLM for data inference and interaction
Advanced usage:
For more information about how to use a model, see Manage models.