Pymc Mlflow logo

Pymc Mlflow

Organization
pymc-labs
pymc-mlflow

Track PyMC experiments with MLflow, record sampling configuration and diagnostics, save and retrieve DataTree artifacts, and compare runs. Use for pymc_marketing.mlflow autologging, MMM model persistence and MLflow registry preparation, or CLV fit tracking. Distinguishes experiment tracking, native model restoration and prediction wrappers from deployed services.

Overview

Publisherpymc-labs
Repositorypymc-modeling
Skill namepymc-mlflow
Stars
93
Forks
10
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by pymc-labs on GitHub. Read the source before you install it.

Installation

Install the Pymc Mlflow AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/pymc-labs/pymc-modeling/tree/main/skills/pymc-mlflow
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pymc-labs/pymc-modeling.git /tmp/pymc-modeling
mkdir -p .claude/skills
cp -r /tmp/pymc-modeling/skills/pymc-mlflow .claude/skills/pymc-mlflow
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pymc Mlflow in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pymc Mlflow on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pymc Mlflow is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

PyMC experiment tracking with MLflow

Record how a fit was produced, preserve its inference output, and retrieve it without changing the consuming project's modeling environment. pymc-mlflow is this skill's name; the optional integration module is pymc_marketing.mlflow, not a separate pymc-mlflow package.

Choose the integration

NeedReference
Track ordinary PyMC models without installing PyMC-MarketingManual tracking and DataTree artifacts
Use maintained PyMC-Marketing autologging or track CLV fitsAutologging and domain-model tracking
Save/restore MMM models or log a prediction wrapper to MLflowMMM persistence and registry preparation

Examples target PyMC 6/DataTree and modern ArviZ. PyMC-Marketing 1.2.0 requires PyMC >=6.3.1,<6.4.0 and ArviZ >=1.2.0,<2.0; MLflow is a separate optional installation. Inspect installed versions and signatures before enabling integration. Do not downgrade or replace a working modeling environment just to use autologging. Direct MLflow tracking does not require PyMC-Marketing.

Preserve the fit before interpreting it

  1. Identify the run. Set a tracking URI and project experiment. Log source/data identities, package versions, seed and actual sampler configuration. Use consistent lowercase tags for exploratory, reportable and mock runs; tags describe provenance, not proof of inferential quality.
  2. Fit inside an explicit run. Use with mlflow.start_run(): so exceptions mark failed runs. Log configuration before expensive work. MLflow parameters cannot change within a run; do not overwrite integration-owned parameters such as likelihood, draws or chains with different values.
  3. Persist actual inference. Save a local raw DataTree before diagnostics or enrichment. Generic pymc_marketing.mlflow.autolog() does not save idata.nc: explicitly serialize/upload it or call log_inference_data. Preserve the groups needed by the downstream task; adding likelihoods or predictions later requires saving the enriched output too.
  4. Log diagnostics, not reassurance. Preserve chain identities and actual draws. Missing/nonfinite diagnostics are unresolved, not zero. A draw-count threshold, run tag or attractive summary is not convergence evidence. Use arviz-diagnostics for computation, predictive checks and reliable comparison.
  5. Retrieve and check. Download artifacts through MLflow to local paths, reopen the DataTree, and check groups, coordinates and required variables. A remote artifact URI is not a local NetCDF filename.
  6. Compare like with like. Numeric filtering uses metrics, not string parameters. Compare predictive scores only for the same response scale, observations and validation target; report uncertainty and Pareto-k warnings. Training PPCs are not predictions for held-out inputs.

Keep tracking distinct from serving

  • A posterior NetCDF file is inference output, not an executable generic PyMC model, preprocessing pipeline or prediction endpoint.
  • PyMC-Marketing supports native model restoration. MMM additionally has an MLflow prediction wrapper, but release 1.2.0's built-in point/posterior-prediction route fails on an unsupported original_scale argument. Use the documented native restoration route; do not claim the wrapper is ready for serving. CLV tracking does not supply an equivalent CLV serving wrapper.
  • A runs:/ URI addresses a run artifact; a models:/ URI addresses a registered model. Logging or registering either does not deploy a service. Validate the selected prediction method, input schema, scale and runtime dependencies before treating a wrapper as usable for serving.

Avoid workflow contamination

Do not leave pm.sample globally replaced with mock_sample. Mock output is prior-generated infrastructure data, not posterior inference, and may have no sampler statistics. Scope test patches and restore the original callable; see meaningful model testing. Enable autologging once per process, not repeatedly in a notebook loop.

Keep tracking databases, posterior files and raw data out of source control. Artifacts and autologged dataset inputs can contain observed values, predictors and identifying coordinates; use authorized storage and access controls. Do not upload credentials or unapproved data. Diagnose full unthinned chains before making any explicitly labeled reduced-storage artifact.

For model construction and predictions, use pymc-modeling; for convergence, PPCs and LOO interpretation, use arviz-diagnostics. This skill records those workflows; it does not replace them.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pymc Mlflow AI skill do?

Track PyMC experiments with MLflow, record sampling configuration and diagnostics, save and retrieve DataTree artifacts, and compare runs. Use for pymc_marketing.mlflow autologging, MMM model persistence and MLflow registry preparation, or CLV fit tracking. Distinguishes experiment tracking, native model restoration and prediction wrappers from deployed services.

Why use Pymc Mlflow on TypingMind?

Because you install it once and use it with any model. Pymc Mlflow is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pymc Mlflow in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/pymc-labs/pymc-modeling/tree/main/skills/pymc-mlflow. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pymc Mlflow?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pymc Mlflow?

As many as you like. As long as a model supports skills, you can use Pymc Mlflow with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pymc Mlflow AI skill free?

Yes. It is published on GitHub by pymc-labs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇