mcpField
M
mlflow-3

mlflow-3

github.com/pproencaCloud & DevOps21848 installsUpdated 11w ago
Repository

About mlflow-3

A reference skill for developers using open-source MLflow 3. It focuses on version-specific changes in classic-ML MLOps APIs and migration pitfalls from MLflow 2.

Key features

  1. 0124 rules across six API categories
  2. 02Model logging and registry guidance
  3. 03Tracking server and serving guidance
  4. 04Evaluation and promotion gates
  5. 05Environment and reproducibility guidance

Use cases

  1. 01Reviewing MLflow 3 model logging code
  2. 02Migrating MLflow 2 tracking and registry workflows
  3. 03Configuring an MLflow server and model serving
  4. 04Evaluating models before promotion

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill mlflow-3

After installing, type/mlflow-3in Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
env-bundle-custom-code-paths.md
env-generated-files-drive-serving.md
eval-gate-with-validate-evaluation-results.md
eval-models-evaluate-split.md
log-input-example-infers-signature.md
log-link-metrics-search-models.md
log-models-are-not-run-artifacts.md
log-name-not-artifact-path.md
log-register-at-log-time.md
log-serialization-defaults-changed.md
reg-aliases-not-stages.md
reg-gate-state-in-tags.md
reg-per-environment-registered-models.md
reg-resolve-by-alias-not-latest-versions.md
reg-webhooks-oss-deployment-jobs-not.md
serve-build-docker-for-clusters.md
serve-fastapi-scoring-server-only.md
serve-invocations-payload-keys.md
serve-predict-before-deploy.md
track-autolog-input-examples-off.md
track-default-is-sqlite-not-mlruns.md
track-proxied-artifacts-one-credential.md
track-server-needs-database-backend.md
track-telemetry-on-by-default.md

Details

From the project README

MLflow 3

Library-reference skill for open-source MLflow 3 — 24 rules across 6 categories. MLflow 3 restructured the library around the model as a first-class entity, deprecated the registry-stage vocabulary, replaced the serving stack, and changed storage and serialization defaults; a model trained on the vast MLflow 2 corpus reproduces the old idioms fluently, which is exactly why each of these rules exists. There is no rule for things a capable model already gets right.

Scope is classic-ML MLOps on self-hosted OSS MLflow. GenAI features (mlflow.genai, tracing, prompt registry, AI Gateway) appear only where confusing them with the classic APIs is itself the trap. Databricks/Unity-Catalog-only features (Deployment Jobs) are flagged as out of scope where a model might scaffold them against OSS.

Pinned to mlflow 3.15.1 (Python ≥ 3.10). API claims were verified against the unpacked mlflow / mlflow-skinny 3.15.1 wheels.

When to Apply

  • Writing or reviewing training code that logs models, metrics, params, or datasets with MLflow
  • Registering model versions and wiring promotion across dev/staging/prod (aliases, copy_model_version, tags, webhooks)
  • Standing up or hardening an mlflow server — backend store, artifact store, auth
  • Evaluating candidate models and gating promotion on thresholds
  • Serving models — mlflow models serve, build-docker, /invocations clients, pre-deploy validation
  • Migrating an MLflow 2-era codebase (stages, artifact_path, mlflow.evaluate, ./mlruns) to MLflow 3

Rule Categories

#CategoryPrefixCovers
1Model Logging & LoggedModellog-name= not artifact_path, models decoupled from runs, input-example-driven signatures, register-at-log-time, skops/torch.export serialization defaults, model-linked metrics and search_logged_models
2Model Registry & Promotionreg-Aliases replacing stages, alias-based lookup, per-environment registered models with copy_model_version, gate state in tags, OSS webhooks vs Databricks-only Deployment Jobs
3Tracking Backend & Servertrack-sqlite:///mlflow.db default, database-only server backends and migrate-filestore, proxied artifacts topology, telemetry opt-out, autolog input-example default
4Servingserve-FastAPI scoring server (MLServer removed), /invocations payload contract, mlflow.models.predict pre-deploy validation, build-docker for clusters
5Evaluation & Gateseval-mlflow.models.evaluate vs mlflow.genai.evaluate, threshold gating with validate_evaluation_results after baseline_model's removal
6Environment & Reproducibilityenv-Generated environment files as the serving source of truth, dependency pinning and uv capture, bundling custom code with code_paths

Quick Reference

1. Model Logging & LoggedModel
2. Model Registry & Promotion
3. Tracking Backend & Server
4. Serving
5. Evaluation & Gates
6. Environment & Reproducibility

How to Use

Read a reference file when its decision comes up. Each rule names the wrong default it corrects, then shows the canonical way (with an incorrect/correct contrast only where the wrong way is a real trap).

Related Skills

  • mlflow-mlops-migration — the sibling composition workflow that takes an arbitrary ML codebase through assessment, restructuring, and a dev/staging/prod MLflow 3 setup, citing these rules at each phase

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and source references

Comments

Markdown supported