- Newest
- Most votes
- Most comments
SageMaker endpoint data capture works at level of payload entering and exiting SageMaker endpoint no matter data flows in endpoint. Data enhancement within SageMaker endpoint and ensembling is ambiguous to data capture mechanism. Check followings:
- Append enhanced data to response body of endpoint and capture it as part of endpoint output, but this will add additional response payload size.
- Add pre-processing hooks to data monitoring jobs. This solution will lead to two decoupled pre-processing implementations (one at endpoint, and one in the hook).
- Combine and return responses from all ensembled models in SageMaker SM endpoint response body.
When using Amazon SageMaker Model Monitor with DataCaptureConfig set up at the endpoint level, there are a few important points to consider regarding preprocessing and monitoring multiple models:
-
Preprocessing: If you need to transform the inputs to your model monitor, you can use preprocessing scripts. These scripts allow you to modify the captured data before it's analyzed by the Model Monitor. For example, if your model output is in a format not directly compatible with Model Monitor (which requires tabular or flattened JSON structures), you can use a preprocessing script to transform it into the correct format.
-
Multiple Models: Model Monitor currently supports monitoring for single models and does not directly support monitoring multi-model endpoints. However, you can monitor inference pipelines, where multiple models are combined in a single endpoint. In this case, data capture and analysis are done for the entire pipeline, not for individual models within the pipeline.
If you have two models predicting different things and want to monitor the outputs of each model separately, you would need to set up separate endpoints for each model, each with its own DataCaptureConfig. This way, you can monitor the outputs of each model independently.
It's important to note that Model Monitor computes metrics and statistics on tabular data only. So, regardless of the input type (e.g., images, text), the monitor will be able to calculate metrics and statistics for the output, as long as it's in a tabular format.
When setting up monitoring with preprocessing or for multiple models, make sure to configure your data capture and monitoring schedules appropriately to ensure you're capturing and analyzing the data you need for each model or step in your inference process.
Sources
Model Monitor FAQs - Amazon SageMaker AI
Data and model quality monitoring with Amazon SageMaker Model Monitor - Amazon SageMaker AI
Preprocessing and Postprocessing - Amazon SageMaker
answered 2 years ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
