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

သဘောတရား · AIF-C01 အပေါ် ဆက်လေ့လာရန်

Inference instance families

Match the family to the model: CPU for light models, GPU for deep nets and LLMs, Inferentia for compiled models.

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

AI Practitioner မှ သင်သိပြီးသားများ

  • AWS Inferentia is built for low-cost inference and Trainium for training.
  • Both chips are programmed with the AWS Neuron SDK.
  • GPU instances are the general choice with the widest software support.
AI Practitioner သင်ခန်းစာကို ဖတ်ရန်
Classic or tabular model?
CPU: C or M
Neuron-ready and cost first?
Graviton
Inferentia
GPU: G or P
yesnoArm buildyesno
A decision path from model type to family.
  • XGBoost, linear, small nets

    Family
    C or M
    Why
    No accelerator needed
  • Large embedding tables

    Family
    R
    Why
    Data must sit in memory
  • Vision and mid-size LLMs

    Family
    G
    Why
    GPU memory and speed
  • Very large LLMs

    Family
    P
    Why
    Largest GPUs
  • Supported models at low cost

    Family
    Inf or Trn
    Why
    Neuron-compiled
Workload to family, with the reason.

1 / 2

  • XGBoost, linear, small nets

    Family
    C or M
    Why
    No accelerator needed
  • Large embedding tables

    Family
    R
    Why
    Data must sit in memory
  • Vision and mid-size LLMs

    Family
    G
    Why
    GPU memory and speed

2 / 2

  • Very large LLMs

    Family
    P
    Why
    Largest GPUs
  • Supported models at low cost

    Family
    Inf or Trn
    Why
    Neuron-compiled
Workload to family, with the reason.

ဘာလဲ

SageMaker AI instance names start with ml. followed by a family letter. CPU families (C for compute-optimized, M for general purpose) fit tabular models such as XGBoost, small neural nets and pre- and post-processing. Memory-optimized families (R) suit workloads that hold large data in memory, for example big embedding tables or in-memory indexes. AWS Graviton (Arm) instances lower the cost of CPU inference when your container is built for Arm.

ဘာလဲ

GPU families (G and P) serve deep nets and large language models. The model weights must fit in GPU memory: a model with 7 billion parameters in 16-bit numbers needs about 14 GB for the weights alone, plus room for the key-value cache and batches. A larger model needs a bigger GPU, several GPUs, or a smaller number format such as 8-bit. P families are the largest and costliest; G families fit most mid-size models.

ဘာလဲ

AWS Inferentia (Inf families) and Trainium (Trn) run models compiled with the AWS Neuron SDK. They can lower cost per inference for supported models, but the compile step and model support are the price. Pick by testing: choose the smallest family that meets the latency target at your peak load, then compare cost per inference. The next lesson shows the tool that tests this for you.

မှတ်ထားရန်

  • C and M: CPU, for tabular and light models.
  • R: memory-optimized, for large in-memory data.
  • G and P: NVIDIA GPUs for deep nets and LLMs. Weights must fit in GPU memory.
  • Inf and Trn: compile the model with the Neuron SDK first.
  • Graviton: lower-cost CPU inference when the container is built for Arm.

မှတ်ထားရန်

  • Choose the smallest family that meets the latency target.

စာမေးပွဲမှာ

  • “Gradient-boosted tree model, lowest cost” points to a CPU instance, not a GPU.
  • “Large language model needs more memory than one GPU has” points to a larger GPU family or several GPUs.
  • “Lower cost per inference, model supports Neuron” points to Inferentia.
  • “Same model on cheaper CPUs, container can run on Arm” points to Graviton.