SageMaker Inference Recommender automates model benchmarking across instance types and configurations. Use it to quickly compare latency, throughput, and cost trade-offs to select an appropriate deployment target.
Console flow (step-by-step)
- Open the SageMaker Console and navigate to the AI section.
- Go to Model Governance → Model Dashboard to see registered or deployed models.
- Choose the model you want to evaluate to open its details page.
- Locate the Inference Recommender section and click to create/run a new recommendation job.
- An S3 location containing one or more sample request payloads.
- The request input format (for example,
text/csvorapplication/json). - Optional flags such as model compilation via SageMaker Neo.
- The instance families (or a broad search) to evaluate.
- A job name and any metadata.
Ensure the SageMaker execution role has read access to the S3 location with the test payloads and any model artifacts. Running a broad instance sweep will incur charges for every instance type evaluated.
Optional: Model compilation with SageMaker Neo
SageMaker Neo can compile models into optimized artifacts for certain instances and edge targets, often improving latency and throughput. Consider these guidelines:- Use Neo if you want to determine whether a compiled model improves performance on supported targets.
- Skip Neo if you need performance numbers for the model artifact exactly as deployed in your current pipeline.
Example inputs and quick tips
- S3 location:
s3://my-bucket/inference-samples/(a folder with representative payload files). - Input format:
text/csvorapplication/json. - Representative payloads produce the most reliable recommendations — include edge cases and typical requests.
- Start with a focused set of instance families (CPU-only or GPU-only) to reduce time and cost.
- If strict tail-latency is critical, emphasize p90/p99 metrics.
- Use the results to inform both instance selection and autoscaling thresholds.
Interpreting results
When the job completes, the Recommender returns a results table. Key columns and their meaning:
Use these metrics to evaluate trade-offs:
- Lower latency often requires larger or GPU-backed instances and costs more.
- Higher throughput may favor larger instances or horizontal scaling (more instances).
- Cost-per-request depends on instance cost and achieved throughput.
- Use the recommended instance(s) as the starting point.
- Run production-like load tests with realistic payload distributions.
- Validate autoscaling behavior and cost at target throughput.
- Test under failure scenarios and cold-start conditions if applicable.
Result interpretation examples
Practical checklist before production rollout
- Provide representative payloads (coverage of typical and edge cases).
- Start with a narrow family list, expand if necessary.
- Prioritize p90/p99 if tail latency matters.
- Run larger-scale load tests and verify autoscaling configuration.
- Confirm that the SageMaker execution role has appropriate S3 access.