MLflow 2.18.0rc0 is a release candidate for 2.18.0. To install, run the following command:
pip install mlflow==2.18.0rc0 2.18.0rc0 (2024-11-12)The 2.18.0 release candidate includes a number of signficant features, enhancements, and bug fixes.
Python Version UpdatePython 3.8 is now at an end-of-life point. With official support being dropped for this legacy version, MLflow now requires Python 3.9
as a minimum supported version.
Breaking Changes to Experimental FeaturesNote: If you are currently using MLflow’s ChatModel interface for authoring custom GenAI applications, please ensure that you
have read the future breaking changes section below.
ChatModel Interface Changes - As part of a broader unification effort within MLflow and services that rely on or deeply integrate
with MLflow’s GenAI features, we are working on a phased approach to making a consistent and standard interface for custom GenAI
application development and usage. In the first phase (planned for release in the next few releases of MLflow), we are marking
several interfaces as deprecated, as they will be changing. These changes will be:
Fluent API Thread / Process Safety - MLflow’s fluent APIs for tracking and the model registry have been overhauled to add support for both thread and multi-process safety.
You are now no longer forced to use the Client APIs for managing experiments, runs, and logging from within multiprocessing and threaded applications. (#13456, #13419, @WeichenXu123)
Broad Support for LLM-as-a-judge endpoints - Prior to this release, MLflow’s evaluate functionality for metrics that use an LLM to generate
metric scores was restricted to a restrictive list of providers (defaulted to use either OpenAI public APIs, Databricks endpoints, or AzureOpenAI
endpoints. (#13715, #13717, @B-Step62)
This restriction has been corrected to support:
Enhanced Trace UI - From enhanced span content rendering using markdown to a standardized span component structure, MLflow’s trace UI has undergone
a significant overhaul to bring usability and quality of life updates to the experience of auditing and investigating the contents of GenAI traces. (#13685, #13357, #13242, @daniellok-db)
DSPy flavor - MLflow now supports logging, loading, and tracing of DSPy models, broadening the support for advanced GenAI authoring within MLflow. (#13131, #13279, #13369, #13345, @chenmoneygithub), (#13543, @B-Step62)
Detection of Environment Variable dependencies - As a helpful reminder for when you are deploying models, MLflow will now record detected environment variables that are set
within your model logging environment and provider reminders to set these values when deploying. In addition to this, updates have been made to the pre-deployment validation
utility mlflow.models.predict to include required environment variables to the subprocess serving simulation to ensure that you can validate your model’s deployment compatibility
prior to deployment. (#13584, @serena-ruan)
Features:
Bug fixes:
Documentation updates: