---
title: "Upgrading MLflow Pipelines Across a Python Version Boundary"
description: "Upgrading Databricks Runtime from 14.3 (Python 3.10) to 17.3 (Python 3.12) broke loading of registered MLflow models, because cloudpickle embeds Python bytecode that the newer interpreter can't parse."
url: "https://swe.quest/articles/upgrading-mlflow-pipelines-across-a-python-version-boundary-f87d50f5b96a2d6c"
canonical: "https://engineering.zalando.com/posts/2026/10/upgrading-mlflow-pipelines.html"
source: "Zalando Engineering"
published: "2026-10-29"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["ml-platform","python","refactoring"]
---

# Upgrading MLflow Pipelines Across a Python Version Boundary

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2026-10-29, 6 min read, Case study. Original: [https://engineering.zalando.com/posts/2026/10/upgrading-mlflow-pipelines.html](https://engineering.zalando.com/posts/2026/10/upgrading-mlflow-pipelines.html)

## Summary

Upgrading Databricks Runtime from 14.3 (Python 3.10) to 17.3 (Python 3.12) broke loading of registered MLflow models, because cloudpickle embeds Python bytecode that the newer interpreter can't parse. Retraining five model types per product category on TB-scale data was not viable, so Zalando ran a one-time "Load and Repack" job: load the old pickles in a matching DBR 14.3 environment, extract the inner CatBoost, PyTorch and sklearn artifacts, and relog them under standardized PythonModel wrappers with code\_paths and uv-pinned dependencies. Next they plan to drop pickle entirely by moving to native serialization flavors (.cbm, pt2, skops) and MLflow Models from Code.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)

## Prerequisites

- MLflow model registry
- Python pickling ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- Databricks

## Keywords

MLflow, cloudpickle, Databricks, Python 3.12, CatBoost, PyTorch Lightning, uv, Unity Catalog

## Related posts

- [Training Orchestrator: Unifying Model Training at Yelp](https://swe.quest/articles/training-orchestrator-unifying-model-training-at-yelp-28e0641de090c84f.md): Yelp Engineering · 2026-07-14 · Medium · 12 min read · ML platforms, Model training, Python, Testing
  Yelp's Training Orchestrator replaces per-team monolithic Spark training scripts with a declarative, configuration-driven framework.
- [Introducing Trackio: A Lightweight Experiment Tracking Library from Hugging Face](https://swe.quest/articles/introducing-trackio-a-lightweight-experiment-tracking-library-from-hugging-face-7dee3b3ee964ad19.md): Hugging Face · 2025-07-29 · Medium · 7 min read · ML platforms, Observability, Python, Open source
  Trackio is a free, open-source Python experiment tracking library that works as a drop-in replacement for wandb's init/log/finish API.
- [Data Lineage at Slack](https://swe.quest/articles/data-lineage-at-slack-fbf2aa4b9e9054d0.md): Slack Engineering · 2021-08-17 · Medium · 8 min read · Data pipelines, Privacy, Analytics & OLAP
  Slack built a central Data Lineage Service that automatically captures table- and column-level lineage by hooking Airflow success callbacks and dashboard audit logs, then parsing the submitted SQL with ANTLR (backed by a large unit-test suite).
- [Scaling AI-based Data Processing with Hugging Face + Dask](https://swe.quest/articles/scaling-ai-based-data-processing-with-hugging-face-dask-c086d9dcc7b445d1.md): Hugging Face · 2024-10-09 · Medium · 7 min read · Data pipelines, Inference & serving, Python, Machine learning, Cloud platforms
  Dask DataFrame lets a pandas-based Hugging Face inference workflow scale from a 100-row local test to all 211 million rows of a FineWeb crawl.
- [Introducing Skops](https://swe.quest/articles/introducing-skops-ddba76d41440d3bf.md): Hugging Face · 2022-08-12 · Medium · 6 min read · ML platforms, Python, Machine learning, Open source
  Skops is a Hugging Face library for hosting scikit-learn models on the Hugging Face Hub, generating model cards and sharing them with collaborators.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
