MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / _aligned_size

Method _aligned_size

deepspeed/runtime/zero/partition_parameters.py:1033–1034  ·  view source on GitHub ↗
(self, param)

Source from the content-addressed store, hash-verified

1031 param.convert_to_zero_parameters = convert_to_zero_parameters
1032
1033 def _aligned_size(self, param):
1034 return param.ds_numel + self._padding_size(param)
1035
1036 def _padding_size(self, param):
1037 remainder = param.ds_numel % self.num_partitions

Callers 3

aligned_sizeMethod · 0.95
_partition_paramMethod · 0.95
_allgather_paramMethod · 0.95

Calls 1

_padding_sizeMethod · 0.95

Tested by

no test coverage detected