sagemaker-mlflow is an AWS plugin that enables MLflow to use SageMaker as its backend for experiment tracking, allowing users to leverage SageMaker's managed infrastructure for MLflow tracking servers and artifact storage. The current version is 0.2.0, with releases occurring as new features or bug fixes are introduced, typically driven by community contributions and AWS service enhancements.
pip install sagemaker-mlflowVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to configure MLflow to use SageMaker for experiment tracking. It first attempts to retrieve the SageMaker MLflow tracking URI and then logs a simple run. It also shows an alternative for SageMaker Studio users to globally enable tracking. Before running, ensure you have an active SageMaker MLflow Tracking Server and appropriate IAM permissions.
Ensure a SageMaker MLflow Tracking Server is deployed in your AWS account and region. Refer to AWS SageMaker documentation for deploying MLflow Tracking Servers.
Review and grant the necessary IAM permissions to your execution role/user. This typically includes `sagemaker:ListMlflowTrackingServers`, `sagemaker:CreateMlflowTrackingServer` (if creating one), and S3 `PutObject`, `GetObject`, `ListBucket` for the artifact bucket.
Upgrade to `sagemaker-mlflow` version 0.2.0 or newer to enable cross-account functionality. If unable to upgrade, ensure both the MLflow client and tracking server are in the same AWS account.
No dependency data recorded yet.