Skip to content

ffpa: drop the NHD per-tensor materialization fallback - #1107

Merged
DefTruth merged 1 commit into
mainfrom
dev
Aug 28, 2026
Merged

ffpa: drop the NHD per-tensor materialization fallback#1107
DefTruth merged 1 commit into
mainfrom
dev

Conversation

@DefTruth

Copy link
Copy Markdown
Member

Every CUDA kernel family (persist-D / split-D / M4N2 across fp8 / fp4 / fp16) now reads NHD gmem natively -- packed-NHD and strided fused-QKV chunk views alike -- so the _keep_or_pack materialization fallback has no legitimate trigger left: tensors outside the NHD layout contract are contract violators and now fail loudly in the C++ layout gates instead of silently paying a copy. Also drops the is_nhd_zero_copy_input probe that only served the old-build materialization path.

Every CUDA kernel family (persist-D / split-D / M4N2 across fp8 / fp4 /
fp16) now reads NHD gmem natively -- packed-NHD and strided fused-QKV
chunk views alike -- so the _keep_or_pack materialization fallback has
no legitimate trigger left: tensors outside the NHD layout contract are
contract violators and now fail loudly in the C++ layout gates instead
of silently paying a copy. Also drops the is_nhd_zero_copy_input probe
that only served the old-build materialization path.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@DefTruth
DefTruth merged commit 26c72d7 into main Aug 28, 2026
4 checks passed
@DefTruth
DefTruth deleted the dev branch August 28, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant