Σημείωμα
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να εισέλθετε ή να αλλάξετε καταλόγους.
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να αλλάξετε καταλόγους.
Azure Databricks Model Serving deploys, governs, and queries AI and ML models for real-time and batch inference. Use it to serve custom, foundation, or external models.
Find a guide
To open the Serving UI, select Serving in the sidebar.
- For what Model Serving provides and how to choose a serving option, see Model Serving concepts.
- For default limits and region availability, see Model Serving limits and regions.
- For an introductory tutorial on how to serve custom models on Azure Databricks for real-time inference, see Tutorial: Deploy and query a custom model.
- For a getting started tutorial on how to query a foundation model on Azure Databricks for real-time inference, see Get started querying LLMs on Databricks.
- For performing batch inference, see Transform unstructured data using AI Functions.
- For logging custom models, compute types, and dependencies, see Deploy custom models with Model Serving.
- To create an endpoint for a custom model, see Create an endpoint for custom models in Model Serving.
- To send requests to an endpoint from Python, REST, or SQL, see Query serving endpoints for custom models.
- To query a route-optimized endpoint with an OAuth token, see Query route-optimized serving endpoints.
- To check status, stop and start, delete, or set permissions on an endpoint, see Manage endpoints for Model Serving.
- To monitor model quality and endpoint health with metrics, logs, troubleshooting guides, and Genie Code, see Monitor Model Serving endpoints.
- To find and fix errors from builds and requests, see Troubleshoot Model Serving endpoints.
- To diagnose timeouts during deployment, on the server, or on the client, see Timeouts in Model Serving.
- To move from Legacy MLflow Model Serving, see Migrate to Model Serving.
What is Model Serving?
Model Serving provides a highly available and low-latency service for deploying models. The service automatically scales up or down to meet demand changes, saving infrastructure costs while optimizing latency performance. This functionality uses serverless compute. See the Model Serving pricing page for more details.
Model Serving offers a unified REST API and MLflow Deployment API for CRUD and querying tasks. It also provides a single UI to manage all your models and their respective serving endpoints. You can also access models directly from SQL using AI Functions for integration into analytics workflows.
AI Functions and Model Serving work together for batch inference scenarios. You can use any of the task-specific AI Functions or ai-query in your batch inference pipelines. If you choose to use a pre-provisioned model that is hosted and managed by Azure Databricks, you don't need to configure a model serving endpoint yourself.
Models you can deploy
Model Serving supports real-time and batch inference for the following model types:
- Custom models. These are Python models packaged in the MLflow format. They can be registered either in Unity Catalog or in the workspace model registry. Examples include scikit-learn, XGBoost, PyTorch, and Hugging Face transformer models.
- Agent serving is supported as a custom model. See Deploy an agent for AI applications (Model Serving)
- Foundation models.
- Azure Databricks-hosted foundation models like Meta Llama. These models are available using Foundation Model APIs. These models are curated foundation model architectures that support optimized inference. Base models, like Meta-Llama-3.3-70B-Instruct, GTE-Large, and Mistral-7B are available for immediate use with pay-per-token pricing. Workloads that require performance guarantees and fine-tuned model variants can be deployed with provisioned throughput.
- Foundation models hosted outside of Azure Databricks like GPT-4 from OpenAI. These models are accessible using External models. The endpoints that serve these models can be centrally governed from Azure Databricks, so you can use and manage large language model (LLM) providers, such as OpenAI and Anthropic, in your organization.
To chat with supported large language models, see Chat with supported LLMs using AI Playground.
Why use Model Serving?
- Deploy and query any models: Model Serving provides a unified interface so you can manage all models in one location. You can query them with a single API, whether they are hosted on Azure Databricks or externally. You can experiment with, customize, and deploy models in production across clouds and providers.
- Securely customize models with your private data: Built on a Data + AI Platform, Model Serving simplifies the integration of features and embeddings into models through native integration with the Databricks Feature Store and AI Search. For better accuracy and contextual understanding, models can be fine-tuned with proprietary data and deployed on Model Serving.
- Govern and monitor models: The Serving UI lets you centrally manage all model endpoints in one place, including those that are externally hosted. You can manage permissions, track and set usage limits and monitor the quality of all types of models using Unity Gateway. This gives more people access to software as a service (SaaS) and open LLMs within your organization while appropriate guardrails stay in place.
- Reduce cost with optimized inference and automatic scaling: Azure Databricks has implemented optimizations for throughput and latency on large models. The endpoints automatically scale up or down to meet demand changes, saving infrastructure costs while optimizing latency performance. See Monitor model serving costs.
- For workloads that are latency sensitive or involve a high number of queries per second, see Optimize Model Serving endpoints for production for optimization strategies. Reach out to your Databricks account team to ensure your workspace is enabled for high scalability.
- Bring reliability and security to Model Serving: Model Serving is designed for high-availability, low-latency production use and can support over 25K queries per second with an overhead latency of less than 50 ms. The serving workloads are protected by multiple layers of security, ensuring a secure and reliable environment for even the most sensitive tasks. You can control network access to Model Serving endpoints by configuring network policies. See Manage network policies for serverless egress control.
Note
Model Serving does not provide security patches to existing model images because of the risk of destabilization to production deployments. A new model image created from a new model version will contain the latest patches. Reach out to your Databricks account team for more information.
Requirements
- Registered model in Unity Catalog or the Workspace Model Registry.
- Permissions on the registered models as described in Serving endpoint ACLs.
- MLflow 1.29 or above. See the requirements in Add Python libraries to Model Serving.
- If you are using Azure Private Link to respect networking-related ingress rules configured on the workspace, Azure Private Link is only supported for model serving endpoints that use provisioned throughput or endpoints that serve custom models. See Configure private connectivity to Azure resources.
- Workspace entitlements configured. See Manage entitlements.
Enable Model Serving for your workspace
No additional steps are required to enable Model Serving in your workspace.
Limitations and region availability
For default limits, region availability, and how to ask about a limit or region, see Model Serving limits and regions.
Data protection in Model Serving
Databricks takes data security seriously. Databricks understands the importance of the data you analyze using Model Serving, and implements the following security controls to protect your data.
- Every customer request to Model Serving is logically isolated, authenticated, and authorized.
- Model Serving encrypts all data at rest (AES-256) and in transit (TLS 1.2+).
For all paid accounts, Model Serving does not use user inputs submitted to the service or outputs from the service to train any models or improve any Databricks services.
Foundation Model APIs is a Databricks Designated Service, meaning it adheres to data residency boundaries as implemented by Databricks Geos.
Data retention
For all Model Serving workloads, Databricks retains container build logs for up to thirty (30) days and metrics data for up to fourteen (14) days.
For Databricks Foundation Model APIs, as part of providing the service, Databricks may temporarily process and store inputs and outputs for the purposes of preventing, detecting, and mitigating abuse or harmful uses. Your inputs and outputs are isolated from those of other customers, stored in the same region as your workspace for up to thirty (30) days, and only accessible for detecting and responding to security or abuse concerns.
Partner model providers may retain data for safety purposes. This retention relies on automated scanning prior to any limited human review.
Anthropic data retention
For Anthropic's Fable 5 and future Mythos-class models, all customers are subject to data retention for safety purposes, as described in Anthropic's data retention practices.