Diff Coverage

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

Source File Diff Coverage (%) Missing Lines
hyper_parallel/core/activation_memory/checkpoint.py 66.7% 313
hyper_parallel/core/activation_memory/checkpoint.py
309
310
311
312
313
314
315
316
317
    AMP, backward under ``autocast(bf16)``), and a null context would let that
    ambient state leak into the replay, changing recomputed tensor dtypes.
    """
    if kwargs is None:
        return contextlib.nullcontext()
    if not kwargs.get("enabled", False) and not torch.is_autocast_enabled(device_type):
        # Saved and ambient state are both "disabled": entering autocast here
        # would only trigger needless device backend setup.
        return contextlib.nullcontext()