Preview Flyte 2 for productionHosted on Union.ai

A Flyte SDK (v2) version of this plugin is available as flyteplugins-ray.

Ray

Ray

flytekitplugins-ray

FlytekitML Trainingraydistributedmlcompute

Flyte backend can be connected with Ray. Once enabled, it allows you to run flyte task on Ray cluster

Install
pip install flytekitplugins-ray

Quick Start(example, may need adjustment)

See full examples
pip install flytekitplugins-ray

from flytekit import task, workflow
from flytekitplugins.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 flytekitplugins.ray import HeadNodeConfig

configRayJobConfig

Task for Ray.

extends dataclass — configuration or data structure for plugin setup

from flytekitplugins.ray import RayJobConfig

configWorkerNodeConfig

Configuration type for Ray.

extends dataclass — configuration or data structure for plugin setup

from flytekitplugins.ray import WorkerNodeConfig

Related Plugins

Package Info

Min Flytekit1.0.0
Modules3

Downloads

Last day2,358
Last week9,536
Last month84,088