Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Finds an optimized SageMaker AI serving configuration for a model, deploys it, and compares against a baseline benchmark.
Use this skill ↓26% 87%+61 ptsof test cases passed
Passed 20 of 23 test cases with the skill, and 6 of 23 without it.
We want to test our custom OpenAI-formatted JSONL prompt file with scripts/recommend.py. Which CLI argument stages our local dataset file to S3 automatically for the recommendation job?
The response passes the --dataset-file argument to scripts/recommend.py.
3 of 3 safety checks passed
SageMaker AI inference recommendations searches serving configurations on managed compute and hands back the best one it found, including the expected performance. You never hand-tune vLLM flags or build a sweep harness.
Pairs with
sagemaker-benchmark: benchmark the baseline → optimize → benchmark again → compare like-for-like before/after throughput.
create_ai_recommendation_job)| Depth | OptimizeModel | What you get | Cost / time | Execution |
|---|---|---|---|---|
| Config search | False | Best instance + serving config for the model as-is; ExpectedPerformance | minutes to hours, workload-dependent | interactive or automated |
| Deep optimize | True | Configuration plus supported model optimizations, registered as a Model Package | hours, large capacity-reserved instance | run asynchronously |
Deep optimization is slow and commonly needs scarce reserved capacity. Run it asynchronously and retain its result rather than coupling it to an interactive workflow.
create_ai_workload_config → create_ai_recommendation_job →
poll describe_ai_recommendation_job → deploy the result's Model Package
(create_model from ModelPackageName → create_endpoint_config → create_endpoint).
create_ai_workload_config describing your traffic (sharegpt, or a
custom JSONL dataset in S3 via DatasetConfig.InputDataConfig with a folder S3Uri).
Dataset-format asymmetry vs the benchmark service: the recommendation service
validates the dataset files and accepts only ShareGPT or OpenAI Chat/Completions
records — it rejects the benchmark's AIPerf single_turn lines ({"text", ...}) with
"unrecognized format". Use the bundled datasets/sharegpt-curated-openai.jsonl (the
benchmark skill's curated prompts converted to OpenAI Chat format) so the
recommendation optimizes for the same traffic the benchmark measures.create_ai_recommendation_job with ModelSource.S3,
PerformanceTarget.Constraints=[{Metric: throughput|latency}],
ComputeSpec.InstanceTypes=[...], InferenceSpecification.Framework (VLLM for config
search, LMI for deep optimize), and OptimizeModel (False/True). For scarce instances
add ComputeSpec.CapacityReservationConfig (capacity-reservations-only +Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.