Diff Coverage

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

Source File Diff Coverage (%) Missing Lines
hyper_parallel/components/modules/engram/host_state.py 75.0% 309
hyper_parallel/components/modules/engram/host_state.py
305
306
307
308
309
310
311
312
313
        global_norm = global_sq.sqrt()
        if mesh is not None and dist.is_initialized() and dist.get_world_size() > 1:
            # Replica owners need bitwise-identical clipping even if floating-point
            # reductions on different mesh groups round differently.
            dist.broadcast(global_norm, src=0)
        return global_norm, dense_refs

    def prepare_optimizer_step(self, *, max_norm: float, gradient_divisor: float = 1.0) -> GradientPreparation:
        """Normalize owned sparse gradients, then clip jointly with dense gradients.