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

Method _set_bounds

deepspeed/runtime/pipe/module.py:488–496  ·  view source on GitHub ↗

Manually define the range of layers that will be built on this process. These boundaries are treated as list slices and so start is inclusive and stop is exclusive. The default of None for both results in all layers being built locally.

(self, start=None, stop=None)

Source from the content-addressed store, hash-verified

486 raise RuntimeError(f'Layer {layer_idx} not owned? parts={self.parts}')
487
488 def _set_bounds(self, start=None, stop=None):
489 """Manually define the range of layers that will be built on this process.
490
491 These boundaries are treated as list slices and so start is inclusive and stop is
492 exclusive. The default of None for both results in all layers being built
493 locally.
494 """
495 self._local_start = start
496 self._local_stop = stop
497
498 def set_checkpoint_interval(self, interval):
499 assert interval >= 0

Callers 1

_partition_layersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected