MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / _report_progress

Function _report_progress

train.py:694–697  ·  view source on GitHub ↗
(self, step)

Source from the content-addressed store, hash-verified

692 if optim_config.get('gradient_release', False):
693 # Prevent deepspeed from logging every single param group lr
694 def _report_progress(self, step):
695 lr = self.get_lr()
696 mom = self.get_mom()
697 deepspeed.utils.logging.log_dist(f"step={step}, skipped={self.skipped_steps}, lr={lr[0]}, mom={mom[0]}", ranks=[0])
698 deepspeed.runtime.engine.DeepSpeedEngine._report_progress = _report_progress
699
700 # Deepspeed executes all the code to reduce grads across data parallel ranks even if the DP world size is 1.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected