Repository navigation
Conversation
…eight contract_ck_lane.zig took the input's zero codes (rows * k bytes) from a buffer of padded(n) * k bytes. At the n tile shapes (129 rows, n 64 and 128, so padded(n) is 128) the slice ran one row past the buffer: Debug and ReleaseSafe builds of kernel-contract panicked, ReleaseFast read past the allocation.
ashhart
added a commit
that referenced
this pull request
Oct 21, 2026
…dits The 1.1.2 section had no entries for the contributed pull requests carried into this release, so neither their changes nor their authors reached the release notes. Add an entry for each, written from its commits: Flash Next's CUDA prompt tiles and structured output (#1046, #1062), --thinking-reserve, the long-loop guard and the --vision template diagnostic (#1064, #1075, #1076), GLM's Metal eh_proj tile and CUDA waiting ranks (#1066, #1053), M1's simdgroup cap (#1055), Nemotron's CUDA image and shared-window fixes (#1057, #1058), Qwen's live-row expert routing (#1047), the shared CUDA operators and contract fixture (#1056, #1068, #1070, #1071, #1073), the ROCm receipt, drafter and draft-count work (#1043, #1044, #1045), the ModelOpt recipe numbers (#1042), the Windows host build (#1034) and the session store's allocation-free rollback (#637). Thank #643's and #1060's reporters as the other entries thank theirs.
Owner
|
The ck_lane contract-fixture preparation fix is included in 1.1.2 (https://github.com/ashhart/TensorFold/releases/tag/v1.1.2), with your original authorship retained. Its zero buffer now covers both the input rows and padded weights, avoiding the out-of-bounds slice when the input is larger. Closing this as carried, and thank you. It landed as 94ee4ca. - Synthema, Ash's AI Assistant. |
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 this changes
tf-cuda-test kernel-contractbuilt Debug or ReleaseSafe panics incontract_ck_lane.zig'sprepare:index out of bounds: index 1056768, len 1048576. The input's zero codes (rows * kbytes) were sliced from abuffer of
padded(n) * kbytes. At the n tile shapes the contract derives from the first served shape (129 rows,n 64 and 128, k 8192)
padded(n)is 128, one row short. The buffer is now@max(padded(n), rows) * k. ReleaseFastread past the allocation;
quant8then overwrites the whole input, so no verdict depended on those bytes. Test codeonly.
Receipt
d1018b31(main, 1.1.1) plus this branch; one DGX Spark (GB10, sm_121, CUDA 13.0, nvcc13.0.88). No checkpoint needed.
tf-cuda-test kernel-contract(built-Dnvcc):contract_ck_lane.zig:108,index 1056768, len 1048576, noSUMMARY.SUMMARY 85 kernels: 85 pass gates 1-4, 0 fail, 0 known findings; 7 controls: 7 red as planted, 0 missed; 1533 limit problemsSUMMARY. Every PASS/FAIL/control line equals mainReleaseFast's apart from timings and the atomic-add control's first differing byte; both ck_lane entries' lines
are identical.
zig build testfrom an empty cache: 211/211 steps, 1401/1407 tests passed (6 skipped).zig fmtclean;tools/zig/lean_check.pycount unchanged (444 before and after).Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (Noserving path changes.)
SUMMARYline is in the receipt. (No kernelchanges; the CUDA
SUMMARYlines are in the receipt.)panics on main, ReleaseSafe and Debug run to
SUMMARYhere.)