1e5635b93f
D1.3: Add SMEM-P coordinate diagnostic test
2026-05-23 23:23:05 +00:00
c507d0640c
D1.3: Enhanced diagnostic - test QK C-fragment as source for make_tiled_copy_C
2026-05-23 22:24:15 +00:00
bf896c0894
D1.3: Skip fragment creation in diagnostic, just print layouts
2026-05-23 22:21:31 +00:00
0c435b3e51
D1.3: Fix diagnostic - use dummy ptr 0 for shape analysis
2026-05-23 22:20:16 +00:00
55caf8be38
D1.3: Fix sP allocation - p_smem_s.outer is already a layout
2026-05-23 22:19:11 +00:00
d1c600f599
D1.3: Fix layout diagnostic - compute c_major outside kernel
2026-05-23 22:17:54 +00:00
d3d0020b4e
D1.3: Layout diagnostic v2 - run inside JIT-compiled kernel
2026-05-23 22:16:57 +00:00
ec8fd1474c
D1.3: Fix layout diagnostic - remove JIT-dependent code
2026-05-23 22:15:47 +00:00
c3a7c30f20
D1.3: Layout diagnostic - print all QK C-fragment and PV A-operand shapes
2026-05-23 22:14:35 +00:00
2ced9d0da7
D5b: Fix reference computation - use logsumexp for stable LSE, fix o_unnorm definition
2026-05-23 21:43:04 +00:00
70763030c0
D5b: Use normalized O + LSE for merge (correct formula), always output LSE
2026-05-23 21:35:40 +00:00
28949da6e4
D5b: Clean up merge test - stable formula for both ref and kernel
2026-05-23 21:33:45 +00:00
9e1859827f
D5b: Use reference per-row LSE for proper O normalization
2026-05-23 21:31:52 +00:00
48d37d652e
D5b: Fix kernel_obj reference
2026-05-23 21:30:59 +00:00
caf89c65bf
D5b: Fix syntax error
2026-05-23 21:30:00 +00:00
3dd9cd6a94
D5b: Debug reference formula mismatch, add numerically stable merge
2026-05-23 21:19:25 +00:00
98390df27e
D5b: Python SWA+sink merge test
...
- Run FMHA twice (compressed KV + SWA KV, normalize=False)
- Merge with sink weights in Python
- Verify end-to-end correctness vs FP32 reference
2026-05-23 21:18:06 +00:00
c80f223d08
D5a: Add normalize flag + LSE output
...
- normalize=True (default): O = softmax(P) @ V (existing behavior)
- normalize=False: O = P @ V (un-normalized) + lse = log(row_sum) + row_max
- LSE tensor passed as optional parameter
- Test includes D5a normalize=False verification with LSE comparison
- Cleaned up SMEM-P debug prints and broken make_tiled_copy_C code
- hd=64 TMEM-P regression: cos 0.973 PASS
2026-05-23 21:10:40 +00:00
b13da6b7a0
diag: add 2-CTA check + fix LayoutEnum in MMA test
2026-05-23 08:45:26 +00:00
c34291843b
fix: remove bad import in NVFP4 diag
2026-05-23 08:44:37 +00:00
538dbb0643
fix: use quantize_activation_nvfp4 in diag
2026-05-23 08:39:12 +00:00
e2f599e4af
fix: use correct API for NVFP4-0 diag (sf_vec_size + mma_tiler_mn)
2026-05-23 08:38:19 +00:00
5572b74591
fix: use Sm100BlockScaledPersistentDenseGemmKernel in diag
2026-05-23 08:30:43 +00:00
6b1330ba47
fix: use randint+view for FP4/FP8 tensors in diag
2026-05-23 08:29:16 +00:00
3733927f28
fix: NVFP4-0 diag script — import SF_VEC_SIZE from quantize.py
2026-05-23 08:28:13 +00:00
6d8f7db2dd
diag: NVFP4-0 primitive verification script
2026-05-23 08:26:56 +00:00
99000cba8d
D1.2: fix probe for hd=512 (MMA max N=256, use pv_n_tile)
2026-05-23 06:41:42 +00:00
60824b62db
D1.2: simplify TMEM budget probe, fix printf args
2026-05-23 06:40:55 +00:00
de439bcd75
fix: cuda.CUstream import
2026-05-23 06:40:05 +00:00
1c20b826d9
D1.2: TMEM budget probe using @cute.jit for MLIR context
2026-05-23 06:39:27 +00:00
6575e83f6d
fix: remove unused v_fmha_layout from probe
2026-05-23 06:38:08 +00:00
07bf2adf51
D1.2: TMEM budget probe with real tensor major modes
2026-05-23 06:37:34 +00:00
6e351c276d
fix: OperandMajorMode.MN not .M
2026-05-23 06:36:39 +00:00
cabe8489aa
fix: typo + OperandMajorMode for TMEM budget probe
2026-05-23 06:35:55 +00:00
61b9dbb2d6
fix: LayoutEnum import from cutlass.utils
2026-05-23 06:35:03 +00:00
4c35fa49a9
fix import path for tcgen05
2026-05-23 06:34:30 +00:00
a2d0dec7bb
D1.2: TMEM budget probe script for hd=64,128,256,512
2026-05-23 06:33:26 +00:00
1be005296c
debug: hd=64 with CUDA_LAUNCH_BLOCKING
2026-05-23 03:42:53 +00:00
fe1826b0de
D1: test raw unnormalized output via epilogue_tma_store
2026-05-23 03:33:59 +00:00
091cb59be5
test: paired atoms epilog from old commit 6ee28d8
2026-05-23 03:32:53 +00:00
f23d55fd3f
D1: paired atoms epilogue (no TMEM round-trip)
...
Replace NO-OP round-trip + normalize + epilogue_tma_store with:
- get_tmem_load_op + get_smem_store_op paired atoms
- One-way TMEM→reg (normalize) →SMEM→GMEM
- Eliminates ~3% error from TMEM layout mismatch
- O rescale disabled (single KV tile only for now)
- Pre-computed TMA partitions outside if blocks
2026-05-23 03:29:51 +00:00
7df3c7c952
d1: sweep hd=64,128,256
2026-05-23 03:26:10 +00:00
81378133cc
fix: use mV.iterator
2026-05-23 03:25:29 +00:00
a66a9efd4c
fix: use mQ not q for LayoutEnum
2026-05-23 03:24:58 +00:00
d2aaab5a32
d1: add diagnostic script
2026-05-23 03:24:16 +00:00
a2d063a48b
D1: N-tile support for HEAD_DIM>256
...
- pv_n_tile = min(head_dim, 256) — MMA instruction N limit
- n_pv_tiles = head_dim // pv_n_tile — outer loop count
- V FMHA layout uses pv_n_tile (not head_dim) for N-tile slicing
- Test loops over N-tiles at Python level, kernel processes (128, pv_n_tile)
- For hd=512: 2 kernel launches with V[:,0:256] and V[:,256:512]
2026-05-23 03:22:23 +00:00
7bc097163d
d1: add hd=512 test
2026-05-23 03:20:46 +00:00
32995c2ba3
d1: add quick regression test (hd=64 only)
2026-05-23 03:20:12 +00:00
eed981bee5
D1: Parameterize HEAD_DIM in FmhaKernel (64→512)
...
- Promote HEAD_DIM from module constant to constructor parameter
- FmhaKernel(head_dim=64, s_k=128, ...) — default 64 for regression
- All references to HEAD_DIM replaced with self.head_dim
- PV MMA tiler, V layout, softmax corr_tiles all parameterized
- TMEM budget warning when num_tmem_alloc_cols > 512
- New test: test_fmha_v3_stage_d1.py tests hd=64 (regression) and hd=512
- Stage C test preserved as-is for reference
2026-05-23 03:19:52 +00:00
9c331de7ba
fix: revert to composition layout for hand-constructed atoms (matching CUTLASS)
2026-05-23 02:54:54 +00:00