Commit Graph

205 Commits

Author SHA1 Message Date
d4aeb4e41c D1.3: Add unnormalized debug test to isolate SMEM-P vs O round-trip error 2026-05-24 00:15:41 +00:00
b2a583a2a8 D1.3: Add SMEM-P write/read diagnostic 2026-05-24 00:13:28 +00:00
0fc6530f3f D1.3: Add SMEM-P vs TMEM-P comparison test 2026-05-24 00:10:18 +00:00
d56e5601bb D1.3: Fix while loop in cotiled diag - precompute num_tmem_alloc_cols 2026-05-24 00:07:22 +00:00
7bd857e5d3 D1.3: Fix cotiled diagnostic - use proper MMA construction 2026-05-24 00:06:50 +00:00
3fe17495ee D1.3: Add make_cotiled_copy diagnostic test 2026-05-24 00:05:48 +00:00
ed539653d0 shit left dangling 2026-05-23 23:58:57 +00:00
de869c01c8 D1.3: Add SMEM-P coordinate diagnostic test 2026-05-23 23:23:05 +00:00
d10cab7a8e D1.3: Enhanced diagnostic - test QK C-fragment as source for make_tiled_copy_C 2026-05-23 22:24:15 +00:00
a90fe41b6b D1.3: Skip fragment creation in diagnostic, just print layouts 2026-05-23 22:21:31 +00:00
b871e6874b D1.3: Fix diagnostic - use dummy ptr 0 for shape analysis 2026-05-23 22:20:16 +00:00
0b3d3bcd2b D1.3: Fix sP allocation - p_smem_s.outer is already a layout 2026-05-23 22:19:11 +00:00
fc4106f37e D1.3: Fix layout diagnostic - compute c_major outside kernel 2026-05-23 22:17:54 +00:00
6afa610b0d D1.3: Layout diagnostic v2 - run inside JIT-compiled kernel 2026-05-23 22:16:57 +00:00
b185ac2080 D1.3: Fix layout diagnostic - remove JIT-dependent code 2026-05-23 22:15:47 +00:00
d265264f74 D1.3: Layout diagnostic - print all QK C-fragment and PV A-operand shapes 2026-05-23 22:14:35 +00:00
b1152acd88 D5b: Fix reference computation - use logsumexp for stable LSE, fix o_unnorm definition 2026-05-23 21:43:04 +00:00
b77ad244a2 D5b: Use normalized O + LSE for merge (correct formula), always output LSE 2026-05-23 21:35:40 +00:00
84200ca557 D5b: Clean up merge test - stable formula for both ref and kernel 2026-05-23 21:33:45 +00:00
909f880cc2 D5b: Use reference per-row LSE for proper O normalization 2026-05-23 21:31:52 +00:00
fef7e90c0a D5b: Fix kernel_obj reference 2026-05-23 21:30:59 +00:00
d245342a7a D5b: Fix syntax error 2026-05-23 21:30:00 +00:00
4a8fd64c4e D5b: Debug reference formula mismatch, add numerically stable merge 2026-05-23 21:19:25 +00:00
e0201e581d 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
b273d4a7e8 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
2083204a90 diag: add 2-CTA check + fix LayoutEnum in MMA test 2026-05-23 08:45:26 +00:00
02daa63f67 fix: remove bad import in NVFP4 diag 2026-05-23 08:44:37 +00:00
28724b8c18 fix: use quantize_activation_nvfp4 in diag 2026-05-23 08:39:12 +00:00
690be100aa fix: use correct API for NVFP4-0 diag (sf_vec_size + mma_tiler_mn) 2026-05-23 08:38:19 +00:00
0fc43eb624 fix: use Sm100BlockScaledPersistentDenseGemmKernel in diag 2026-05-23 08:30:43 +00:00
e6c9616eba fix: use randint+view for FP4/FP8 tensors in diag 2026-05-23 08:29:16 +00:00
96567ea64d fix: NVFP4-0 diag script — import SF_VEC_SIZE from quantize.py 2026-05-23 08:28:13 +00:00
f6f4ce8ec2 diag: NVFP4-0 primitive verification script 2026-05-23 08:26:56 +00:00
a951a95276 D1.2: fix probe for hd=512 (MMA max N=256, use pv_n_tile) 2026-05-23 06:41:42 +00:00
97899b42a3 D1.2: simplify TMEM budget probe, fix printf args 2026-05-23 06:40:55 +00:00
640bae606e fix: cuda.CUstream import 2026-05-23 06:40:05 +00:00
595c9d677c D1.2: TMEM budget probe using @cute.jit for MLIR context 2026-05-23 06:39:27 +00:00
1a781447cb fix: remove unused v_fmha_layout from probe 2026-05-23 06:38:08 +00:00
3490601e02 D1.2: TMEM budget probe with real tensor major modes 2026-05-23 06:37:34 +00:00
8b351bd871 fix: OperandMajorMode.MN not .M 2026-05-23 06:36:39 +00:00
5b3bd4876c fix: typo + OperandMajorMode for TMEM budget probe 2026-05-23 06:35:55 +00:00
677245fc5c fix: LayoutEnum import from cutlass.utils 2026-05-23 06:35:03 +00:00
bd968db5d4 fix import path for tcgen05 2026-05-23 06:34:30 +00:00
afec55ad72 D1.2: TMEM budget probe script for hd=64,128,256,512 2026-05-23 06:33:26 +00:00
4c3239b9c0 debug: hd=64 with CUDA_LAUNCH_BLOCKING 2026-05-23 03:42:53 +00:00
4df5dafcc9 D1: test raw unnormalized output via epilogue_tma_store 2026-05-23 03:33:59 +00:00
6dfc06cdef test: paired atoms epilog from old commit 6ee28d8 2026-05-23 03:32:53 +00:00
e1fc4cee60 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
32481f8a2b d1: sweep hd=64,128,256 2026-05-23 03:26:10 +00:00
3ec7f36e62 fix: use mV.iterator 2026-05-23 03:25:29 +00:00