Skip to main content

rope_half_partial

Function rope_half_partial 

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

Rotate only the first rotary_dim dims of each head (partial_rotary_factor).