MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / gather_params

Method gather_params

deepspeed/module_inject/layers.py:465–469  ·  view source on GitHub ↗

Gathers parameters across devices for distributed training. Must be implemented by subclasses in "TRAINING" mode.

(self, params_list)

Source from the content-addressed store, hash-verified

463
464 @abstractmethod
465 def gather_params(self, params_list):
466 """
467 Gathers parameters across devices for distributed training. Must be implemented by subclasses in "TRAINING" mode.
468 """
469 pass
470
471 @abstractmethod
472 def _tp_partition(self, params_list: List[torch.Tensor]):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected