[FR] Export mlflow:::mlflow_write_model_spec()
#10349
Labels
area/models
MLmodel format, model serialization/deserialization, flavors
enhancement
New feature or request
has-closing-pr
This issue has a closing PR
language/r
R APIs and clients
Willingness to contribute
Yes. I can contribute this feature independently.
Proposal Summary
I would like to request that
mlflow:::mlflow_write_model_spec()
is@export
ed from the package.Motivation
My organisation is using MLFlow as a model registry with R. We have a need to store model flavors that don't fit exactly within the
carrier::crate()
flavor, so I've written a couple of custom ones. This works really well, butR CMD CHECK
is unhappy about my use of the unexportedmlflow:::mlflow_write_mdel_spec()
function.I am not aware of a way of building custom MLFlow flavors in R without using this function (short of writing my own function that duplicates the functionality). MLFlow is an awesome product and, once we have these custom flavors implemented, will serve our needs very well.
We would like to store models in MLFlow that do not conform to the
carrier::crate()
flavor, which means (as far as I can tell, anyway) we need to implement custom flavor(s).R CMD CHECK
doesn't like the use of unexported functions. This isn't a difficulty per se, but making this change would remove some friction and make the process more developer-friendly.Details
Here's a flavor implementation for storing arbitrary R objects in MLFlow (the most basic example I could think of). If there's a way of achieving the same result without using
mlflow:::mlflow_write_model_spec()
I'd love to hear about it.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 integrationsThe text was updated successfully, but these errors were encountered: