Serving is the process of making processed data or trained machine learning (ML) models available to applications and users.
In machine learning, model serving allows applications to request predictions from a trained model, often through an API.
Serving is commonly used in recommendation systems, fraud detection, search engines, and AI-powered applications.
A typical model serving workflow includes:
Serving infrastructure may use caching, load balancing, and automatic scaling to handle changing demand.
The appropriate method depends on response-time requirements and workload size.
Training and serving are separate stages of the machine learning lifecycle.
Training is generally more computationally intensive, while serving focuses on reliable and efficient prediction delivery.
Model deployment and model serving are closely related but not identical.
Deployment prepares the model for use, while serving handles prediction requests.
Web data can supply inputs for machine learning systems that use model serving.
For example, a price prediction platform may collect current product information from websites and APIs.
After the data is cleaned, a deployed model can analyze product attributes and return estimated prices through an API.
The accuracy of these predictions depends on both model quality and the reliability of the input data.
Suppose an e-commerce platform uses a recommendation model.
When a customer views a product, the application sends relevant information to the model serving API:
{
"user_id": 1024,
"product_category": "Electronics"
}
The model processes the request and returns product recommendations:
{
"recommended_products": [
"Wireless Mouse",
"Mechanical Keyboard"
]
}
The application displays the recommendations without retraining the model for each request.
Serving makes trained machine learning models or processed data accessible to applications.
Model serving supports real-time, batch, and streaming predictions through reliable delivery infrastructure. It is essential for turning trained AI models into practical production services.