您还可以使用 BigQuery ML 访问 Vertex AI 模型。您可以基于 Vertex AI 内置模型(如 Gemini)或 Vertex AI 自定义模型创建 BigQuery ML 远程模型。您可以在 BigQuery 中使用 SQL 与远程模型进行交互,就像使用任何其他 BigQuery ML 模型一样,但远程模型的所有训练和推理都在 Vertex AI 中处理。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],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)"]]