TorchXLAConfig#
- class ray.train.torch.xla.TorchXLAConfig(backend: str | None = None, init_method: str = 'env', timeout_s: int = 1800, neuron_parallel_compile: bool = False)[source]#
Bases:
TorchConfigConfiguration for torch XLA setup. See https://pytorch.org/xla/release/1.13/index.html for more info. Currently, only “neuron_cores” accelerator (AwsNeuronXLABackend) is supported with xrt runtime.
PublicAPI (alpha): This API is in alpha and may change before becoming stable.
Methods
Attributes
The
Backendclass that sets up this framework on the workers.The training framework this config sets up.
The context manager class wrapping each worker's training function.