Diff Coverage

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

Source File Diff Coverage (%) Missing Lines
hyper_parallel/core/activation_memory/checkpoint.py 0.0% 314
hyper_parallel/core/activation_memory/checkpoint.py
310
311
312
313
314
315
316
317
    autocast region (e.g. forward outside 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()
    return torch.amp.autocast(device_type=device_type, **kwargs)