Files
Daniël de Kok c6071749db Fix mask passed to flashinfer (#3324)
Custom masks are padded to the shape `[batch_size, max_len, max_len]`.
However, flashinfer expects an unpadded mask of the shape
`[sum(q_len[i] * k_len[i] for i in range(batch_size)]`.

This change unpads the custom mask (currently only used by Gemma 3)
to this shape (assuming q_len == k_len, since we only use the custom
mask during prefill).
2025-09-08 13:47:03 -04:00
..
2025-07-02 17:54:25 +02:00
2024-02-16 11:58:58 +01:00
2025-01-20 11:13:46 +01:00
2024-10-16 12:49:33 +02:00
2025-05-06 18:01:59 +02:00