3b6aab041a
auto: pre-test commit
2026-05-23 19:14:02 +00:00
2ec464824e
Try flattening sP and rP_bf16_qk with group_modes to fix rank mismatch
2026-05-23 19:13:59 +00:00
0e8f8ca2cf
Add debug prints for SMEM-P partition layouts
2026-05-23 19:13:07 +00:00
99566ef8a3
Fix SMEM-P: use BF16 copy atom and BF16 source with QK C-fragment layout
2026-05-23 19:12:13 +00:00
f77264f684
Fix SMEM-P copy: use tcgen05.copy.St32x32bOp with Float32 and copy from rP_words (Float32) not rP_bf16
2026-05-23 19:11:08 +00:00
0c5a42c056
Update STAGE_D.md with current action plan - starting NVFP4-0 verification and D1.3 validation on B200
2026-05-23 19:09:56 +00:00
2d18fc9c1d
📋 Update STAGE_D.md: D1.3 ✅ SOLVED, D1.4 ✅ IMPLEMENTED, D1.5 🟡 complex refactor, checklist updated
2026-05-23 18:37:53 +00:00
54104eeb8f
🎉 Mark D1.3 as SOLVED! SMEM-P rank mismatch fixed, enables hd>64 support
2026-05-23 18:26:15 +00:00
65a52d20fd
Fix rP scope issue: use rP_bf16.iterator instead of rP.iterator
2026-05-23 09:36:22 +00:00
d5d259b214
Fix duplicate else: line in SMEM-P block
2026-05-23 09:35:47 +00:00
5aee06b991
SMEM-P: Use QK C-fragment layout instead of TMEM layout to fix rank mismatch
2026-05-23 09:35:24 +00:00
8ffd1154fb
Fix sP_2d definition for tSMEM_CPYsP
2026-05-23 09:34:50 +00:00
ba810e96c1
Remove debug print lines referencing deleted sP_2d
2026-05-23 09:34:09 +00:00
1b8bf4996f
Remove duplicate sP_2d line causing indentation error
2026-05-23 09:33:40 +00:00
7a06723cef
SMEM-P: Implement rank mismatch fix by reshaping source tensor
2026-05-23 09:33:24 +00:00
c6f09d2ab8
Update STAGE_D.md checklist with current progress and lessons learned
2026-05-23 09:27:48 +00:00
21be1d4355
Add more debug prints for sP shapes
2026-05-23 09:26:30 +00:00
69f458ac30
Add debug prints to SMEM-P path to understand rank mismatch
2026-05-23 09:25:48 +00:00
f6b43227e5
Fix SMEM-P copy rank mismatch (use rP_bf16 directly instead of group_modes)
2026-05-23 09:21:13 +00:00
83a7dd0679
D1.3: Implement SMEM-P path (write P to SMEM via tiled_smem_copy instead of zeroing sP)
2026-05-23 09:20:37 +00:00
d9349bd127
Stage D1: Multi-PV-tile support for hd>256 (tcgen05 MMA max N=256)
2026-05-23 09:04:01 +00:00
568840ffc9
Fix v_fmha layout to use pv_n_tile instead of head_dim for multi-PV-tile support
2026-05-23 09:02:01 +00:00
6934b9b4b6
D1.4: Add pv_n_tile and n_pv_tiles for multi-PV-tile support (tcgen05 MMA max N=256)
2026-05-23 09:00:18 +00:00
3b98007093
diag: add 2-CTA check + fix LayoutEnum in MMA test
2026-05-23 08:45:26 +00:00
eca84bdcb5
fix: remove bad import in NVFP4 diag
2026-05-23 08:44:37 +00:00
1816965db8
fix: import ceil_div in quantize.py (was NameError at runtime)
2026-05-23 08:40:24 +00:00
cca62743df
fix: use quantize_activation_nvfp4 in diag
2026-05-23 08:39:12 +00:00
96a43b60f3
fix: use correct API for NVFP4-0 diag (sf_vec_size + mma_tiler_mn)
2026-05-23 08:38:19 +00:00
2b86aca551
fix: use Sm100BlockScaledPersistentDenseGemmKernel in diag
2026-05-23 08:30:43 +00:00
e87ec6c07a
fix: use randint+view for FP4/FP8 tensors in diag
2026-05-23 08:29:16 +00:00
44a917b277
fix: NVFP4-0 diag script — import SF_VEC_SIZE from quantize.py
2026-05-23 08:28:13 +00:00
c0c671e334
diag: NVFP4-0 primitive verification script
2026-05-23 08:26:56 +00:00
324fce3f63
docs: add NVFP4 precision roadmap to STAGE_D.md (3 honest buckets + speculative bucket)
2026-05-23 07:39:09 +00:00
4eccbb05c1
shit carmine left dangling
2026-05-23 06:55:22 +00:00
fe81eba7aa
D1.2: TMEM budget verified on B200. Split-PV mandatory at hd=512 (MMA max N=256)
2026-05-23 06:43:01 +00:00
49d29aa1d2
D1.2: fix probe for hd=512 (MMA max N=256, use pv_n_tile)
2026-05-23 06:41:42 +00:00
5b93a41250
D1.2: simplify TMEM budget probe, fix printf args
2026-05-23 06:40:55 +00:00
d5273b7f4f
fix: cuda.CUstream import
2026-05-23 06:40:05 +00:00
39311133d6
D1.2: TMEM budget probe using @cute.jit for MLIR context
2026-05-23 06:39:27 +00:00
25a08f5de2
fix: remove unused v_fmha_layout from probe
2026-05-23 06:38:08 +00:00
de277f08ac
D1.2: TMEM budget probe with real tensor major modes
2026-05-23 06:37:34 +00:00
7af31d46be
fix: OperandMajorMode.MN not .M
2026-05-23 06:36:39 +00:00
760d120b1c
fix: typo + OperandMajorMode for TMEM budget probe
2026-05-23 06:35:55 +00:00
df3708e3e2
fix: LayoutEnum import from cutlass.utils
2026-05-23 06:35:03 +00:00
241aa0f334
fix import path for tcgen05
2026-05-23 06:34:30 +00:00
44f8b4c5ce
D1.2: TMEM budget probe script for hd=64,128,256,512
2026-05-23 06:33:26 +00:00
cdfafe50de
fix: add SwiGLU clamping to fused kernel (paper §4.2.3, CG-1)
...
The fused SwiGLU kernel stored swiglu_limit but never applied it.
Paper §4.2.3: gate capped at swiglu_limit, linear clamped to [-limit, +limit].
Non-fused reference path already applies clamping correctly.
Fix: add fmin/fmax clamping in FP32 before BF16 conversion.
2026-05-23 06:32:54 +00:00
17b40eb3f8
STAGE_D.md: restructure with correctness gaps, TMEM budget, execution order
2026-05-23 06:31:37 +00:00
f30e7f5f43
D1.1: Fix make_fragment_A — use sP for SMEM source pv_mma
2026-05-23 06:04:44 +00:00
8b7b124295
D1.1: Fix PV A-operand construction — compile-time branch for TMEM vs SMEM
2026-05-23 06:03:27 +00:00