Read the equation
The source uses inv_freq_mask as the weight on the original schedule and its complement as the weight on the divided schedule. Since inv_freq_mask=1−ramp, this is freq_interramp+freq_extra(1−ramp). Each intermediate frequency lies between its two schedules for a mask in[0,1].
Terms & definitions
The recovered passage does not supply a separate symbol table. Read the source context for the notation used in this version; familiar letters may carry different meanings in other builds.
How it works
Read the definition from its right-hand expression to the quantity on the left. Its surrounding source records the intended input, state, or parameter context. Where the source leaves an operation unspecified, this page preserves that gap.
Assumptions & limits
Source recovery establishes that the expression appears in this record. Its mathematical validity, implementation behavior, and interpretation must be assessed separately. See the linked source and research notes for the checks available for this version.
Original context
Read the surrounding source passage
)
inv_freq_mask = 1.0 - yarn_linear_ramp_mask(low, high, dim // 2).to(
device=device, dtype=torch.float32)
inv_freq = freq_inter * (1 -
inv_freq_mask) + freq_extra * inv_freq_mask
self.register_buffer("inv_freq", inv_freq, persistent=False)
t = torch.arange(seq_len, device=device, dtype=torch.float32)Exact original notation
inv_freq = freq_inter * (1 -
inv_freq_mask) + freq_extra * inv_freq_maskRelated builds
Sources & provenance
inv_freq = freq_inter * (1 - inv_freq_mask) + freq_extra * inv_freq_mask
inv_freq = freq_inter * (1 - inv_freq_mask) + freq_extra * inv_freq_mask
inv_freq = freq_inter * (1 - inv_freq_mask) + freq_extra * inv_freq_mask
inv_freq = freq_inter * (1 - inv_freq_mask) + freq_extra * inv_freq_mask