neural_lam.utils.distributed
============================

.. py:module:: neural_lam.utils.distributed

.. autoapi-nested-parse::

   Utilities for distributed training configuration.



Functions
---------

.. autoapisummary::

   neural_lam.utils.distributed.training_strategy


Module Contents
---------------

.. py:function:: training_strategy(devices: int | str | list[int], num_nodes: int, *, find_unused_parameters: bool = False) -> str

   Select unused-parameter detection only for distributed training.

   :param devices: Lightning device count, device indices, or auto selection.
   :type devices: int or str or list[int]
   :param num_nodes: Number of distributed nodes.
   :type num_nodes: int
   :param find_unused_parameters: Whether the training objective leaves some model parameters unused.
   :type find_unused_parameters: bool, optional

   :returns: DDP with unused-parameter detection when requested and distributed;
             otherwise Lightning's auto strategy.
   :rtype: str


