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

Method on_validation_end

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

Source from the content-addressed store, hash-verified

416
417 @trainer_rank_zero_only
418 def on_validation_end(self, trainer: Trainer, pl_module: LightningModule) -> None:
419 eval_elapsed = time.perf_counter() - self.eval_t0
420 assert self.speed_monitor is not None
421 self.speed_monitor.eval_end(eval_elapsed)
422
423
424def flops_per_param(config: Config, n_params: int) -> int:

Callers

nothing calls this directly

Calls 1

eval_endMethod · 0.80

Tested by

no test coverage detected