MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / on_train_start

Method on_train_start

lit_gpt/speed_monitor.py:382–386  ·  view source on GitHub ↗
(self, trainer: Trainer, pl_module: LightningModule)

Source from the content-addressed store, hash-verified

380
381 @trainer_rank_zero_only
382 def on_train_start(self, trainer: Trainer, pl_module: LightningModule) -> None:
383 if trainer.fit_loop._should_accumulate():
384 return
385
386 self.train_t0 = time.perf_counter()
387
388 @trainer_rank_zero_only
389 def on_train_batch_end(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected