biondizzle
b6b581777a
D3: In-kernel SWA sequence length masking
...
- Add apply_swa_mask flag to FmhaKernel constructor
- After TMEM load of S, use tTMEM_LOADcS coordinates to map register
fragment positions to (row, col) in QK matrix
- Mask positions >= swa_lens[batch_idx] to -inf before softmax
- Supports multi-KV-tile (kt*128 + k_coord for absolute position)
- swa_lens parameter passed as CuTe tensor, indexed by block_idx_z
- Dummy tensor (max int) when swa_lens=None (no masking)
- New test: test_d3_inkernel_mask.py with proper in-kernel masking
- Replaces pre-masking approach (BF16 min on K) which can't produce -inf
2026-05-26 10:51:23 +00:00
..
2026-05-21 17:30:44 +00:00
2026-05-21 17:30:44 +00:00
2026-05-21 17:30:44 +00:00
2026-05-24 01:55:37 +00:00
2026-05-21 17:30:44 +00:00
2026-05-24 00:07:22 +00:00
2026-05-23 22:24:15 +00:00
2026-05-23 23:23:05 +00:00
2026-05-24 00:24:24 +00:00
2026-05-24 00:10:18 +00:00
2026-05-24 00:15:41 +00:00
2026-05-24 00:13:28 +00:00
2026-05-23 03:42:53 +00:00
2026-05-24 03:22:23 +00:00
2026-05-23 03:25:29 +00:00
2026-05-24 16:36:48 +00:00
2026-05-24 16:42:01 +00:00
2026-05-23 03:20:46 +00:00
2026-05-24 22:21:51 +00:00
2026-05-24 22:24:27 +00:00
2026-05-24 22:17:24 +00:00
2026-05-24 22:23:08 +00:00
2026-05-24 03:23:16 +00:00
2026-05-24 22:00:42 +00:00
2026-05-24 14:20:32 +00:00
2026-05-23 03:33:59 +00:00
2026-05-24 15:13:16 +00:00
2026-05-24 22:04:51 +00:00
2026-05-24 22:18:12 +00:00
2026-05-24 22:17:24 +00:00
2026-05-24 03:48:37 +00:00
2026-05-23 03:29:51 +00:00
2026-05-24 03:27:14 +00:00
2026-05-24 22:17:24 +00:00
2026-05-25 17:16:05 +00:00
2026-05-25 16:50:49 +00:00
2026-05-24 22:28:11 +00:00
2026-05-24 22:48:22 +00:00
2026-05-25 17:13:34 +00:00
2026-05-24 22:49:44 +00:00
2026-05-26 10:51:23 +00:00
2026-05-25 17:28:43 +00:00
2026-05-25 17:18:50 +00:00
2026-05-23 02:54:54 +00:00
2026-05-24 04:07:40 +00:00
2026-05-23 21:43:04 +00:00
2026-05-22 23:35:55 +00:00
2026-05-21 17:30:44 +00:00
2026-05-25 03:07:53 +00:00
2026-05-25 16:24:04 +00:00
2026-05-23 08:45:26 +00:00
2026-05-25 09:08:01 +00:00
2026-05-25 03:17:13 +00:00
2026-05-23 03:32:53 +00:00
2026-05-24 08:07:32 +00:00
2026-05-24 02:15:07 +00:00
2026-05-23 23:58:57 +00:00
2026-05-24 01:58:32 +00:00
2026-05-23 06:41:42 +00:00