Skip to main content

Kubeflow Pipeline extension for Metaflow

Project description

Kubeflow Pipelines extension for Metaflow

Compile and run Metaflow flows on Kubeflow Pipelines (argo workflows backend).

Basic Usage

  • Have access to a Kubeflow Pipelines instance with the API server URL.
  • Use the CLI commands to compile your flow into a Kubeflow Pipeline and deploy it.

Compiling and Deploying a Pipeline

python my_flow.py kubeflow-pipelines create \
    --url https://my-kubeflow-instance.com

This command will:

  • Compile your Metaflow flow into a Kubeflow Pipeline YAML specification
  • Upload it to your Kubeflow Pipelines instance
  • Create a new version of the pipeline

The Kubeflow Pipelines URL can also be configured via the environment variable: METAFLOW_KUBEFLOW_PIPELINES_URL

Available Commands

1. create - Compile and/or Deploy Pipeline

Compile a new version of your flow to Kubeflow Pipelines:

python my_flow.py kubeflow-pipelines create \
    --url https://my-kubeflow-instance.com \
    --version-name v1.0.0

Use --help for all available options including tags, namespace, max-workers, and production token management.

The --version-name allows one to deploy a custom version name. Else, a new version with UTC timestamp is created on each subsequent usage.

One can also pass --yaml-only for exporting the YAML file without uploading to Kubeflow Pipelines.

2. trigger - Execute Pipeline

Trigger an execution of your deployed pipeline:

python my_flow.py kubeflow-pipelines trigger \
    --url https://my-kubeflow-instance.com \
    --experiment my-experiment \
    --alpha 0.1 \
    --max-epochs 100

Flow parameters can be passed as command-line arguments. Use --help for all available options.

By default, the latest version of the deployed pipeline is used for the trigger. Else, one can also pass in a custom version using --version-name.

3. status - Check Execution Status

Fetch the status of a running or completed pipeline execution:

python my_flow.py kubeflow-pipelines status \
    --url https://my-kubeflow-instance.com \
    --kfp-run-id abc-123-def-456

Use --help for all available options.

Youtube Screencast

metaflow kubeflow demo

Fin.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metaflow_kubeflow-0.0.1.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metaflow_kubeflow-0.0.1-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file metaflow_kubeflow-0.0.1.tar.gz.

File metadata

  • Download URL: metaflow_kubeflow-0.0.1.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for metaflow_kubeflow-0.0.1.tar.gz
Algorithm Hash digest
SHA256 65c6390fe81fcd29dd95725131ee4f0a9f728bbf5427bff9234221b5bb7bec54
MD5 aef4ca261302a1ab34a0d8ab6ae3e79e
BLAKE2b-256 2b1aae26387468fe9c5b355b33a88ca0f4076ff881a5fc378e8ba3db332cb633

See more details on using hashes here.

Provenance

The following attestation bundles were made for metaflow_kubeflow-0.0.1.tar.gz:

Publisher: publish.yml on outerbounds/metaflow-kubeflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file metaflow_kubeflow-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for metaflow_kubeflow-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27bee9e79297c9dd610c84a904027c75e81d7bf792552fb7e3387764e0780dd0
MD5 e9de9ee4958b3f80cc067535db578968
BLAKE2b-256 a663a8648f6da39babc5a8d094a9d8fcdf808cc80ebb2f67b9efd467d384822c

See more details on using hashes here.

Provenance

The following attestation bundles were made for metaflow_kubeflow-0.0.1-py3-none-any.whl:

Publisher: publish.yml on outerbounds/metaflow-kubeflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page