Code · architecture · study mode
One import swaps the entire attention kernel. flash_attn_varlen_func (Flash Attention 3) handles variable-length…
Full explanation below the code →
One import swaps the entire attention kernel. flash_attn_varlen_func (Flash Attention 3) handles variable-length sequences packed together — no padding tokens, no wasted compute.
What does 'varlen' mean here and why does it matter for a speedrun?