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-wandb.

Weights & Biases

Weights & Biases

flyteplugins-wandb

Flyte SDK (v2)Experiment Trackingwandbexperiment-trackingloggingsweeps

This plugin provides integration between Flyte and Weights & Biases (W&B) for experiment tracking, including support for distributed training with PyTorch Elastic.

Install
pip install flyteplugins-wandb

Quick Start(example, may need adjustment)

See full examples
pip install flyteplugins-wandb

from flytekit import task, workflow
from flyteplugins.wandb import wandb_init, get_wandb_run, wandb_config, wandb_sweep

@task
def my_task() -> None:
    wandb_init(...)

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

Available Imports (9)

taskwandb_init

Task for Weights & Biases.

from flyteplugins.wandb import wandb_init

taskget_wandb_run

Get the current wandb run if within a `@wandb_init` decorated task or trace.

from flyteplugins.wandb import get_wandb_run

configwandb_config

Configuration type for Weights & Biases.

from flyteplugins.wandb import wandb_config

taskwandb_sweep

Task for Weights & Biases.

from flyteplugins.wandb import wandb_sweep

taskget_wandb_sweep_id

Get the current wandb `sweep_id` if within a `@wandb_sweep` decorated task.

from flyteplugins.wandb import get_wandb_sweep_id

taskget_wandb_context

Get wandb config from current Flyte context.

from flyteplugins.wandb import get_wandb_context

typeElastic

Configuration type for Weights & Biases.

from flyteplugins.wandb import Elastic

configWandb

Generates a Weights & Biases run link.

extends dataclass — configuration or data structure for plugin setup

from flyteplugins.wandb import Wandb

configWandbSweep

Generates a Weights & Biases Sweep link.

extends dataclass — configuration or data structure for plugin setup

from flyteplugins.wandb import WandbSweep

Dependencies

wandb

Related Plugins

Package Info

Min Flyte SDK
Modules9

Downloads

Last day61
Last week262
Last month845