Repository navigation
kernel contract: the CUDA runner maps fp8_experts' image, so a run reaches its summary - #1579
Merged
Merged
Conversation
…aches its summary 455448d registered fp8_experts' three prompt kernels, but contract_limits.zig's image() does not know the name: on a CUDA machine `kernel-contract` stops in the live limits with UnknownContractImage, before every record after it and before its SUMMARY line. A host test now resolves every registered CUDA launch and control, and fails on main naming fp8_experts.
ashhart
force-pushed
the
pr/contract-fp8-image
branch
from
October 29, 2026 23:39
f56838b to
0d9312b
Compare
Owner
|
Thank you @Bizuayeu. This is in TensorFold 1.2.0, released today: https://github.com/ashhart/TensorFold/releases/tag/v1.2.0 It landed with your commits under your own name, so you're listed as a TensorFold contributor, and it's credited to you in the release notes and the changelog. |
9 tasks done
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
What it buys: the CUDA kernel contract runs to the end again. On main,
zig build kernel-contracton a CUDAmachine stops at fp8_experts' first record about 90 minutes in (5,428 s on a GB10), with 270 of its 1,325
live-limit checks made and no
SUMMARYline. The other 1,055 never run, and a pull request that changes a CUDA kernelcannot show the
SUMMARYline its checklist asks for. With this change the same run makes all 1,325 checks and endsin its
SUMMARY. Only the contract's runner and a host test change, so prompt and decode speed and the served bytescannot move.
455448d26registered launch records for fp8_experts' three prompt kernels (registry_media.zig), butimage()inzig/tests/cuda/contract_limits.zig, which the live limits use to load each record's image, does not know the name.The live limits then print
FAIL kernel-contract: unknown image name: fp8_expertsand the run stops withUnknownContractImage, before the records after it and before itsSUMMARYline. CI builds the runner(
compile-cuda-tests) but does not run it.image()now mapsfp8_expertstokernels.fp8_experts, on a line of its own besidewindow_rows, so it leavesalone the list of names that kernel pull requests append to (ten open ones change that line).
contract_images_test.ziggains "every registered CUDA launch and control selects its own image": every record inregistry.all_cudaandregistry.cuda_controlsmust resolve to its own inert bytes. It fails on main namingfp8_experts, and would name the next image registered without a mapping. Of the registry's image names, fp8_experts
is the only CUDA one the map lacks (the others are HIP's).
Receipt
f56838b3c(main7c0688951and this commit); GB10 (sm_121); nvcc 13.0.88;zig build kernel-contract -Dnvcc=... -Dsm=80,86,89,120,121.unknown image name: fp8_experts. On the GB10, a run of a branch on thismain stopped there in the live limits after 5,428 s (
kernel-contract: UnknownContractImage), with noSUMMARY.fp8_experts launches pass the live limits as recorded (gate-up 218 registers, down f32 and down bf16 221, 32,768
shared bytes each), and
SUMMARY 433 kernels: 433 pass gates 1-4, 0 fail, 6 known findings; 316 controls: 316 red as planted, 0 missed; 183 limit problems. The run still exits 1 on those 183, none of them fp8_experts' and nonetouched here: 168 records with no compiled usage for nvcc 13.0 (Qwen4's hc, ple, projection and gdn images, Qwen3.5's
attention, nvfp4_experts_tile's two tile kernels), and 15 live launches of nvfp4_experts_tile and Qwen3.5 whose usage
is missing from or differs from their records.
test-contract-images-host6/6 (5/6 on main, the new test failing),zig build test436/439 steps (5,424 of 5,451 tests, 26 skipped; the one failure Qwen3.5's timing-dependent cost-identity test,
which fails the same way on main),
compile-cuda-tests10/10 steps,zig fmt --check, andtools/zig/lean_check.pywith nothing new (425 against main's 425).Checklist
code changes.)
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (Noengine code changes.)
arithmetic changes.)
SUMMARYline is in the receipt. (No kernel changes; the CUDASUMMARYline is in the receipt.)on main naming fp8_experts and passes with the map's line; it needs no device.)