I would like to expand the support of MLflow pyfunc to include all the NLU tasks supported by OpenAI which should help users to adopt MLflow model format for these tasks. Today, this limitation imposes restrictions.
What component(s) does this bug affect?
[ ] area/artifacts: Artifact stores and artifact logging
[ ] area/build: Build and test infrastructure for MLflow
Willingness to contribute
Yes. I can contribute this feature independently.
Proposal Summary
OpenAI flavor add
PyFunc
into the model for the taskschat.completions
andembeddings
. I would like to extend this support tocompletions
.Motivation
OpenAI for NLU supports 3 tasks:
embeddings
,chat.completions
, andcompletions
. Not all of them were implemented in MLflow flavor.Users willing to use
completions
can't usepyfunc
implementation in MLflow.We have customers looking to use the full set of features of OpenAI.
They are not supported as indicated at:
https://github.com/mlflow/mlflow/blob/50a4b658968db3a57f106e215b7ebb6b6f27ea78/mlflow/openai/__init__.py#L75C2-L75C24
Details
I would like to expand the support of MLflow pyfunc to include all the NLU tasks supported by OpenAI which should help users to adopt MLflow model format for these tasks. Today, this limitation imposes restrictions.
What component(s) does this bug affect?
area/artifacts
: Artifact stores and artifact loggingarea/build
: Build and test infrastructure for MLflowarea/docs
: MLflow documentation pagesarea/examples
: Example codearea/gateway
: AI Gateway service, Gateway client APIs, third-party Gateway integrationsarea/model-registry
: Model Registry service, APIs, and the fluent client calls for Model Registryarea/models
: MLmodel format, model serialization/deserialization, flavorsarea/recipes
: Recipes, Recipe APIs, Recipe configs, Recipe Templatesarea/projects
: MLproject format, project running backendsarea/scoring
: MLflow Model server, model deployment tools, Spark UDFsarea/server-infra
: MLflow Tracking server backendarea/tracking
: Tracking Service, tracking client APIs, autologgingWhat interface(s) does this bug affect?
area/uiux
: Front-end, user experience, plotting, JavaScript, JavaScript dev serverarea/docker
: Docker use across MLflow's components, such as MLflow Projects and MLflow Modelsarea/sqlalchemy
: Use of SQLAlchemy in the Tracking Service or Model Registryarea/windows
: Windows supportWhat language(s) does this bug affect?
language/r
: R APIs and clientslanguage/java
: Java APIs and clientslanguage/new
: Proposals for new client languagesWhat integration(s) does this bug affect?
integrations/azure
: Azure and Azure ML integrationsintegrations/sagemaker
: SageMaker integrationsintegrations/databricks
: Databricks integrations