Diff Coverage

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

Source File Diff Coverage (%) Missing Lines
hyper_parallel/components/functional/rotary_embedding.py 0.0% 273
hyper_parallel/components/functional/rotary_embedding.py
269
270
271
272
273
274
275
276
277
    cos_ = torch.cos(freqs).to(t.dtype)
    sin_ = torch.sin(freqs).to(t.dtype)

    rotary_mode = "interleave" if rotary_interleaved else "half"
    t = torch_npu.npu_rotary_mul(t.clone(), cos_, sin_, rotary_mode=rotary_mode)

    if t_pass is not None:
        return torch.cat((t, t_pass), dim=-1)
    return t