yarn_rope_mscale

Function yarn_rope_mscale 

Source
pub fn yarn_rope_mscale(config: &ModelConfig) -> f32
Expand description

2026-09-25: The YaRN mscale ratio get_mscale(factor, yarn_mscale) / get_mscale(factor, yarn_mscale_all_dim), or 1.0 when yarn_factor <= 1. The DeepSeek-V4 RoPE call sites pass it to their kernels.