Skip to main content

rope_tables

Function rope_tables 

Source
pub fn rope_tables(
    rope: &Rope,
    rows: usize,
    factors: Option<&[f64]>,
) -> (Vec<f64>, Vec<f64>)
Expand description

The rotary tables for positions 0..rows: row p holds the (cos, sin) of each of the dims/2 frequencies (Rope::rotation — the checkpoint’s per-frequency factors, its sections, linear and YaRN scaling, the magnitude folded into both).