environment scoped mlflow client
Project description
Environment MLFlow Client
Here we extend on the standard MLFlow client to manage different environments with the same MLFlow instance, which mainly involves the model registry and experiment management. Our goal is to run multiple logical environments (acc, preprod, prod) in the same databricks workspace with proper permission controls. We wrote a blog about the combination of our MLFlow client and the basic permission structure that is available with the terraform Databricks provider.
Features
- abstraction for environment scoped model names
- helper function for logging a model and registering a model version
- automatic model stage assignment based on the environment
- abstraction for environment scoped experiment folders
- methods for common usage patterns (f.i. load latest model version of any model flavor)
Usage
pypi repository:
https://pypi.org/project/environment-mlflow-client/
>>pip install environment-mlflow-client
Python:
from environment_mlflow_client import EnvMlflowClient
model_name = "deepar"
mlflow_client = EnvMlflowClient(env_name="test")
model_versions = mlflow_client.get_latest_versions(name=model_name)
Compatibility
Compatible with MLFlow 2.x.
Unit tests
A fixture is included that starts a local MLFlow instance and cleans it up after the testing session is finished. The unit tests are thus conducted against the MLFlow API to validate our client.
Pipeline
Github actions are triggered on pull requests to validate the code change against the unit tests. When a commit is tagged on main a Python wheel is build and published to pypi and github releases.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file environment_mlflow_client-3.0.2-py3-none-any.whl
.
File metadata
- Download URL: environment_mlflow_client-3.0.2-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57de96a1355119b676caea7f75dcf972cc8ad73cd00f39811dfe9ffdef63bcf0 |
|
MD5 | 45f2bbc93d98c09edae71a8b5966ac7d |
|
BLAKE2b-256 | 9bc7282c3082d12b351910b94f295cbca6539c80cdc23dcc260de503811e7c72 |