AWS SageMaker
An AWS SageMaker course for engineers who know cloud basics and have trained a model or two. SageMaker is AWS's managed machine learning platform: it launches the compute for training and data jobs, serves predictions through four kinds of endpoints, and wraps the path to production in pipelines, a model registry, and drift monitoring.
itArtificial intelligence and machine learning | OpenSkills.info
Course pathWalk it in order
Look it upDip in anytime
Go furtherLeaves this page
Don't Panic
Don't Panic — AWS SageMaker
Amazon SageMaker AI, in one honest sentence, is a machine that turns your Python into other people's GPUs, on AWS's terms and on AWS's clock. You hand over a container and a pointer to your data in S3. A machine somewhere in Northern Virginia wakes up, does the work, hands back a model file, and goes back to sleep. You were billed for its nap, but only the nap.
What did people do before it? They rented EC2 instances and installed CUDA drivers themselves, which is the sort of sentence that sounds fine until you have done it once. SageMaker's pitch is that the drivers, the queueing, and the cleanup become someone else's job. The price is that "someone else" makes the decisions, and a few of those decisions show up on your invoice wearing your name.
The first idea everything hangs off: jobs end. Training, processing, and batch transform all launch compute, run it, and release it. The second idea is the exception that runs the bill: hosting. An endpoint keeps instances alive so your application gets predictions in milliseconds, and it keeps billing until a human says stop. The classic SageMaker horror story is not a training run. It is an endpoint nobody remembers creating, quietly accumulating instance-hours in a Region nobody checks, for months.
The third idea: there are four ways to serve a model, and they are really one question asked four ways. How much do your requests cost when nobody is asking? Real-time endpoints charge while idle. Serverless endpoints scale to zero and charge per use, then charge you a cold start when traffic returns. Asynchronous endpoints queue big requests. Batch transform never listens at all. Pick by idle behavior, not by latency numbers on a feature page.
The thing that will surprise you: subsystems here retire. Model Monitor, Clarify, Ground Truth, and friends are closed to new customers, Studio Classic is frozen, and Edge Manager is gone entirely. The service is a platform of parts with individual lifecycles, so the received advice in any blog post over a year old deserves a freshness check against AWS's current pages before it earns a place in your architecture.
Where to go next, if this machine looks worth feeding: the Reference tab walks the official path from the service definition through the four serving options. The Cheatsheet holds the tables that decide between them, and the Field Notes tab carries the invoices of teams who trusted the console to clean up after itself. The quiz is gentler than the billing.
Where this skill leads
Relevant careers
See how this topic contributes to broader role-level skill maps.
Sources
- https://docs.aws.amazon.com/sagemaker/latest/dg/whatis.html
Supports
- SageMaker AI as fully managed ML service for build, train, deploy
- December 3 2024 rename to Amazon SageMaker AI
- Unified SageMaker platform (Lakehouse, governance, Unified Studio)
- Legacy sagemaker API namespaces unchanged
- https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works-mlconcepts.html
Supports
- Generate data, train, deploy workflow loop
- Data preparation before training; monitoring and retraining loop
- https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works-training.html
Supports
- Training jobs containerize workloads on managed AWS compute
- Three use cases: Canvas no-code, built-in algorithms via SDK, script mode/custom containers
- JumpStart model hub; HyperPod persistent clusters; hyperparameter tuning
- Managed Spot, warm pools, heterogeneous clusters as cost options
- https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html
Supports
- Built-in algorithm catalog by problem type (XGBoost, linear learner, CatBoost, LightGBM, k-NN, K-means, PCA, RCF, BlazingText, seq-to-seq, image classification, object detection, semantic segmentation)
- https://docs.aws.amazon.com/sagemaker/latest/dg/studio-jumpstart.html
Supports
- JumpStart pretrained models, solution templates, fine-tuning and deploy actions
- Public, private, and curated hubs in Studio
- https://docs.aws.amazon.com/sagemaker/latest/dg/deploy-model.html
Supports
- Inference options: real-time, serverless, asynchronous endpoints, batch transform
- Deployment use-case table (JumpStart UI, ModelBuilder, CloudFormation)
- Neo and autoscaling as cost optimization options
- https://docs.aws.amazon.com/sagemaker/latest/dg/realtime-endpoints.html
Supports
- Real-time endpoints fully managed, autoscaling, enhanced metrics
- https://docs.aws.amazon.com/sagemaker/latest/dg/serverless-endpoints.html
Supports
- Serverless endpoints scale to zero; for intermittent traffic with cold starts
- Memory sizes 1024 to 6144 MB; 5 GB ephemeral storage; container max 10 GB
- Max 200 concurrent invocations per endpoint; 50 endpoints per Region
- Account concurrency quotas 1000/500 by Region
- Feature exclusions: GPUs, VPC, Model Monitor, multi-model endpoints
- OverheadLatency metric for cold-start monitoring
- Provisioned Concurrency for predictable bursts
- https://docs.aws.amazon.com/sagemaker/latest/dg/async-inference.html
Supports
- Asynchronous inference queues requests; payloads up to 1 GB; processing up to one hour
- S3 payload placement and results; SNS success/error notifications; scale to zero
- https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html
Supports
- Batch transform for inference over large datasets without a persistent endpoint
- Output files named input.out; SplitType Line mini-batching; MaxPayloadInMB 100
- Testing production variants with transform jobs
- https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-guardrails.html
Supports
- Blue/green deployments with all-at-once, canary, linear traffic shifting
- Baking period monitored by CloudWatch alarms; auto-rollback
- Rolling deployments in batch steps
- Exclusions: serverless endpoints and multi-variant rolling updates
- https://docs.aws.amazon.com/sagemaker/latest/dg/multi-model-endpoints.html
Supports
- Multi-model endpoints host many models on one fleet with on-demand loading
- Dynamic eviction under memory pressure; cold-start latency for infrequent models
- CPU and GPU support; Smart Routing warm-up after updates
- https://docs.aws.amazon.com/sagemaker/latest/dg/endpoint-auto-scaling.html
Supports
- Auto scaling dynamically adjusts endpoint instance count with workload
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-validation.html
Supports
- Production variants with per-variant instance type and weights for A/B testing
- Shadow variants receive copies of traffic; responses logged, not returned
- https://docs.aws.amazon.com/sagemaker/latest/dg/inference-recommender.html
Supports
- Inference Recommender automates load testing across instance types and configurations
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html
Supports
- Managed Spot Training up to 90% savings over on-demand
- Checkpoints copied to S3 for resume after interruption
- Non-checkpointing jobs limited to MaxWaitTimeInSeconds 3600
- Savings formula (1 - BillableTimeInSeconds / TrainingTimeInSeconds) * 100
- https://docs.aws.amazon.com/sagemaker/latest/dg/train-warm-pools.html
Supports
- Warm pools retain instances between matching jobs; KeepAlivePeriodInSeconds max 3600 s
- Chains up to 28 days; not with heterogeneous clusters or spot
- Persistent cache directory /opt/ml/sagemaker/warmpoolcache
- https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod.html
Supports
- HyperPod resilient clusters for LLM/foundation-model training at scale
- Automatic faulty hardware detection and replacement
- Slurm and EKS orchestration; Trainium and NVIDIA accelerators
- https://docs.aws.amazon.com/sagemaker/latest/dg/processing-job.html
Supports
- Processing jobs run preprocessing, feature engineering, evaluation on managed instances
- Inputs from S3 (also Athena, Redshift); resources released on completion
- https://docs.aws.amazon.com/sagemaker/latest/dg/feature-store.html
Supports
- Feature groups with online store (latest record, low-ms reads) and offline store (S3, Parquet, history)
- Training-serving skew motivation; PutRecord streaming ingestion; batch ingestion
- https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development.html
Supports
- Autopilot AutoML: data analysis, model selection, tuning, ranked candidates
- Autopilot UI migrated to SageMaker Canvas (Nov 2023)
- Problem types: tabular regression/classification, text, image, forecasting, LLM fine-tuning (API v2)
- https://docs.aws.amazon.com/sagemaker/latest/dg/canvas.html
Supports
- Canvas no-code model building and predictions; chat assistance via Amazon Q Developer
- Ready-to-use models powered by Rekognition, Textract, Comprehend
- https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines.html
Supports
- Pipelines as managed workflow orchestration; DAG defined by data dependencies
- Serverless orchestration; Studio visual editor; versioning and lineage
- Pay only for underlying jobs and storage
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry.html
Supports
- Model groups, versioned model packages, approval status workflow
- Cross-account support and CI/CD deployment integration
- https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow.html
Supports
- Managed MLflow tracking servers; sizes Small/Medium/Large with TPS guidance
- Backend metadata in AWS service account; artifacts in customer S3
- MLflow-registered models auto-register into SageMaker Model Registry
- https://docs.aws.amazon.com/sagemaker/latest/dg/experiments.html
Supports
- Experiments SDK only in Studio Classic; new work directed to managed MLflow
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor.html
Supports
- Model Monitor closed to new customers; existing users continue
- Data capture, baseline constraints, monitoring schedules, violation reports
- Data quality, model quality, bias drift, feature attribution drift monitoring types
- https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated.html
Supports
- Studio web UI with Code Editor (Code-OSS), JupyterLab, RStudio IDEs
- November 30 2023: previous experience renamed Studio Classic; closed to new onboarding
- Domain onboarding, spaces, idle shutdown
- https://docs.aws.amazon.com/sagemaker/latest/dg/gs-studio-onboard.html
Supports
- Domain comprises EFS volume, authorized users, security/VPC configuration
- https://docs.aws.amazon.com/sagemaker/latest/dg/security-iam.html
Supports
- IAM authentication and authorization for SageMaker; execution roles
- Identity-based policies, service-linked roles, managed policies
- https://docs.aws.amazon.com/sagemaker/latest/dg/neo.html
Supports
- Neo compiles models for cloud (including Inferentia) and edge targets
- https://docs.aws.amazon.com/sagemaker/latest/dg/edge.html
Supports
- SageMaker Edge Manager discontinued April 26 2024
- https://aws.amazon.com/sagemaker/pricing/
Supports
- Instance-hour billing structure across training, processing, endpoints
- Free tier context
- https://aws.amazon.com/sagemaker/ai/
Supports
- End-of-support notice: Mechanical Turk, Ground Truth, Ground Truth Plus, Augmented AI, Studio Lab, Model Monitor, Clarify, Debugger, Role Manager, Geospatial closed to new customers
- HyperPod reduces training time claim; JumpStart model catalog
- https://aws.amazon.com/about-aws/whats-new/2017/11/introducing-amazon-sagemaker/
Supports
- Timeline: November 29 2017 launch with hosted notebooks, built-in algorithms, managed training and deployment
- https://aws.amazon.com/about-aws/whats-new/2018/07/amazon-sagemaker-supports-high-throughput-batch-transform-jobs-for-non-real-time-inferencing/
Supports
- Timeline: July 2018 batch transform support for non-real-time inferencing
- https://aws.amazon.com/about-aws/whats-new/2018/11/introducing-amazon-sagemaker-groundtruth/
Supports
- Timeline: November 2018 Ground Truth announcement
- https://aws.amazon.com/blogs/aws/amazon-sagemaker-neo-train-your-machine-learning-models-once-run-them-anywhere/
Supports
- Timeline: November 28 2018 Neo announcement
- https://aws.amazon.com/blogs/aws/amazon-sagemaker-studio-the-first-fully-integrated-development-environment-for-machine-learning/
Supports
- Timeline: December 3 2019 Studio launch with Experiments, Debugger, Model Monitor, Autopilot
- https://aws.amazon.com/blogs/aws/amazon-sagemaker-processing-fully-managed-data-processing-and-model-evaluation/
Supports
- Timeline: December 3 2019 Processing launch
- https://aws.amazon.com/blogs/aws/amazon-sagemaker-autopilot-fully-managed-automatic-machine-learning/
Supports
- Timeline: December 3 2019 Autopilot launch
- https://aws.amazon.com/blogs/aws/amazon-sagemaker-pipelines-brings-devops-to-machine-learning-projects/
Supports
- Timeline: December 8 2020 Pipelines launch
- https://aws.amazon.com/blogs/aws/new-store-discover-and-share-machine-learning-features-with-amazon-sagemaker-feature-store/
Supports
- Timeline: December 8 2020 Feature Store launch
- https://aws.amazon.com/blogs/aws/new-amazon-sagemaker-clarify-detects-bias-and-increases-the-transparency-of-machine-learning-models/
Supports
- Timeline: December 8 2020 Clarify launch
- https://aws.amazon.com/blogs/aws/amazon-sagemaker-jumpstart-simplifies-access-to-prebuilt-models-and-machine-learning-models/
Supports
- Timeline: December 8 2020 JumpStart launch
- https://aws.amazon.com/blogs/aws/announcing-amazon-sagemaker-canvas-a-visual-no-code-machine-learning-capability-for-business-analysts/
Supports
- Timeline: November 30 2021 Canvas announcement
- https://aws.amazon.com/blogs/aws/announcing-amazon-sagemaker-inference-recommender/
Supports
- Timeline: December 1 2021 Inference Recommender general availability
- https://aws.amazon.com/blogs/aws/amazon-sagemaker-serverless-inference-machine-learning-inference-without-worrying-about-servers/
Supports
- Timeline: April 21 2022 Serverless Inference GA after December 2021 preview
- GA raised max concurrent invocations to 200
- https://aws.amazon.com/blogs/aws/introducing-amazon-sagemaker-hyperpod-a-purpose-built-infrastructure-for-distributed-training-at-scale/
Supports
- Timeline: November 29 2023 HyperPod introduction
- https://aws.amazon.com/blogs/aws/amazon-sagemaker-studio-adds-web-based-interface-code-editor-flexible-workspaces-and-streamlines-user-onboarding/
Supports
- Timeline: November 30 2023 new Studio experience announcement
- https://aws.amazon.com/blogs/aws/manage-ml-and-generative-ai-experiments-using-amazon-sagemaker-with-mlflow/
Supports
- Timeline: June 19 2024 managed MLflow general availability
- https://github.com/aws-samples/awesome-sagemaker
Supports
- Discovery source for the ecosystem entries in the Awesome Links tab
- https://news.ycombinator.com/item?id=34885806
Supports
- Field Notes: deleting a SageMaker domain left attached lifecycle resources running; "an expensive weekend"
- https://news.ycombinator.com/item?id=26254408
Supports
- Field Notes: console bug hid endpoints in other Regions; free tier masked costs; alerts fired at spin-up; about $700 surprise month
- https://news.ycombinator.com/item?id=38289939
Supports
- Field Notes: Roboflow found serverless good for low-volume/bursty CV inference, expensive relative to GPUs at sustained load; largest customers moved to Kubernetes
- https://news.ycombinator.com/item?id=22872663
Supports
- Field Notes: real-time endpoints perceived as starting around $40-50/month, pricing side projects out
- https://news.ycombinator.com/item?id=42134015
Supports
- Field Notes context: practitioner contrast of the 2017/2018 simple setup with today's many moving, separately billed parts
