Repository navigation
feat(dsv41): add general SM121 records for non-div-16 tile counts - #63
Conversation
…The current kits gate the float-score _index_score record and the\n_score_keys HAS_TMAX record on n.div16 and nt.div16. At n=600000,\nnt=9375, no record fits and Set.find returns MissingTritonVariant;\nan eager retry cannot supply the absent variant.\n\nAdd two general SM121 records compiled from the unchanged kernel\nsource, with their cubins and a metadata test. Existing records and\npayloads are untouched.\n\nSource: kernels.py at 8e0966e, SHA256 723c3af1...\nToolchain: Triton 3.7.1+gitf797708c.nv26.7, CUDA 13.3, SM121.\n
|
Thank you @cbertucci33 — this fills exactly the gap you named on 16 November: at We are reviewing it now, together with your two questions — whether the recorded provenance is sufficient or a rebuild from a pinned source should come first, and whether the same two cubins serve the TP2 and TP4 kits — and will follow up in this thread. |
|
Thank you @cbertucci33 — and credit for finding this gap on 11-16: at n=600000 the kit carries no non-div-16 float-score variant, so the #62 fallback cannot help there. Accepted. Your two questions: (1) the recorded provenance is enough for these tested artifacts — the pinned kernel source, the file hashes and the compiler you list stand as recorded; no rebuild is needed first. (2) Appending the same two records covers both kits; we will do that append and verify it on each kit ourselves before a kit carrying them is served, so the TP4 carry is our step, not yours. Before it merges, our checks run on the exact head, and the result will be posted here. |
|
Merged — thank you @cbertucci33! The decided checks ran on your exact head |
What this changes
Adds two general SM121 AOT records for DeepSeek-V4.1, with their cubins, for launches whose tile count is not a multiple of 16.
_index_score052d6c1ceb0c0134932d80c70ab723b84d5d13784d79962cbb47a4560c82c02d_score_keys9ab1ce45d139729e01bf8351bd87df01bed63459cd2c0d8072656fd178e6e88fNo existing record, cubin or manifest entry is modified.
Why
At
n=600000,nt=ceil(n/64)=9375, which is not divisible by 16. The current TP2 kit has 366 records; its matching float-score_index_scorerecord34247d211cd2...and its_score_keysHAS_TMAX=1recorddf85d0b39e2d...both requiren.div16andnt.div16. Neither fits, andaot.Set.findreturnsMissingTritonVariant. The eager fallback in #62 cannot help: the variant is absent, not merely uncaptured.The two new records are general in
nandntwhile keeping the existing pointer-alignment, dtype and constexpr constraints. Their argument names, types and constexprs match the current wrappers inzig/src/families/dsv41/tri_index.zig(indexScoreandscoreKeys).Provenance
src/tensorfold/families/deepseek_v41/cuda/kernels.pyat Git8e0966e2b09250abe2f6d9cc51edc20630e6eb1a, SHA256723c3af1c9c1608f7c6439eb4e05d1cadfc7e633727a3b71f10552a67dd4a530.triton_aot_manifest.pyandaot_pack.py; the two selected records are the ones withn.div16=falseandnt.div16=false.The current Zig branch no longer carries the Python engine source. These are the tested cubins, with provenance above, not a claim of byte-reproducible regeneration from the current branch. A rebuild needs the pinned source and compiler.
Evidence
python3 -B tools/dsv41-zig/kit/test_nondiv16.pychecks both records, parameter flags, metadata and cubin bytes. Against the current TP2 kit: 366 records, no hash collision.n=1, 64, 129, 262144, 599936, 599999, 600000, 600001, 600064, 600065,R=3/6;TF_AOT_WEAKEST=1policies;zig build test --summary allpasses (baseline run, no code change in this PR).These are synthetic kernel and dispatch results, not full-inference qualification. They do not resolve the initiating CUDA error 1/901, and this float-score case is separate from the integer-key case in MiaAI-Lab issue #65.
How to use
The README includes a minimal merge snippet. Append the two records, copy the two cubins, then run
pack_kit.pyandverify_kit.shto rebuild and checkMANIFEST/SHA256SUMS.Questions
tools/dsv41-zig/kit/nondiv16-sm121/the right home for the artifacts, or should they land as a kit bump in the TP2 and TP4 recipe repositories?The same two SM121 cubins apply to both the TP2 and TP4 kits; only the manifest record sets differ.