Skip to content

inkling2: Mini's shapes on Small's CUDA kernels under the contract (C1, proposal) - #4364

Closed
jschmied wants to merge 1 commit into
ashhart:mainfrom
jschmied:inkling2-mini-c1
Closed

jschmied wants to merge 1 commit into
ashhart:mainfrom
jschmied:inkling2-mini-c1

Conversation

@jschmied

@jschmied jschmied commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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 inkling2 kernel already takes hidden, heads, key heads, experts and vocabulary as arguments, and Small's sizes lived only in the contract tests.

Checks on this head

Head aeb9cb06c3, base main 362107c4c9; 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.
  • Small equal to main: all 206 result lines of main's run come back byte-identical; the 152 new lines are all Mini's. The four inkling2 fatbins 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.
  • Not applicable: seeded, resume and concurrency rows, and speed rows. Nothing serves Mini yet (C4); no served path changes.

Receipt

n/a: no served path reaches these shapes until C4.

Proposed CHANGELOG line

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.
@jschmied

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant