transformers
429e6916 - [MiMo-V2-Flash] Count the query token in the sliding window (#49170)

Commit
47 days ago
[MiMo-V2-Flash] Count the query token in the sliding window (#49170) * [MiMo-V2-Flash] Count the query token in the sliding window The Hub config stores `sliding_window_size`, the number of previous tokens an SWA query attends to (the flash-attention left window of the reference SGLang implementation). Transformers' `sliding_window` also counts the query, so it is `sliding_window_size + 1` = 129. * Apply make fix-repo: order the sliding_window docstring by field * Shorten the sliding_window comments Keep one line on why the config adds 1 to the hub `sliding_window_size`, drop the `sliding_window` docstring override (the standard description applies) and the duplicate comment in the converter. * Cite SGLang as the reference in the sliding_window comment
Author
Parents
Loading