Upgrading MLflow Pipelines Across a Python Version Boundary

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.

Paul Velthuis ۶ دقیقه مطالعهمتن اصلی

MLflow Upgrade preview image

Picture this: you are running automated daily Machine Learning pipelines at scale, and it is time for a critical environment upgrade, such as moving to a new Python version. Consequently, you need to upgrade your Databricks Runtime from LTS 14.3 to LTS 17.3. However, the upgrade cannot proceed because the logs show a cryptic error:

TypeError: code() argument 13 must be str, not int.

This was the exact challenge our team faced recently during a Databricks upgrade that uses MLflow. At our core, we manage daily automated pipelines spanning data preparation, training, and inference across separate Dev, Staging, and Prod Databricks workspaces managed via Declarative Automation Bundles (DAB).

خواندن Zalando Engineering با پرو

این منبع جزو کتابخانه پرو است. همه منابع ویژه، ترجمه هوشمند و فیدهای شخصی را باز کنید.

ZE

منتشرشده در

Zalando Engineering

خواندن در منبع

ادامه مطالعه