# Upgrading MLflow Pipelines Across a Python Version Boundary

DevFeed: [Upgrading MLflow Pipelines Across a Python Version Boundary](<https://devfeed.tech/articles/upgrading-mlflow-pipelines-across-a-python-version-boundary-109830.md>)

Original publisher: [Read original article](<https://engineering.zalando.com/posts/2026/10/upgrading-mlflow-pipelines.html>)

Author: Paul Velthuis

Published: 2026-10-29T23:00:00Z

Content type: article

Language: en

Sources: [Zalando](<https://devfeed.tech/sources/zalando-engineering-blog.md>)

Topics: [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>), [Python](<https://devfeed.tech/topics/python.md>), [Legacy Modernization](<https://devfeed.tech/topics/legacy-modernization.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [adopting](<https://devfeed.tech/tags/adopting.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [artifacts](<https://devfeed.tech/tags/artifacts.md>), [backend](<https://devfeed.tech/tags/backend.md>), [boundary](<https://devfeed.tech/tags/boundary.md>), [data-platforms](<https://devfeed.tech/tags/data-platforms.md>), [future](<https://devfeed.tech/tags/future.md>), [future-proof](<https://devfeed.tech/tags/future-proof.md>), [load](<https://devfeed.tech/tags/load.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [ml](<https://devfeed.tech/tags/ml.md>), [mlflow](<https://devfeed.tech/tags/mlflow.md>), [models](<https://devfeed.tech/tags/models.md>), [pipelines](<https://devfeed.tech/tags/pipelines.md>), [production](<https://devfeed.tech/tags/production.md>), [python](<https://devfeed.tech/tags/python.md>), [python-3-10](<https://devfeed.tech/tags/python-3-10.md>), [recover](<https://devfeed.tech/tags/recover.md>), [repack](<https://devfeed.tech/tags/repack.md>), [strategy](<https://devfeed.tech/tags/strategy.md>), [using](<https://devfeed.tech/tags/using.md>), [version](<https://devfeed.tech/tags/version.md>), [zalando](<https://devfeed.tech/tags/zalando.md>)

## AI overview

A Python 3.10-to-3.12 upgrade broke MLflow inference because cloudpickle artifacts contained bytecode the new interpreter could not safely parse. Retraining was impractical for the team's large, multi-model catalog. They used a one-time "Load and Repack" migration: load models in a DBR 14.3-compatible environment, extract each model type's underlying artifact from its old pyfunc wrapper, place it in a file-based PythonModel wrapper, then relog with managed dependencies, fresh signatures, and the `@Production` alias. Standardized wrappers, embedded code and pinned dependencies improved portability, though these wrappers still use cloudpickle. For a future step, the article proposes native serialization formats (CatBoost `.cbm`, PyTorch `pt2` where supported, and scikit-learn `skops`) with MLflow Models from Code, which stores wrapper source and loads native artifacts at runtime. The described migration avoided retraining; the pickle-free approach is presented as an evolution, not as an already completed migration.

## Source excerpt

How we migrated production MLflow models from Python 3.10 to 3.12 without retraining, using a "Load and Repack" strategy to recover cloudpickle-serialized artifacts and future-proof our ML architecture.