ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား

Inference Recommender and right-sizing

Let a load test pick the instance type, then trim idle capacity by sharing endpoints or going serverless.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Registered model
Default job
Shortlist
Advanced job
Instance and count
45 minutesoptional
Test, shortlist, then test with your own load.
  • Unsure which instance fits

    Inference Recommender
  • Self-managed EC2 looks oversized

    Compute Optimizer
  • Many models, little traffic each

    Multi-model endpoint
  • Rare or spiky traffic

    Serverless endpoint
  • Steady traffic, tight latency

    Dedicated real-time endpoint
Right-size, then consolidate.

ဘာလဲ

Amazon SageMaker Inference Recommender runs load tests for you. You give it a model registered in SageMaker Model Registry (a model package). A Default job tests a set of instance types and finishes within 45 minutes. An Advanced job is a custom load test: you choose the instances or a serverless endpoint, a traffic pattern, and your latency and throughput targets. It takes about 2 hours on average. You can run either one on its own. You pay only for the instances used while a job runs.

ဘာလဲ

Results list each configuration with its cost, throughput and latency, including cost per hour and cost per inference. Pick the cheapest configuration that still meets your latency goal at peak load. The job also suggests an initial instance count to use when you set up an autoscaling policy.

For EC2 that you run yourself, for example ML containers on EC2 or in a cluster, AWS Compute Optimizer reads CloudWatch utilization and labels an instance as over-provisioned, under-provisioned or optimized, and suggests another type. It does not test your model; it looks at observed use.

ဘာလဲ

Then consolidate. Many small models that each get little traffic waste money on separate endpoints. A multi-model endpoint hosts them on shared instances and loads models on demand. A serverless endpoint scales to zero and bills per use, which suits spiky or rare traffic and accepts cold starts. Keep a real-time endpoint on dedicated instances for steady traffic with tight latency.

မှတ်ထားရန်

  • Input: a model package in Model Registry.
  • Default job: instance recommendations, within 45 minutes.
  • Advanced job: your traffic pattern and targets, about 2 hours.
  • Outputs: cost per hour, cost per inference, throughput, latency, and a starting instance count.
  • Compute Optimizer: right-sizes EC2 from observed utilization.

မှတ်ထားရန်

  • Many idle models: multi-model endpoint. Rare traffic: serverless endpoint.

စာမေးပွဲမှာ

  • “Find the instance type with the lowest cost per inference for this model” points to Inference Recommender.
  • “Load test with our own traffic pattern and latency target” points to an Advanced job.
  • “EC2 instances running ML containers look oversized” points to Compute Optimizer.
  • “Hundreds of rarely used models” points to a multi-model endpoint.