Skip to main content

mlflow-triton-control

Optional MLflow deployment integration for Triton Control. Installing this package automatically installs the matching mlflow-triton core release.

pip install mlflow-triton-control
mlflow deployments help -t triton-control
mlflow deployments create --target triton-control \
  --name demo --model-uri models:/m-your-logged-model-id \
  -C s3_profile_name=workflow-training -C image=your-triton-image \
  -C wait_timeout_seconds=600
from mlflow.deployments import get_deploy_client

client = get_deploy_client("triton-control")
deployment = client.create_deployment(
    name="iris-classifier",
    model_uri=info.model_uri,
    config={
        "s3_profile_name": "workflow-training",
        "image": "your-triton-image",
        "wait_timeout_seconds": 600,
    },
)

Deployment arguments

The MLflow CLI and Python client use the same deployment implementation.

CLI argument Python argument Required / default Meaning
--target, -t get_deploy_client(target_uri) Required Plugin address for Plugin selection.
--name name Required New deployment name: 1–63 lowercase letters, digits or hyphens. Must start and end with a letter or digit. Example: iris-classifier.
--model-uri model_uri Required MLflow model reference.
Repeated -C key=value config Required configuration Deployment settings described in the next table.

Configuration (-C / config)

Key Required / default Accepted value Meaning
s3_profile_name Required Non-empty string Exact name of a profile owned by the authenticated caller.
image Required Non-empty container image reference Triton serving image
wait_timeout_seconds Optional / 300 Finite positive number of seconds How long to poll for readiness after the create request succeeds. The client checks approximately every three seconds and raises MlflowException on timeout. A timeout does not delete the deployment.

The requirements file for serving is read automatically from the artifact.

Model URI and artifact storage

Supported model references:

URI Meaning
models:/m-... Logged model ID returned by the framework wrappers
models:/iris-serving/3 Registered model version
models:/iris-serving@champion Registry alias resolved once at deployment time
runs:/<run-id>/<model-path> MLflow model stored as a run artifact

Other deployment operations

Python method Arguments Result
list_deployments() None List of deployment API records, each with flavor="triton".
get_deployment(name) Deployment name Deployment API record with flavor="triton".
delete_deployment(name) Deployment name Triton Control's deletion response.

update_deployment(), predict() and run_local() are not supported and raise MlflowException. Send inference requests to the deployed Triton server directly.

Compatibility

Existing imports such as from mlflow_triton_control import sklearn still work when this integration is installed. These are aliases to the core modules.

How MLflow finds the plugin

mlflow deployments create is a command provided by MLflow. This package registers the deployment target through its Python package metadata:

[project.entry-points."mlflow.deployments"]
triton-control = "mlflow_triton_control.deployment_client"

For --target triton-control, MLflow looks up the triton-control entry point among installed packages, loads this module, and calls TritonControlDeploymentClient.create_deployment(). That class inherits from MLflow's BaseDeploymentClient and sends the deployment request to the Triton Control API. MLflow reads entry-point metadata; it does not search through every package's source files. The package must be installed in the same Python environment as the mlflow CLI.

Argo Workflows

Submit the workflow through Triton Control's authenticated Argo proxy. Mark the deployment template with these Workflow annotations:

metadata:
  name: train-iris
  annotations:
    triton-control.ai/mlflow-deploy-template: deploy
    triton-control.ai/mlflow-deployment-name: iris-classifier
    triton-control.ai/mlflow-s3-profile-name: workflow-training

The backend resolves the profile name and its linked Argo artifact repository for the submitting user. It sets spec.artifactRepositoryRef and injects TRITON_CONTROL_TOKEN, TRITON_CONTROL_S3_PROFILE_NAME, and TRITON_CONTROL_S3_BUCKET into the named script or container template. Use the name with -C s3_profile_name="$TRITON_CONTROL_S3_PROFILE_NAME". The scoped token can resolve only that profile; it cannot list profiles or read their credentials. The backend keeps profile IDs internal. The token is valid for 60 minutes and limited to the specified deployment and S3 profile. The Workflow receives a five-minute completion TTL unless it already defines one, and the Secret receives a Workflow owner reference for garbage collection.

The opted-in Workflow must have a fixed metadata.name and run in the Triton Control namespace. Direct submissions to Argo bypass this token injection.

See the shared release process.

Metadata

Release files for mlflow-triton-control 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlflow-triton-control 0.4.2
File Size Uploaded Provenance Actions
mlflow_triton_control-0.4.2.tar.gz 14.5 kB With provenance Details for mlflow_triton_control-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mlflow-triton-control 0.4.2
File Interpreter ABI Platform Actions
mlflow_triton_control-0.4.2-py3-none-any.whl Python 3 none any Details for mlflow_triton_control-0.4.2-py3-none-any.whl

Total release size: 29.8 kB

Release files / mlflow_triton_control-0.4.2.tar.gz

Download URL mlflow_triton_control-0.4.2.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
368f1ef0aa5547812c9fd9689ddce30df59bae09b3de3a73a37d5c95c3a93776
BLAKE2b-256 checksum
How to use checksums
ea4c0cb9f4a37fd0a8e0a59218b99c51de3abc9bd623db156991b2f1124b0b5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / mlflow_triton_control-0.4.2-py3-none-any.whl

Download URL mlflow_triton_control-0.4.2-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7487306ecaa124c78f7b747af3bc54a968001683145e6c3f8c89411ef10d2794
BLAKE2b-256 checksum
How to use checksums
52cec30f6feb48ef4d31600e5b963e3b7c60cc164bd7cbf3b82bcccfbcc6fa61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for mlflow-triton-control 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mlflow_triton_control-0.4.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page