marmotdata/mlflow
Discover registered models, experiments and training datasets from MLflow tracking servers
The MLflow plugin discovers registered models, experiments and training datasets from an MLflow tracking server.
Every registered model becomes a Model asset carrying the run behind its newest version: hyperparameters, latest metric values, the experiment it came from and the input features of its signature. Experiments become Experiment assets and the datasets logged to a model's run become Dataset assets, with PRODUCES and FEEDS lineage between them. A dataset read from s3:// or gs:// is linked to the bucket asset the S3 or GCS plugin creates.
Authentication
The tracking server is contacted anonymously unless username and password (MLflow's basic auth) or token (a bearer token, for servers behind a proxy) are set. Set one or the other, not both.
Model Signatures
Features are read from the run's mlflow.log-model.history tag. When the run has none, the plugin reads the MLmodel file of the logged model (MLflow 3, models:/ sources) or of the run's artifacts, which needs a tracking server that stores or proxies its own artifacts (--serve-artifacts). A model whose signature cannot be found is still discovered, without features.
Set zone when you catalogue more than one tracking server. It becomes part of every MRN, for example mrn://asset/model/mlflow@prod/churn-predictor.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick MLflow from the plugin list.
- Fill in the settings, set a schedule and save.
With the CLI
Save a YAML config, then run marmot ingest.
Not using plugins? Other ways to populate Marmot
Configuration
Fields marked Required must be set.
tagsList of textTags to apply to discovered assets
external_linksList of groupsExternal links to show on all assets
nameTextDisplay name for the link
iconTextIcon identifier for the link
urlTextURL to the external resource
filterGroup of settingsFilter discovered assets by name (regex)
includeList of textInclude patterns for resource names (regex)
excludeList of textExclude patterns for resource names (regex)
zoneTextTells this system apart from others of the same technology and becomes part of every asset's MRN
tracking_uriText RequiredMLflow tracking server URL, also used as the model registry
usernameTextUsername for basic authentication
passwordSecretPassword for basic authentication
tokenSecretBearer token for authentication
verify_sslYes or noVerify the server TLS certificate
include_experimentsYes or noDiscover experiments as assets
include_datasetsYes or noDiscover the datasets logged to each model's run
include_metricsYes or noRecord the run metrics of each model
max_modelsNumberMaximum number of registered models to discover (0 = unlimited)
Assets emitted
Metadata this plugin attaches to each discovered asset.
Model
The metadata fields the MLflow plugin emits for registered model assets.
Experiment
The metadata fields emitted for experiment assets.
Dataset
The metadata fields emitted for dataset assets, one per dataset logged to the run behind a model.
Column
The per-feature fields embedded in a model or dataset asset's schema.