AGENT SKILL

mlflow

Use this skill for MLflow repository work: experiment tracking, model registry, MLflow Models and flavors, evaluation, GenAI tracing/prompts/datasets/scorers, local serving, deployments, projects, CLI/server/auth, and troubleshooting MLflow workflows.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
mlflow
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use this skill for MLflow repository work: experiment tracking, model registry, MLflow Models and flavors, evaluation, GenAI tracing/prompts/datasets/scorers, local serving, deployments, projects, CLI/server/auth, and troubleshooting MLflow workflows.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

MLflow

MLflow is an open-source platform for the machine learning and GenAI lifecycle. Use this skill when a task asks you to implement, debug, document, or operate MLflow APIs, CLIs, model packaging, tracking stores, observability, evaluation, or serving workflows.

Start Here

  1. Confirm MLflow is importable before relying on API examples: python -c "import mlflow; print(mlflow.__version__)".
  2. Use mlflow doctor and mlflow --help for environment and CLI discovery.
  3. Pick the nearest sub-skill by user intent; do not load every sub-skill by default.
  4. Prefer temporary local SQLite tracking URIs for smoke tests unless the user explicitly provides a remote tracking URI, Databricks workspace, cloud artifact store, or credentials.
  5. Treat cloud providers, Databricks-only features, Docker, SageMaker, long-running servers, and external model/provider calls as gated workflows that require explicit user intent and credentials.

Route by Task

  • Use sub-skills/tracking-and-registry/SKILL.md for experiments, runs, params, metrics, tags, artifacts, datasets, MlflowClient, search filters, tracking/registry URIs, and model registry lifecycle.
  • Use sub-skills/models-and-flavors/SKILL.md for MLflow Models, MLmodel, pyfunc, signatures, input examples, model dependencies, flavor logging/loading, local prediction/serving payloads, and mlflow.evaluate.
  • Use sub-skills/genai-observability/SKILL.md for traces, spans, OpenTelemetry, GenAI evaluation, prompts, datasets, scorers/judges, review queues, assessments, feedback, and provider autologging.
  • Use sub-skills/serving-and-projects/SKILL.md for mlflow CLI groups, mlflow server, auth/security, database migrations, MLproject, mlflow run, deployments, MCP/agent setup, and development-server workflows.

Common Cross-Routes

  • Tracking a model and registering it spans tracking-and-registry for runs/registry and models-and-flavors for model logging/signatures.
  • Serving a logged model spans models-and-flavors for model URI/payload/schema and serving-and-projects for CLI/server process handling.
  • GenAI evaluation spans genai-observability for traces/prompts/scorers and models-and-flavors when the evaluated object is an MLflow Model or pyfunc.
  • A local tracking server spans serving-and-projects for server/auth/storage commands and tracking-and-registry for client-side URI and experiment/run behavior.

Repo-Level References

  • Read references/repo-provenance.md when deciding whether this skill may be stale relative to a checkout.
  • Read references/troubleshooting.md for cross-cutting install/import, optional dependency, credential, backend, and validation failures.
  • Read references/development-notes.md for contributor commands, development server caveats, and safe validation strategy.

Bundled Smoke Scripts

Each sub-skill owns safe helpers for its workflow:

  • sub-skills/tracking-and-registry/scripts/tracking_smoke.py runs an isolated local tracking smoke test.
  • sub-skills/models-and-flavors/scripts/pyfunc_smoke.py logs and loads a tiny custom pyfunc model.
  • sub-skills/models-and-flavors/scripts/evaluate_smoke.py checks tiny callable and precomputed-prediction evaluation.
  • sub-skills/genai-observability/scripts/tracing_smoke.py records and searches local manual traces.
  • sub-skills/serving-and-projects/scripts/cli_probe.py runs safe CLI help/version probes only.

Run these scripts with an environment where MLflow is installed. They create temporary local stores by default and should not contact external services unless you modify them.

Safety Rules

  • Do not run long-lived servers, deployment commands, Docker builds, cloud uploads, provider calls, or Databricks operations without explicit user approval and configuration.
  • Do not assume optional integrations are installed; check imports and extras before using flavor/provider-specific APIs.
  • Keep MLFLOW_TRACKING_URI, MLFLOW_REGISTRY_URI, provider API keys, Databricks host/token, cloud credentials, and server auth settings explicit in commands or environment setup.
  • Use tiny local fixtures for verification before touching user data, model registries, SQL databases, artifact stores, or production endpoints.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351