mlflow
Skill15 starsChanged 44 days agoMITView on GitHub
Expert MLflow assistance covering experiment tracking, autologging, model registry, and MLflow recipes. Use when tracking ML metrics, versioning model artifacts, or serving production models.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- thistleknot/skillstheir own version, first seen Nov 8, 2026
- OpenLAIR/dr-clawtheir own version, first seen Nov 8, 2026
- MarieLynneBlock/arcanum-artifextheir own version, first seen Nov 1, 2026
- mhiskall282/Securing-the-Digital-Mine-UNESCO-Projecttheir own version, first seen Sep 20, 2026
- Clay-HHK/claude-skillstheir own version, first seen Mar 5, 2026
Used with
Projects with it also use autoresearch.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GitHubSkillautoresearch
Autonomous iterative experimentation loop for any programming task. Guides the user through defining goals, measurable metrics, and scope constraints, then runs an autonomous loop of code changes, testing, measuring, and keeping/discarding results. Inspired by Karpathy''s autoresearch. USE FOR: autonomous improvement, iterative optimization, experiment loop, auto research, performance tuning, automated experimentation, hill climbing, try things automatically, optimize code, run experiments, autonomous coding loop. DO NOT USE FOR: one-shot tasks, simple bug fixes, code review, or tasks without a measurable metric.
Also in 3 projects that use this
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- OpenLAIR/dr-claw★ 1.2ksame name
- MarieLynneBlock/arcanum-artifex★ 4same name
- Clay-HHK/claude-skills★ 1same name
- mhiskall282/Securing-the-Digital-Mine-UNESCO-Project★ 1same name
- thistleknot/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- service-meshSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 156
Use mlflow.start_run() inside Python context managers to ensure runs are reliably closed on errors.
- Distinctive: line 162
Use local filesystem tracking URIs in production or collaborative team environments.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MLflow
MLflow is an open-source platform for managing the end-to-end machine learning lifecycle, including experiment tracking, model registry, artifact storage, and LLM tracing evaluation.
When to Use
- Machine Learning Experiment Tracking: Logging parameters, metrics, code versions, and artifacts across runs.
- Model Registry & Governance: Managing model lifecycle stages (Staging, Production, Archived) with lineage.
- LLM Evaluation & Prompt Engineering: Evaluating LLMs, RAG applications, and prompts using MLflow Evaluate.
- Unified Model Deployment: Packaging models into self-contained flavors (Python function, PyTorch, ONNX) for one-click deployment.
Quick Start
import mlflow
import mlflow.sklearn
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_squared_error
mlflow.set_experiment("housing_price_prediction")
with mlflow.start_run():
n_estimators = 50
model = RandomForestRegressor(n_estimators=n_estimators)
model.fit(X_train, y_train)
preds = model.predict(X_val)
mse = mean_squared_error(y_val, preds)
mlflow.log_param("n_estimators", n_estimators)
mlflow.log_metric("mse", mse)
mlflow.sklearn.log_model(model, "random_forest_model")Core Concepts
Experiment Tracking & Autologging
Logging parameters, evaluation metrics, and model weights automatically:
import mlflow
import mlflow.sklearn
from sklearn.ensemble import RandomForestClassifier
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
# Configure remote or local tracking URI
mlflow.set_tracking_uri("http://localhost:5000")
mlflow.set_experiment("iris_classification_prod")
# Enable automatic framework logging
mlflow.sklearn.autolog(log_model_signatures=True)
X, y = load_iris(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
with mlflow.start_run(run_name="rf_n100_d5") as run:
params = {"n_estimators": 100, "max_depth": 5, "random_state": 42}
mlflow.log_params(params)
clf = RandomForestClassifier(**params)
clf.fit(X_train, y_train)
score = clf.score(X_test, y_test)
mlflow.log_metric("accuracy", score)
print(f"Logged run: {run.info.run_id} with Accuracy: {score:.4f}")Model Registry & Production Staging
Registering and promoting versioned models:
from mlflow import MlflowClient
client = MlflowClient()
# Register model from a completed run artifact
model_uri = f"runs:/{run.info.run_id}/model"
registered_model = mlflow.register_model(model_uri, "CustomerChurnPredictor")
# Assign an alias (MLflow 2.x recommended pattern)
client.set_registered_model_alias(
name="CustomerChurnPredictor",
alias="champion",
version=registered_model.version
)
# Load champion model in production serving microservice
champion_model = mlflow.pyfunc.load_model("models:/CustomerChurnPredictor@champion")
predictions = champion_model.predict(X_test)LLM Evaluation with mlflow.evaluate
Benchmarking RAG outputs against ground truth datasets:
import mlflow
import pandas as pd
eval_df = pd.DataFrame({
"inputs": ["What is MLflow?", "How does autologging work?"],
"ground_truth": [
"MLflow is an open-source platform for managing the end-to-end ML lifecycle.",
"Autologging automatically captures metrics, parameters, and models without explicit log statements."
],
"predictions": [
"MLflow manages machine learning experiments, models, and deployments.",
"It automatically tracks parameters and metrics during training."
]
})
with mlflow.start_run():
results = mlflow.evaluate(
data=eval_df,
targets="ground_truth",
predictions="predictions",
model_type="text-summarization",
evaluators="default"
)
print("Evaluation Metrics:", results.metrics)Common Patterns
Autologging Framework Integrations
Problem: Writing manual mlflow.log_metric lines for every epoch and hyperparameter.
Solution: Enable automatic framework-level logging:
import mlflow
# Autolog PyTorch, TensorFlow, Scikit-Learn, LightGBM, or XGBoost
mlflow.autolog()
# Subsequent model.fit() calls automatically log all parameters, metrics, and models
model.fit(X_train, y_train)Best Practices
Do:
- Target MLflow 2.15+ utilizing model aliases (
@champion,@challenger) rather than legacy stage transitions. - Log model signatures (
mlflow.models.infer_signature) to ensure input/output schema validation at deployment time. - Use
mlflow.start_run()inside Python context managers to ensure runs are reliably closed on errors. - Back up the remote backend store (PostgreSQL) and artifact repository (S3/GCS) regularly.
Don't:
- Store large training datasets directly as artifacts; log dataset hashes and S3 URIs via
mlflow.data. - Use local filesystem tracking URIs in production or collaborative team environments.
- Hardcode tracking URIs; configure via environment variable
MLFLOW_TRACKING_URI.
Troubleshooting
| Error | Cause | Solution |
MlflowException: Could not find experiment with ID | Experiment deleted or connecting to mismatched tracking URI. | Set explicit tracking URI: mlflow.set_tracking_uri("http://localhost:5000"). |
Artifact transfer failed | S3 / GCS bucket permissions missing on client runner. | Ensure AWS/GCP credentials with write permissions are active in environment. |
Schema enforcement error on model load | Input DataFrame columns mismatch model signature logged at training. | Align DataFrame columns and types with logged ModelSignature. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

