maybe_rope

Function maybe_rope 

Source
pub fn maybe_rope(
    x: &mut [f32],
    nope: usize,
    rope: usize,
    pos: usize,
    theta: f32,
    use_nope: bool,
)
Expand description

Optional RoPE on the rope slice of a packed [nope | rope] head. NoPE leaves q/k unchanged.