Skip to content

In this lab, you’ll migrate an XGBoost model from SageMaker into Snowflake: log it in the Model Registry, perform batch inference via SQL, monitor performance and drift with ML Observability, and optionally retrain and promote a model version using Snowflake’s warehouse compute.

Notifications You must be signed in to change notification settings

sfc-gh-DShaw98/SageMaker-to-Snowflake-Batch-Inference-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migrate, Monitor, and Retrain SageMaker Models in Snowflake MLObservabilityWorkflow

Lab Overview

In this hands-on lab, you'll take an XGBoost model trained in SageMaker and bring it into Snowflake. You'll use the Model Registry for governance, run batch inference via SQL, track model health with ML Observability, and perform retraining and promotion with warehouse compute.

Lab Workflow

Prerequisites

Snowflake Environment:

  • Account with ACCOUNTADMIN privileges to create:
    • Databases, schemas, warehouses, and stages
    • Service user (mlops_user) with key-pair authentication
    • Email notification integration
    • See detailed setup instructions

AWS SageMaker:

  • Access to SE-Sandbox or equivalent environment
  • JupyterLab space with SageMaker Distribution 3.3.1
  • Important: Always STOP your JupyterLab space when not actively working and DELETE it after completing the lab
  • See detailed setup instructions

Optional: Azure Machine Learning

Optional: Vertex AI

Required Files

Configuration Files:

Notebook Environments

  • Phase 1:
    • AWS SageMaker JupyterLab with Python 3.8+ or
    • Azure ML Compute Instance with Python 3.10 – AzureML kernel or
    • Vertex AI Workbench (Python 3 kernel)
  • Phase 2: Snowflake Notebooks with Warehouse Runtime
  • Phase 3: Snowflake Notebooks with Container Runtime (Snowflake ML Runtime CPU 1.0)

Lab Completion Requirements

To receive credit for completing this HOL, you must successfully complete all DORA evaluations:

  • SEAI50: Confirms SageMaker model registration in Snowflake
  • SEAI51: Confirms batch inference completion
  • SEAI52: Verifies ML Observability setup
  • SEAI53: Confirms Model Version V2 registration
  • SEAI54: Verifies PRODUCTION alias assignment to V2

Helpful Resources

Created by: SE Enablement (Diana Shaw) | Last Updated: June 18, 2025

About

In this lab, you’ll migrate an XGBoost model from SageMaker into Snowflake: log it in the Model Registry, perform batch inference via SQL, monitor performance and drift with ML Observability, and optionally retrain and promote a model version using Snowflake’s warehouse compute.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published