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

Method _next_batch

deepspeed/runtime/pipe/engine.py:588–598  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

586 print(*msg)
587
588 def _next_batch(self):
589 # If using 3D parallelism, only some first-stage ranks may do IO
590 batch = None
591 if self.data_iterator is not None:
592 batch = next(self.data_iterator)
593
594 # Any post-processing, like broadcasting across a slice-parallel group.
595 if self.batch_fn:
596 batch = self.batch_fn(batch)
597
598 return batch
599
600 def _exec_forward_pass(self, buffer_id):
601 self.tput_timer.start()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected