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

Method gather_params

deepspeed/module_inject/layers.py:461–465  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected