Upgrading MLflow Pipelines Across a Python Version Boundary
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.
Related posts
- Training Orchestrator: Unifying Model Training at Yelp
Yelp Engineering mediumAdeptYelp's Training Orchestrator replaces per-team monolithic Spark training scripts with a declarative, configuration-driven framework. Pipelines are composed of typed steps whose dependencies form a DAG executed in topological order. Pydantic configs validate parameters and step input/output schemas up front, and injected Spark/MLflow context lets the same pipeline run locally, in Jupyter or in production. The payoff is local runs and unit-testable steps, config errors caught in seconds instead of hours into training, automatic MLflow logging of full configs for reproducibility, and swappable settings-plus-function pairs for reuse across batches.
- Introducing Trackio: A Lightweight Experiment Tracking Library from Hugging Face
Hugging Face mediumAdeptTrackio is a free, open-source Python experiment tracking library that works as a drop-in replacement for wandb's init/log/finish API. It shows runs in a local Gradio dashboard and can sync to Hugging Face Spaces for sharing or iframe embedding. On Spaces, metrics go to an ephemeral SQLite database that is converted to Parquet and backed up to a Hugging Face Dataset every 5 minutes. It integrates with transformers Trainer and Accelerate, keeps its core under 1,000 lines, and is in beta without artifact management or complex visualizations.
- Data Lineage at Slack
Slack Engineering mediumAdeptSlack 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). Raw lineage lands in RDS MySQL, and a daily Spark job uses Pregel to traverse the dependency graph and write a flattened Hive table with a 'layer' column, so transitive downstream dependencies come back from a single query. A Data Portal notify feature uses this lineage to message downstream owners in Slack about deprecations and retention changes. Lineage for non-SQL Spark jobs, a graph database and automated schema-change alerts are listed as future work.
- Scaling AI-based Data Processing with Hugging Face + Dask
Hugging Face mediumAdeptDask 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. The FineWeb-Edu classifier scores each page for educational value through map_partitions, and the filtered results are written back to the Hub as Parquet. The full 432 GB crawl ran on 100 A10 GPU spot instances provisioned with Coiled in about 5 hours, with GPU utilization near 100%. Practical tips include in-function hardware detection, tuning pipeline batch_size to the hardware, and squashing per-file commits after a parallel upload.
- Introducing Skops
Hugging Face mediumAdeptSkops is a Hugging Face library for hosting scikit-learn models on the Hugging Face Hub, generating model cards and sharing them with collaborators. An end-to-end walkthrough trains a DecisionTreeClassifier, serializes it with pickle, and uses hub_utils.init to build a local repo with a config file capturing requirements, task and example input. It then fills a model card via the Card class with metadata, metrics, plots and descriptions, pushes to the Hub (enabling the inference widget), and covers download and update_env. The backend currently loads models with joblib, and the post does not cover secure serialization.