RayLightningEnvironment#
- class ray.train.lightning.RayLightningEnvironment(*args: Any, **kwargs: Any)[source]#
Bases:
LightningEnvironmentSetup Lightning DDP training environment for Ray cluster.
PublicAPI (beta): This API is in beta and may change before becoming stable.
Methods
Return this worker's rank across all workers.
Return this worker's rank among the workers on its node.
Return the rank of the node this worker runs on.
Do nothing, because
global_rank()reads the Ray Train context.Do nothing, because
world_size()reads the Ray Train context.Do nothing, in place of the parent environment's teardown.
Return the number of workers in the training run.