[EXL3] preserve mixed-prefill numerics with paired M8 FC2 - #2
Draft
yatesdr wants to merge 4 commits into
Draft
Conversation
This was referenced Aug 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Preserves block-64 mixed-K3/K4 prefill route packing and bounded workspace while restoring deterministic block-8 FC2 arithmetic inside the same cooperative grid.
The kernel maps each FC2 compute block to its block-64 metadata parent, computes exact M8 subtiles, and reuses each decoded weight tile across a pair of independent M8 outputs. The mixed-Trellis ABI is bumped so stale cubins cannot be reused across the record/launch contract change.
Why
The block-64 mixed-Trellis prefill path changed FC2 reduction order. Captured-input checks showed FC1 and activation outputs were bit exact while FC2 alone diverged and was nondeterministic at the production tile geometry. That raised prescribed KLD from the
0.07776700789368204reference to0.07888687230031491.The paired-M8 implementation restores the reference arithmetic without returning to serial homogeneous K3/K4 launches or unbounded workspace.
Validation
0.07776700789368204over 2,047 positions, exact reference parity;cached_tokens=0;738216;Dependency
This draft is stacked on local-inference-lab#110. Its base branch is an immutable copy of that PR head so the review diff contains only the exact-FC2 implementation. Retarget to
masterafter local-inference-lab#110 merges.Companion vLLM planner: yatesdr/vllm-opt#1