@triton.jit
def symmetric_alibi_mask(slope, offs_m, offs_n, M, N, EVEN_M: tl.constexpr,
    EVEN_N: tl.constexpr):
    alibi = -tl.abs(M - N + offs_n[None, :] - offs_m[:, None]) * slope
    if not EVEN_M & EVEN_N:
        mask = make_bounds(offs_m, offs_n, M, N, EVEN_M, EVEN_N)
        mask, alibi = tl.broadcast(mask, alibi)
        alibi = tl.where(mask, alibi, float('-inf'))
    return alibi
