Skip to content

Artificial Intelligence

Machine Learning Amazon SageMaker

Machine learning has a three-step lifecycle: prepare data, train a model, deploy it. Most tutorials focus on the first two. The third is where teams get s...

14 Oct 2023 · 2 min read

Machine Learning Amazon SageMaker

Machine learning has a three-step lifecycle: prepare data, train a model, deploy it. Most tutorials focus on the first two. The third is where teams get stuck.

AWS SageMaker exists to solve that third step -- and increasingly, all three.

What SageMaker actually does

SageMaker is a managed service that handles the infrastructure side of machine learning. You bring the data and the model. SageMaker gives you the compute, the training environment, and the deployment pipeline.

1_02b-LWLJxV0Lp8r-KksWyw.webp

The three steps

Step 1: Data preparation. Data comes from databases, logs, APIs, CSVs -- everywhere. Before you can train anything, you need to clean it, filter it, and structure it into a format your model expects. SageMaker provides notebooks and processing jobs for this.

Step 2: Model training. Most of the time, you're using an existing algorithm (not inventing one). You feed it structured data and let it learn patterns. SageMaker spins up training instances, runs the job, and saves the trained model. You pick the algorithm and the hyperparameters. SageMaker handles the compute.

Step 3: Deployment. This is where SageMaker shines. You take your trained model and deploy it as an endpoint that your application can call. SageMaker manages scaling, monitoring, and versioning.

The trade-offs

The benefit: You don't manage servers, GPUs, or training infrastructure. SageMaker handles provisioning, scaling, and teardown. For teams that don't want to build ML infrastructure from scratch, it removes a massive operational burden.

The cost: Vendor lock-in. SageMaker is deeply tied to the AWS ecosystem. Pricing can surprise you -- training jobs and endpoints bill by the minute, and GPU instances are expensive. If your workload is small or experimental, the overhead of SageMaker might not be worth it.

When it makes sense: Teams with production ML workloads that need reliable deployment and scaling. If you're prototyping, a local setup or a simpler tool might be faster.

When it doesn't: One-off experiments, small datasets, or teams already comfortable managing their own infrastructure.

Ehsan Gazar helps software engineers take LLM and agent systems from demo to production. He writes about building LLM systems that hold up in production: evals, tracing, RAG, agent architecture and cost control. He teaches the Senior to Staff AI Engineer cohort on Maven, where engineers learn to design and defend these systems.

Go further
Live cohort on Maven

Forward Deployed AI Engineering: From Customer Problem to Production Value

A live Maven cohort for engineers: 10 live 90-minute sessions taking one AI engagement from customer problem to production, ending with eight artefacts and a working slice in your own repo.

January cohort starts Tue 12 Jan 2027, Tue & Thu 6:30pm London. Enrolling now, 20 seats, $1,800.

View the live cohort

Keep reading