Diff Coverage

Diff: origin/master...HEAD, staged and unstaged changes

Source File Diff Coverage (%) Missing Lines
hyper_parallel/compile/compiler.py 92.9% 455
hyper_parallel/components/checkpoint/dcp_checkpointer.py 100%  
hyper_parallel/trainer/base.py 100%  
hyper_parallel/trainer/callbacks/checkpoint_callback.py 98.7% 963
hyper_parallel/compile/compiler.py
451
452
453
454
455
456
457
458
459
            raise RuntimeError(
                "Graph post-compile initialization failed; rebuild the trainer"
            ) from self._post_compile_error
        if self.is_compiled:
            self._run_post_compile_hooks([hook])
            return
        self._post_compile_hooks.append(hook)

    def reshard_optimizer_state(self, optimizers: Any) -> None:
hyper_parallel/trainer/callbacks/checkpoint_callback.py
959
960
961
962
963
964
965
966
967
        schedulers = _as_list(self.trainer.lr_scheduler)
        if lr_scheduler_sd and schedulers:
            scheduler_sds = _as_list(lr_scheduler_sd)
            if len(scheduler_sds) != len(schedulers):
                logger.warning(
                    "Checkpoint carries %s LR scheduler state dict(s) but this "
                    "run has %s scheduler(s); only the first %s pair(s) are "
                    "restored and any extra scheduler(s) keep their freshly "
                    "initialized state.",