Repository navigation
Conversation
Every Inkling 2 CUDA kernel but the EXL3 expert epilogues now also runs at Inkling 2 Mini's one-rank shapes (hidden 2,304, 24 over 8 key heads, k/v width 1,024, 128 experts top 8, floor 8,192, one 201,024-wide vocab row), each with its planted control. No kernel source changes: the widths were already arguments. Small's registrations keep their names, shapes and seeds. Host checks refuse what the kernels cannot hold, by name: Inkling2MixWidth, Inkling2RouterShape, Inkling2ConvHeads, Inkling2Heads.
This was referenced Nov 21, 2026
Open
1 task done
plotarmordev
added a commit
to plotarmordev/TensorFold
that referenced
this pull request
Nov 22, 2026
…all's kernels under the contract
plotarmordev
added a commit
to plotarmordev/TensorFold
that referenced
this pull request
Nov 22, 2026
Contributor
Author
|
Closing as superseded. Mini on CUDA now goes through #4387's engine: #4640 for correctness, and #4697, #4718, #4728 and #4729 for speed. Those four take it from 5.6 to 28.2 tok/s stacked, bit-equal to #4640, and a PR sharing one forward across streams follows. This stack would be a second Mini engine beside it (see #4387, comment 7092191800). The branch stays on my fork, so it can be reopened if a piece of it is wanted. The likeliest candidate is #4365's core NVFP4/MXFP8 expert entries, if Mini or another family moves onto core experts. |
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.
Proposal for review, draft. Slice C1 of the Inkling 2 Mini plan (#4274), claimed in #4274 (comment) and not yet confirmed. I'm opening it as a draft so the approach can be reviewed early; it stays a draft until the claim is confirmed.
What this changes
Inkling 2's CUDA kernels under the kernel contract at Mini's shapes, next to Small's. No kernel source changes: every
inkling2kernel already takes hidden, heads, key heads, experts and vocabulary as arguments, and Small's sizes lived only in the contract tests.tests/cuda/contract_inkling2_model.zigholds both shapes: Small at one TP=2 rank, and Mini at one rank (hidden 2,304, 24 query and 8 key heads, key width 1,024, 32 dynamic conv taps, 128 experts top 8, vocabulary row 201,024). Small's names, shapes and seeds are unchanged; Mini's entries carry " at Mini's shapes".Mini registrations for prep (sliding and global), attention (sliding, fold, split, prompt), the mix, embedding, the row dots (router, sinks, taps, tiles), softcap, top-k, the seven conv entries, rewind, top-1, race and
tobf, each with its planted control.Not registered for Mini:
rel_table(Small's shapes cover it), the EXL3 expert epilogues (Mini's experts are C3, coresrc/cuda/experts.zig), andput_words(shape-free).Host refusals by name, each with an
expectErrortest and a fake driver showing nothing launches first:Inkling2MixWidth,Inkling2RouterShape(also top 0 and top above the expert count), and two new ones,Inkling2ConvHeadsandInkling2Heads.Issue: Refs docs: a plan for Inkling 2 Mini on CUDA and Metal in claimable slices #4274, Inkling 2 Small on four DGX Sparks: a native CUDA family #3476.
Overlap: merges cleanly with Inkling-2-Small: Add grouped-expert and vision kernels #4127 and Metal: experimental Inkling 2 Mini text, vision and bundled DSpark #4337. Inkling-2-Small: Add DSpark drafter kernels #4128 (head
e7d4e44529, stacked on an older base) conflicts with main itself in the shared lists; this branch adds no conflicts beyond those, apart from add/add in theinkling2ops contract tests, which Inkling-2-Small: Add DSpark drafter kernels #4128 carries at their pre-Inkling-2-Small: Add embeddings, router, and other glue kernels #4126 version.atc overlap: incomplete (ATC's limits).ops.custays at 598 lines; the copied sampling keys there (noted on docs: a plan for Inkling 2 Mini on CUDA and Metal in claimable slices #4274) are untouched here.Checks on this head
Head
aeb9cb06c3, base main362107c4c9; GB10 (sm_121, driver 615.71.09).kernel-contract inkling2:SUMMARY 67 kernels: 67 pass gates 1-4; 32 controls: 32 red as planted, 0 missed; 0 limit problems. Main: 36 kernels, 18 controls.inkling2fatbins have the same md5 as main's build, so the kernels' SASS is unchanged.test-inkling2-cuda-host,test-inkling2-host,compile-cuda-tests: pass.tools/pr_check.py: 0 errors; lean checker 167 on the base, 167 here, 0 new.Receipt
n/a: no served path reaches these shapes until C4.
Proposed CHANGELOG line