
Sign up to save your podcasts
Or


SageMaker is an end-to-end machine learning platform on AWS that covers every stage of the ML lifecycle, including data ingestion, preparation, training, deployment, monitoring, and bias detection. The platform offers integrated tools such as Data Wrangler, Feature Store, Ground Truth, Clarify, Autopilot, and distributed training to enable scalable, automated, and accessible machine learning operations for both tabular and large data sets.
LinksMLOps is deploying your ML models to the cloud. See MadeWithML for an overview of tooling (also generally a great ML educational run-down.)
Introduction to SageMaker and MLOpsHosting and deploying ML in 2026 starts with an API: move to serverless GPUs, rented GPUs or Spot only when volume, compliance, latency or model availability forces it. Also covers cold starts, vLLM vs SGLang vs llama.cpp vs Ollama, quantization, batch and caching discounts, and tracing.
LinksCall an API until one of four things applies: sustained volume, a compliance rule, a latency floor, or a model that exists only as weights. Then move that one workload.
Volume break-even against a per-token host serving the same open model:
tokens/sec needed = GPU $ per hour ÷ hosted $ per 1M tokens × 1,000,000 ÷ 3,600 $4.00/h ÷ $0.50 per 1M → ~2,200 output tokens/sec, around the clockMiddle path: Bedrock Custom Model Import serves fine-tuned Llama, Mistral, Qwen or gpt-oss weights per Custom Model Unit-minute, billed in 5-minute windows. No batch inference.
SOC 2, HIPAA and GDPRUse the cloud you're already certified on: Bedrock (HIPAA-eligible; model providers never see your prompts), Gemini Enterprise Agent Platform (formerly Vertex AI) or Microsoft Foundry. Self-host when a contract rules those out.
Cost per 1,000 requestsA GPU container per request, billed per second, scaling to zero. H100 list prices, November 2026:
For popular open models, per-token hosts beat rented GPUs until volume flips it.
Does AWS have serverless GPU?No: Lambda, Fargate and SageMaker Serverless Inference are CPU-only. Use SageMaker asynchronous inference, AWS Batch, or Bedrock Custom Model Import.
Serverless GPU cold startsContainer boot (~1 s on Modal, ~5 s on Cloud Run) → weight download → engine startup. A 3B model on vLLM took ~118 s cold and ~12 s from a GPU memory snapshot.
Fixes, cheapest first: queue the work → keep weights near → smaller or quantized model → snapshots → one warm container.
Serverless vs dedicated GPU break-even utilization = always-on $ per hour ÷ serverless $ per hourUnder ~50% busy, serverless; over ~75%, rent.
Spot instance interruptionsUp to 90% off, with a two-minute notice. Checkpoint to S3 → retry on host termination → many instance pools, price-capacity-optimized.
GPU memory: can I run Flux on an L4? weights (GB) ≈ parameters (billions) × bytes per weight (16-bit 2, 8-bit 1, 4-bit 0.5)On a 24 GB L4, FLUX.2 klein (4B, ~13 GB) fits. FLUX.1 dev (12B, 24 GB at 16-bit) needs 8-bit or offloading. Model choice: MLA 25.
vLLM vs SGLang vs llama.cpp vs OllamaEight-bit is near lossless; four-bit weights rivaled it in Give Me BF16 or Give Me Death. Test four-bit on your own task and hardware; on some CPUs it runs slower than eight-bit.
Batch API and prompt caching discountsBatch costs 50% of standard at OpenAI, Anthropic, Google, Bedrock and Fireworks; OpenAI, Google and Bedrock sell a flex tier at the same price. Cache reads bill at 10% of input, 5% on several current models, and 2.5% on Claude Fable 5.2.
LLM tracing toolsLangfuse (MIT core, self-hostable), Arize Phoenix (Elastic License), LangSmith, Braintrust, Helicone (gateway). Evaluation methods: MLA 28.
The full course on this topic is Gnothi's Learn AI, next to the Agentic AI Course, at ocdevel.com/courses.
More in the resources. Next: MLA 28, on how agents are built.
Primary technology recommendations for building a customer-facing machine learning product include React and React Native for the front end, serverless platforms like AWS Amplify or GCP Firebase for authentication and basic server/database needs, and Postgres as the relational database of choice. Serverless approaches are encouraged for scalability and security, with traditional server frameworks and containerization recommended only for advanced custom backend requirements. When serverless options are inadequate, use Node.js with Express or FastAPI in Docker containers, and consider adding Redis for in-memory sessions and RabbitMQ or SQS for job queues, though many of these functions can be handled by Postgres. The machine learning server itself, including deployment strategies, will be discussed separately.
LinksDocker enables efficient, consistent machine learning environment setup across local development and cloud deployment, avoiding many pitfalls of virtual machines and manual dependency management. It streamlines system reproduction, resource allocation, and GPU access, supporting portability and simplified collaboration for ML projects. Machine learning engineers benefit from using pre-built Docker images tailored for ML, allowing seamless project switching, host OS flexibility, and straightforward deployment to cloud platforms like AWS ECS and Batch, resulting in reproducible and maintainable workflows.
LinksTry a walking desk to stay healthy while you study or work!
Show notes at ocdevel.com/mlg/32.
L1/L2 norm, Manhattan, Euclidean, cosine distances, dot product
Normed distances link
Dot product
Cosine (normalized dot)
Primary clustering tools for practical applications include K-means using scikit-learn or Faiss, agglomerative clustering leveraging cosine similarity with scikit-learn, and density-based methods like DBSCAN or HDBSCAN. For determining the optimal number of clusters, silhouette score is generally preferred over inertia-based visual heuristics, and it natively supports pre-computed distance matrices.
LinksThe landscape of Python natural language processing tools has evolved from broad libraries like NLTK toward more specialized packages such as Gensim for topic modeling, SpaCy for linguistic analysis, and Hugging Face Transformers for advanced tasks, with Sentence Transformers extending transformer models to enable efficient semantic search and clustering. Each library occupies a distinct place in the NLP workflow, from fundamental text preprocessing to semantic document comparison and large-scale language understanding.
LinksPython charting libraries - Matplotlib, Seaborn, and Bokeh - explaining, their strengths from quick EDA to interactive, HTML-exported visualizations, and clarifies where D3.js fits as a JavaScript alternative for end-user applications. It also evaluates major software solutions like Tableau, Power BI, QlikView, and Excel, detailing how modern BI tools now integrate drag-and-drop analytics with embedded machine learning, potentially allowing business users to automate entire workflows without coding.
LinksKey Takeaways
Exploratory data analysis (EDA) sits at the critical pre-modeling stage of the data science pipeline, focusing on uncovering missing values, detecting outliers, and understanding feature distributions through both statistical summaries and visualizations, such as Pandas' info(), describe(), histograms, and box plots. Visualization tools like Matplotlib, along with processes including imputation and feature correlation analysis, allow practitioners to decide how best to prepare, clean, or transform data before it enters a machine learning model.
LinksJupyter Notebooks, originally conceived as IPython Notebooks, enable data scientists to combine code, documentation, and visual outputs in an interactive, browser-based environment supporting multiple languages like Python, Julia, and R. This episode details how Jupyter Notebooks structure workflows into executable cells - mixing markdown explanations and inline charts - which is essential for documenting, demonstrating, and sharing data analysis and machine learning pipelines step by step.
LinksHistorical Context and Scope
Interactive, Narrative-Driven Coding
Markdown Support and Storytelling
Inline Visual Outputs
Reproducibility and Sharing
Cell-based Execution Flexibility
Primary Use Cases
Jupyter Notebooks serve as a central tool for documenting, presenting, and sharing the entirety of a machine learning or data analysis pipeline - combining code, output, narrative, and visualizations into a single, comprehensible document ideally suited for tutorials, reports, and reproducible workflows.