Skip to main content

rope

Function rope 

Source
pub fn rope(
    x: &mut [f32],
    head_dim: usize,
    pos: usize,
    theta: f32,
) -> Result<(), EngineError>
Expand description

Apply RoPE to interleaved q/k pairs for one token (head_dim even).