Skip to content

Run an MLflow Serving Function

Call function.run(action="serve", ...) to deploy the MLflow model as a service. Configure the service with the following parameters.

Parameters

Name Type Required Description
action str ✓ Action to execute. Must be serve
volumes list[dict] List of volumes.
resources dict Resource limits and requests.
envs list[dict] Environment variables.
secrets list[str] List of secret names.
profile str Profile template.
replicas int Number of replicas.
service_type str Service type.
service_name str Service name.

Example

run = function.run(
    action="serve",
    replicas=1
)