Preview Flyte 2 for productionHosted on Union.ai
Kubeflow MPI

Kubeflow MPI

flytekitplugins-kfmpi

FlytekitML Trainingmpikubeflowdistributedhorovod

This plugin uses the Kubeflow MPI Operator and provides an extremely simplified interface for executing distributed training.

Install
pip install flytekitplugins-kfmpi

Quick Start(example, may need adjustment)

See full examples
pip install flytekitplugins-kfmpi

from flytekit import task, workflow
from flytekitplugins.kfmpi import CleanPodPolicy, HorovodJob, Launcher, MPIJob

@task(task_config=HorovodJob(...))
def my_task() -> None:
    ...

@workflow
def my_workflow() -> None:
    my_task()

Available Imports (7)

enumCleanPodPolicy

CleanPodPolicy describes how to deal with pods when the job is finished.

extends Enum — enumeration of predefined options

from flytekitplugins.kfmpi import CleanPodPolicy

configHorovodJob

Configuration for an executable [`Horovod Job using MPI operator`](https://github.com/kubeflow/mpi-operator).

extends dataclass — configuration or data structure for plugin setup

from flytekitplugins.kfmpi import HorovodJob

configLauncher

Launcher replica configuration.

extends dataclass — configuration or data structure for plugin setup

from flytekitplugins.kfmpi import Launcher

configMPIJob

Configuration for an executable [`MPI Job`](https://github.com/kubeflow/mpi-operator).

extends dataclass — configuration or data structure for plugin setup

from flytekitplugins.kfmpi import MPIJob

enumRestartPolicy

RestartPolicy describes how the replicas should be restarted.

extends Enum — enumeration of predefined options

from flytekitplugins.kfmpi import RestartPolicy

configRunPolicy

RunPolicy describes some policy to apply to the execution of a kubeflow job.

extends dataclass — configuration or data structure for plugin setup

from flytekitplugins.kfmpi import RunPolicy

configWorker

Worker replica configuration.

extends dataclass — configuration or data structure for plugin setup

from flytekitplugins.kfmpi import Worker

Related Plugins

Package Info

Min Flytekit1.6.1
Modules7

Downloads

Last day1,253
Last week5,296
Last month28,900