- Newest
- Most votes
- Most comments
For AWS Marketplace machine learning products, there are indeed hard limits on inference processing times that cannot be adjusted. For endpoints, the maximum processing time per invocation is 60 seconds, while for batch transform jobs, the maximum processing time is 60 minutes (1 hour).
Regarding instance types, there are limitations on which instances are available for marketplace model packages. For example, while G4dn instances with NVIDIA T4 Tensor Core GPUs are supported for general SageMaker batch transform jobs, they might not be directly selectable when creating a Marketplace model package through the AWS console. The console interface for Marketplace model packages appears to offer a more limited selection of instance types compared to what's available for regular SageMaker operations.
If these limitations are problematic for your use case, you might consider these alternatives:
-
Optimize your model to work within the existing time constraints by reducing complexity or batch sizes.
-
Break down your processing into smaller chunks that can complete within the time limits.
-
For batch transform jobs, you can tune parameters like MaxPayloadInMB, MaxConcurrentTransforms, or BatchStrategy to optimize performance within the constraints.
-
Consider using SageMaker's Asynchronous Inference for longer-running workloads, though note that model packages published in AWS Marketplace cannot be deployed to endpoints configured for Asynchronous Inference due to network isolation requirements.
Unfortunately, the processing time limits for AWS Marketplace machine learning products are fixed constraints that cannot be adjusted, and the available instance types are restricted to those shown in the console when creating your model package.
Sources
Service restrictions and quotas for machine learning products in AWS Marketplace - AWS Marketplace
Cannot select g4dn instances for marketplace model package transform jobs | AWS re:Post
Inference options in Amazon SageMaker AI - Amazon SageMaker AI
Batch transform for inference with Amazon SageMaker AI - Amazon SageMaker AI
Troubleshooting - Amazon SageMaker AI
answered a year ago
You can do this by adapting a multi-tenant architecture
- Client stores the data in a S3 bucket
- Trigger a notification as soon as data is available
- A separate(neutral tenant) VPC with the model weights gets the event notification from the bridge
You can further implement things multi-stage docker builds with model weights encrypted, AWS Nitro Enclaves etc. But remember all these will come with additional complexity and costs. So depending on your hardening requirements you can implement them.
answered a year ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
