This plugin generates Signature V4 headers in each outgoing request to the Amazon SageMaker with MLflow capability,
determines the URL of capability to connect to tracking servers, and registers models to the SageMaker Model Registry.
It generates a token with the SigV4 Algorithm that the service will use to conduct Authentication and Authorization
using AWS IAM.
Installation
To install this plugin (lightweight, depends on mlflow-skinny):
pip install sagemaker-mlflow
To install with the full mlflow dependency set:
pip install sagemaker-mlflow[full]
To install from source:
pip install .
Development details
setup.py
setup.py Contains the primary entry points for the sdk.
install_requires Installs mlflow-skinny (lightweight) by default. The [full] extra installs the full mlflow package.
entry_points Contains the entry points for the sdk. See https://mlflow.org/docs/latest/plugins.html#defining-a-plugin
for more details.
Running tests
Setup
To run tests using tox, run:
pip install tox
Installing tox will enable users to run multi-environment tests. On the other hand, if
running individual tests in a single environment, feel free to continue to use pytest instead.
To add test environments on tox for additional versions of python or mlflow, modify the
environment configs in envlist, as well as deps and depends in [testenv].
SageMaker MLflow Plugin
What does this Plugin do?
This plugin generates Signature V4 headers in each outgoing request to the Amazon SageMaker with MLflow capability, determines the URL of capability to connect to tracking servers, and registers models to the SageMaker Model Registry. It generates a token with the SigV4 Algorithm that the service will use to conduct Authentication and Authorization using AWS IAM.
Installation
To install this plugin (lightweight, depends on
mlflow-skinny):To install with the full
mlflowdependency set:To install from source:
Development details
setup.py
setup.pyContains the primary entry points for the sdk.install_requiresInstallsmlflow-skinny(lightweight) by default. The[full]extra installs the fullmlflowpackage.entry_pointsContains the entry points for the sdk. See https://mlflow.org/docs/latest/plugins.html#defining-a-plugin for more details.Running tests
Setup
To run tests using tox, run:
Installing tox will enable users to run multi-environment tests. On the other hand, if running individual tests in a single environment, feel free to continue to use pytest instead.
Running format checks
Formatting code to comply with format checks
Running unit tests
Running integration tests
Available test environments by default
tox.ini contains support for:
To add test environments on tox for additional versions of python or mlflow, modify the environment configs in
envlist, as well asdepsanddependsin[testenv].