lightning_fabric.plugins.environments.cluster_environment.ClusterEnvironment¶
- class lightning_fabric.plugins.environments.cluster_environment.ClusterEnvironment[source]¶
Bases:
abc.ABC
Specification of a cluster environment.
- abstract static detect()[source]¶
Detects the environment settings corresponding to this cluster and returns
True
if they match.- Return type
- abstract global_rank()[source]¶
The rank (index) of the currently running process across all nodes and devices.
- Return type
- abstract local_rank()[source]¶
The rank (index) of the currently running process inside of the current node.
- Return type
- abstract node_rank()[source]¶
The rank (index) of the node on which the current process runs.
- Return type
- abstract property creates_processes_externally: bool¶
Whether the environment creates the subprocesses or not.
- Return type