Preview Flyte 2 for productionHosted on Union.ai

This is the Flyte SDK (v2) version of this plugin. The Flytekit version is available as flytekitplugins-ray.

Ray

Ray

flyteplugins-ray

Flyte SDK (v2)ML Trainingraydistributedparallel

Union can execute Ray jobs natively on a Kubernetes Cluster,

Install
pip install flyteplugins-ray

Quick Start(example, may need adjustment)

See full examples
pip install flyteplugins-ray

from flytekit import task, workflow
from flyteplugins.ray import HeadNodeConfig, RayJobConfig, WorkerNodeConfig

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

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

Available Imports (3)

configHeadNodeConfig

Configuration type for Ray.

extends dataclass — configuration or data structure for plugin setup

from flyteplugins.ray import HeadNodeConfig

configRayJobConfig

Task for Ray.

extends dataclass — configuration or data structure for plugin setup

from flyteplugins.ray import RayJobConfig

configWorkerNodeConfig

Configuration type for Ray.

extends dataclass — configuration or data structure for plugin setup

from flyteplugins.ray import WorkerNodeConfig

Related Plugins

Package Info

Min Flyte SDK
Modules3

Downloads

Last day93
Last week410
Last month2,013