您也可以使用 BigQuery ML 存取 Vertex AI 模型。您可以透過 Vertex AI 內建模型 (例如 Gemini) 或 Vertex AI 自訂模型,建立 BigQuery ML 遠端模型。您可以在 BigQuery 中使用 SQL 與遠端模型互動,就像使用任何其他 BigQuery ML 模型一樣,但遠端模型的所有訓練和推論作業都會在 Vertex AI 中處理。
您可以將 BigQuery ML 模型註冊至 Model Registry,以便在 Vertex AI 中管理模型。在 Vertex AI 中管理 BigQuery ML 模型有兩大優點:
線上模型服務:BigQuery ML 僅支援模型的批次預測。如要取得線上預測結果,您可以在 BigQuery ML 中訓練模型,然後透過 Vertex AI Model Registry 將模型部署至 Vertex AI 端點。
機器學習運作功能:持續訓練可讓模型與時俱進,發揮最大效益。Vertex AI 提供 MLOps 工具,可自動監控及重新訓練模型,確保預測準確度不會隨著時間而下降。透過 Vertex AI Pipelines,您可以使用 BigQuery 運算子,將任何 BigQuery 工作 (包括 BigQuery ML) 插入機器學習管道。透過 Vertex AI Model Monitoring,您可以長期監控 BigQuery ML 預測。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-02 (世界標準時間)。"],[],[],null,["# Vertex AI for BigQuery users\n\nUse this page to understand the differences between Vertex AI and\n[BigQuery](/bigquery/docs/introduction) and learn how you can integrate\nVertex AI with your existing BigQuery workflows.\nVertex AI and BigQuery work together to meet your machine\nlearning and MLOps use cases.\n\nTo learn more about model training differences between Vertex AI and\nBigQuery,\nsee [Choose a training method](/vertex-ai/docs/start/training-methods).\n\nDifferences between Vertex AI and BigQuery\n------------------------------------------\n\nThis section covers the Vertex AI, BigQuery, and\nBigQuery ML services.\n\n### Vertex AI: An end-to-end AI/ML platform\n\nVertex AI is an AI/ML platform for model development\nand governance. Common use cases include the following:\n\n- Machine learning tasks, such as forecasting, prediction, recommendation, and anomaly detection\n- Generative AI tasks, such as:\n\n - Text generation, classification, summarization, and extraction\n - Code generation and completion\n - Image generation\n - Embedding generation\n\nYou can use BigQuery to prepare training data for\nVertex AI models, which you can\n[make available as features in Vertex AI Feature Store](/vertex-ai/docs/featurestore/latest/sync-data).\n\nYou can train models in Vertex AI in three ways:\n\n- [AutoML](/vertex-ai/docs/beginner/beginners-guide): Train models on image, tabular, and video datasets without writing code.\n- [Custom Training](/vertex-ai/docs/training/understanding-training-service): Run custom training code catered to your specific use case.\n- [Ray on Vertex AI](/vertex-ai/docs/open-source/ray-on-vertex-ai/overview): Use Ray to scale AI and Python applications like machine learning.\n\nYou can also import a model trained on another platform like\nBigQuery ML or XGBoost.\n\nYou can register custom-trained models to the\n[Vertex AI Model Registry](/vertex-ai/docs/model-registry/introduction).\nYou can also import models trained outside of Vertex AI and register them\nto Vertex AI Model Registry. You don't need to register\nAutoML models; they are registered automatically at creation\ntime.\n\nFrom the registry, you can manage model\nversions, deploy to endpoints for online predictions, perform model\nevaluations, monitor deployments with Vertex AI Model Monitoring, and\nuse [Vertex Explainable AI](/vertex-ai/docs/explainable-ai/overview).\n\n**Available languages:**\n\n- The [Vertex AI SDK](/vertex-ai/docs/python-sdk/use-vertex-ai-sdk) supports Python, Java, Node.js, and Go.\n\n### BigQuery: A serverless, multicloud enterprise data warehouse\n\n[BigQuery](/bigquery/docs/introduction) is a fully managed enterprise\ndata warehouse that helps you manage and analyze your data with built-in features\nlike machine learning, geospatial analysis, and business intelligence.\nBigQuery tables can be queried by SQL, and data scientists who primarily\nuse SQL can run large queries with only a few lines of code.\n\nYou can also use BigQuery as a data store that you reference when\nbuilding tabular and custom models in Vertex AI. To learn more about\nusing BigQuery as a data store, see [Overview of BigQuery\nstorage](/bigquery/docs/storage_overview).\n\n**Available languages:**\n\n- SDKs for BigQuery. To learn more, see the [BigQuery API Client Libraries](/bigquery/docs/reference/libraries).\n- GoogleSQL\n- Legacy SQL\n\nTo learn more, see [BigQuery SQL dialects](/bigquery/docs/reference/standard-sql/introduction#bigquery-sql-dialects).\n\n### BigQuery ML: Machine learning directly in BigQuery\n\nBigQuery ML lets you develop and invoke models in\nBigQuery. With BigQuery ML, you can use SQL to\ntrain ML models directly in BigQuery without needing to move\ndata or worry about the underlying training infrastructure. You can create\nbatch predictions for BigQuery ML models to gain insights from\nyour BigQuery data.\n\nYou can also access Vertex AI models by using\nBigQuery ML. You can create a BigQuery ML\nremote model over a\n[Vertex AI built-in model](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-remote-model) like Gemini,\nor over a\n[Vertex AI custom model](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-remote-model-https). You interact with the remote model using\nSQL in BigQuery, just like any other BigQuery ML\nmodel, but all training and inference for the remote model is processed in\nVertex AI.\n\n**Available language:**\n\n- GoogleSQL\n- [BigQuery client libraries](/bigquery/docs/reference/libraries)\n\nTo learn more about the advantages of using BigQuery ML, see\n[Introduction to AI and ML in BigQuery](/bigquery/docs/bqml-introduction).\n\nBenefits of managing BigQuery ML models in Vertex AI\n----------------------------------------------------\n\nYou can register your BigQuery ML models to the\nModel Registry in order to manage the models in\nVertex AI. Managing BigQuery ML models in\nVertex AI provides two main benefits:\n\n- **Online model serving**: BigQuery ML only supports batch predictions\n for your models. To get online predictions, you can train your models in\n BigQuery ML and deploy them to Vertex AI endpoints through\n Vertex AI Model Registry.\n\n- **MLOps capabilities**: Models are most beneficial when they are kept up to\n date through continuous training. Vertex AI offers MLOps tools that\n automate the monitoring and retraining of models to maintain the accuracy\n of predictions over time. With Vertex AI Pipelines, you can use\n BigQuery operators to plug any BigQuery jobs (including\n BigQuery ML) into an ML pipeline. With\n Vertex AI Model Monitoring, you can monitor your BigQuery ML\n predictions over time.\n\nTo learn how to register your BigQuery ML models to the Model Registry,\nsee [Manage BigQuery ML models with Vertex AI](/bigquery-ml/docs/managing-models-vertex).\n\nRelated notebook tutorials\n--------------------------\n\nWhat's next\n-----------\n\n- To get started with Vertex AI see:\n - [Choose a training method](/vertex-ai/docs/start/training-methods)\n - [Integrate a BigQuery ML model with Model Registry](/vertex-ai/docs/model-registry/model-registry-bqml)"]]