Skip to main content

rotary_values

Function rotary_values 

Source
pub fn rotary_values(
    spec: &ModelSpec,
    var: &str,
    positions: usize,
    source: &mut dyn WeightSource,
) -> Result<Option<Vec<f64>>>
Expand description

The values of the rotary table var names (RotaryTable::named) for a model of spec: a decode step’s caches of positions rows, or a forward’s one row (position 0), of the rotation the name gives, the frequency factors read from source when the rotation reads the checkpoint’s (rope_freqs.weight). None when var names no table.