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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65c6390fe81fcd29dd95725131ee4f0a9f728bbf5427bff9234221b5bb7bec54
|
|
| MD5 |
aef4ca261302a1ab34a0d8ab6ae3e79e
|
|
| BLAKE2b-256 |
2b1aae26387468fe9c5b355b33a88ca0f4076ff881a5fc378e8ba3db332cb633
|
Provenance
The following attestation bundles were made for metaflow_kubeflow-0.0.1.tar.gz:
Publisher:
publish.yml on outerbounds/metaflow-kubeflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metaflow_kubeflow-0.0.1.tar.gz -
Subject digest:
65c6390fe81fcd29dd95725131ee4f0a9f728bbf5427bff9234221b5bb7bec54 - Sigstore transparency entry: 766398280
- Sigstore integration time:
-
Permalink:
outerbounds/metaflow-kubeflow@27308adcc35060b53fb3bd4b488d4e3a68f89e7f -
Branch / Tag:
- Owner: https://github.com/outerbounds
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@27308adcc35060b53fb3bd4b488d4e3a68f89e7f -
Trigger Event:
release
-
Statement type:
File details
Details for the file metaflow_kubeflow-0.0.1-py3-none-any.whl.
File metadata
- Download URL: metaflow_kubeflow-0.0.1-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27bee9e79297c9dd610c84a904027c75e81d7bf792552fb7e3387764e0780dd0
|
|
| MD5 |
e9de9ee4958b3f80cc067535db578968
|
|
| BLAKE2b-256 |
a663a8648f6da39babc5a8d094a9d8fcdf808cc80ebb2f67b9efd467d384822c
|
Provenance
The following attestation bundles were made for metaflow_kubeflow-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on outerbounds/metaflow-kubeflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metaflow_kubeflow-0.0.1-py3-none-any.whl -
Subject digest:
27bee9e79297c9dd610c84a904027c75e81d7bf792552fb7e3387764e0780dd0 - Sigstore transparency entry: 766398302
- Sigstore integration time:
-
Permalink:
outerbounds/metaflow-kubeflow@27308adcc35060b53fb3bd4b488d4e3a68f89e7f -
Branch / Tag:
- Owner: https://github.com/outerbounds
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@27308adcc35060b53fb3bd4b488d4e3a68f89e7f -
Trigger Event:
release
-
Statement type: