Repository navigation
contract: nvcc 13.3's limit records for the 121 launches whose record it no longer matches - #3953
Conversation
|
Thanks @Bizuayeu for refreshing the 13.3 records. The red check doesn't come from them. The failing step is That test checks the benchmark command's group hints. It doesn't read the contract records, and your change touches only
There is nothing to change on your side. We are looking at that benchmark test separately. A rerun or a rebase onto current main is all this needs once it is sorted out.
|
Thank you for applying the two record files to main and checking the 112 names. When the benchmark test fix is on main, I'll rebase this branch onto it and post the CI result here. |
|
Thank you @Bizuayeu for waiting on the benchmark fix. Nothing else needs to change in the records: the 13.3 additions are still valid. Main has since added other entries to
|
Thank you. One line to drop in that rebase: The other 120 lines still hold. I rebased onto |
72cad6f to
51a0a4e
Compare
|
The rebased head |
51a0a4e to
0a7eddc
Compare
|
Thank you @Bizuayeu. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
Thank you. I think the landing didn't reach main: this pull request is still open, main's tip is |
|
@ashhart @Bizuayeu I checked the landing state and ran an independent host check on
Igor Lessio - AIFLOW LABS |
… it no longer matches kernel-contract-limits on five-SM fatbins built by nvcc 13.3 reports a stale record for 121 launches that have a 13.3 record or are checked against an earlier one: 112 get a line in nvcc_133_records.zig, 5 lines there and 4 in measurements/qwen_lanes_133.zig are replaced. Each line is the tool's own RECORD line.
0a7eddc to
f5f70c7
Compare
|
Thank you @Bizuayeu. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
ashhart#3953 recorded df_sumn at nvcc 13.3 with 33 registers on sm_120 and sm_121, measured before the kernel gained its dependent-launch wait. glm_cuda_records.zig already records it at 13.3 with 40 on both, and nvcc_133_records.zig is joined after it, so the later line won and the record read 33. This removes that line; the other records ashhart#3953 added are unchanged.
#3953 recorded df_sumn at nvcc 13.3 with 33 registers on sm_120 and sm_121, measured before the kernel gained its dependent-launch wait. glm_cuda_records.zig already records it at 13.3 with 40 on both, and nvcc_133_records.zig is joined after it, so the later line won and the record read 33. This removes that line; the other records #3953 added are unchanged.
tf-cuda-test kernel-contract-limitson five-SM fatbins built by nvcc 13.3 ends on main with 850 stale records. This adds or corrects the 13.3 record of the 121 launches that have a usage at nvcc 13.3, which clears 408 of those lines. The other 442 are on launches that are pending at 13.3, and this leaves them as they are (see "Not changed").813ff4ccbf72cad6f85brecord stalelinesrecord currentlinesFAIL kernel-contract-limits: 850 problemsFAIL kernel-contract-limits: 442 problemsBoth runs have 5,435 PASS lines and the 10 planted RED controls. The measured usage is the same in both: the two logs' PASS, RED and N/A lines are identical once the record state in brackets is dropped.
What this changes
zig/src/core/contract/nvcc_133_records.zig: 112 new lines incuda_133, merged in the list's order by name, and 5 lines replaced (flashnext_batch fn_gdn_fused,qwen35 tf_q35_gdn_slots_1,_2and_4,window_pages tf_wrows_merge_256_pg).zig/src/core/contract/measurements/qwen_lanes_133.zig: 4 receipts replaced (tf_q35_attn_rows8_mt2,qwen35 tf_q35_attn_partial,qwen35_kv8 tf_q35_attn_partial8,qwen35_kv8 tf_q35_attn_rows8).RECORDline for that launch, with the trailing comma dropped aszig fmtwrites a one-line entry.registry.zigandregistry_joins.zigare not touched. contract: the nvcc usage table moves to registry_cuda_sets.zig, so registry.zig has room #3865 landed after this was built. The branch merges into main at174010ec7cwithout a conflict (git merge-tree). On that main the registry holds the same 1,606 CUDA records with the same state at 13.3 (the probe below, run again), no CUDA kernel source changed in between, andzig build test-kernel-contracton the merged tree passes (36 of 36 steps, 255 of 255 tests). The fatbins were not built again on it.Not changed: 92 launches, 442 lines. These have no usage at nvcc 13.3 on main: they are
later_pendingor have no usage of their own, and no 13.3 receipt names them, soregistry.usageForreturnsnoneand their lines read stale whatever nvcc measures. A 13.3 line for one of them qualifies that compiler for the launch. I took that to be its family's call, not a correction of a record that is there, and left all 92 out. This is narrower than #1397, which also added 13.3 receipts for the launches pending in its day.What I saw on the way: a first state of this branch gave these launches receipts, and tests of four files failed because they expect
noneat 13.3. Firstqwen4_cuda_receipts_test.zig(the 32 launches of the qwen4_ images) andmoetile_records.zig(the 4 shared-down qmmf launches); with those launches left out,qmmf_prompt_records.zigandqwen_whole_records.zigfailed the same way, and no test objected to the receipts of the other images. No receipt can reach the 2 launches ofexl3_prompt_pending.zig:usageForreturnsnonefor them before it reads one.By image: qwen4_hc 12, qwen4_ple 10, qwen4_gdn 5, qwen4_projection 5, joint_schema 13, qmmf 10, flashnext_batch 7, prefill_attention 6, qwen35 6, qwen35_kv8 4, qwen36_mtp 4, exl3_experts 2, glm_glue 2, nvfp4_experts_tile 2, and flashnext_mtp, l2pace, l2pf and moe 1 each. Their
RECORDlines are in this head's log. If you want any of these qualified for 13.3, say which, and I'll add the receipts, with the test change where a test expectsnone, in a follow-up.Which launches are pending was asked of the registry itself: a 16-line Zig program, run in the base tree and not part of this diff, printed
later_pending, the record's own usage andusageFor(r, 13.3)for each of the 1,606 CUDA records.813ff4ccbf, the tree both runs were built from).atc overlap --json: incomplete (pullFilesUnavailable,timeLimit,workingTreeUnavailable), with no overlap reported. Fromgh pr listover the 459 open pull requests' file lists, none changes either file. gh lists at most 100 files a pull request, so a larger one could be missed.Checks on this head
72cad6f85bon main813ff4ccbf.python3 tools/zig/lean_check.py, on the base and on this head: 191 and 191, 0 new.tools/pr_check.py: 0 errors, 1 warning (no Unreleased line: the branch leavesCHANGELOG.mdalone; a line is offered below).zig build test-kernel-contract --summary all: 36 of 36 steps, 241 of 241 tests passed.zig fmt --check build.zig zig: clean.zig build check-release-paths: 10 of 10 steps.zig build compile-cuda-tests: 10 of 10 steps.python3 tools/zig/cuda_common_check.py: exit 0.zig build test --summary all: 744 of 744 steps, 10,533 of 10,611 tests passed, 78 skipped, 0 failed.python -m pytest -q -rsfrom the root: 612 passed, 89 skipped, 648 subtests passed. The skips are this machine's: no NumPy (30), the web tests' optional packages (51), macOS-only and sandbox cases (2), the interpreter's Unicode version (2), and 4 that need a built native binary or a fake-serve fixture. None is in the contract.kernel-contract-limitson fatbins: the table above. Both trees were built with an empty Zig global cache byzig build fatbins kernel-contract-fatbins -Dnvcc=<nvcc 13.3.73> -Dsm=80,86,89,120,121(151 files each), thentf-cuda-test kernel-contract-limits <the fatbin folder>.benchmark_run_test"--drafter auto passes the family's drafter only when it is cached and says which; only --serial adds --no-drafts" (its--serialcommand exits 2). That test is in the server's benchmark tool, not the contract, and neither it norbenchmark_run.zighas changed on main since 11-16. A localzig build teston this head ran the same 1,603-test server step: 1,595 passed, 8 skipped, 0 failed.cuda_133lines as the newest set at or below them (I have no such compiler);tf-cuda-test kernel-contractlive on a GPU to its end (I started it on the GB10 and stopped it after 40 minutes, before its limits step; no kernel changes here, and that step reads the same records the fatbin run above checks for sm_121).Changelog line, for where you place it at landing:
- Kernel contract: nvcc 13.3's limit records are corrected for the 121 launches whose record that compiler no longer matched (112 added, 9 replaced); the 92 launches pending at 13.3 stay pending (#3953).Receipt
n/a: the records are read by the kernel contract's tests and tools, not by a serving path. Outside
zig/src/core/contract, the registry's lookups are called only fromzig/tests/cudaand the contract's*_host.zigfiles, so no token, speed or memory can change.72cad6f85b, Zig 0.17.0, CUDA 13.3.73 (nvcc), Linux on aarch64, an NVIDIA GB10 (sm_121), driver 580.178.04.Checklist
pending_132_test.zigalready checks eachqwen_lanes_133.zigreceipt against the registry, and the limits tool is the check of the rest: 850 stale lines before, 442 after.)tools/pr_check.pypasses; the commit is under the GitHub noreply address.)"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (n/a: no serving code changes.)--drafter, no slower than without it, greedy and sampled (n/a: no serving code changes.)