Skip to content

Inkling 2 Mini on Mac: all streams' DSpark drafts share each weight read (step-major holds) - #151

Merged
plotarmordev merged 17 commits into
feat/210-inkling-2-mini-on-mac-fastest-anywhere-ofrom
feat/235-inkling-2-mini-on-mac-all-streams-dspark
Nov 24, 2026
Merged

plotarmordev merged 17 commits into
feat/210-inkling-2-mini-on-mac-fastest-anywhere-ofrom
feat/235-inkling-2-mini-on-mac-all-streams-dspark

Conversation

@plotarmordev

Copy link
Copy Markdown
Owner

Card 235. My change: greedy DSpark holds on Inkling 2 Mini (Metal) now run step-major across streams. Each cohort gets one block/unembed launch set, then one launch set per recurrent depth, so all streams' drafts share each weight read. A lone stream keeps its solo chain.

What changed

  • zig/src/families/inkling2/metal/dspark.zig, dspark_kernels.zig, zig/kernels/metal/inkling2: cohort scheduling by block and recurrent step, unembed reduced to active rows only.
  • The five cohort kernels are registered in the Metal contract runner, with device probes and planted controls (zig/tests/contract/metal_inkling2_dspark_cohort.zig). Result: 5 pass, 5 controls red as planted.
  • Lanes/server report the head chain's drafted and kept rows per depth, only when a head chain drafted, so golden replies keep their shape.
  • tools/bench_concurrent.py / tools/bench_auth.py: per-depth tallies accept only nonnegative integers, and redaction now goes through tuples (regression test added).

Exactness (on the device, checkpoint loaded): four greedy replies equal four solo replies token for token through a stream leaving and another joining; 16-stream chains at unequal depths 1-7 equal their solo holds.

Speed: M5 Ultra, control/candidate/control medians of 3, docs/receipts/inkling-2-mini-metal-235. Code / chat tok/s against the better control:

  • 2 streams: +7.0% / +8.5%
  • 4 streams: 317.2 / 259.5, +14.0% / +13.7%
  • 16 streams: 372.2 / 348.9, +31.0% / +30.8%
  • 1 stream keeps the solo chain: 121.9 / 93.4 against controls 119.7–125.7 / 93.9–94.0. Chat sits 0.5 tok/s below both controls.

From two streams on, acceptance per depth matches the controls row for row. At one stream the per-depth split moves with each round's timing in both arms. Total kept rows are 535 / 539 / 538 for code and 441 / 440 / 457 for chat (control / candidate / control).

My only comparison here is with ashhart#4618's published figures (123.4 / 91.5 at one stream, 281.1 / 223.0 at four), which I did not measure here. The receipt against other engines at 1, 4 and 64 streams moved to card "ink mac engines".

zig build test test-golden passes after merging the latest base.

…astest-anywhere-o' into feat/235-inkling-2-mini-on-mac-all-streams-dspark
…astest-anywhere-o' into feat/235-inkling-2-mini-on-mac-all-streams-dspark
…pt compares one stream's acceptance by its total, names llama.cpp's Inkling release
…ed figures; the engine receipt moves to ink mac engines
…astest-anywhere-o' into feat/235-inkling-2-mini-on-mac-all-streams-dspark
@plotarmordev
plotarmordev merged commit 36c2d79 into feat/210-inkling-2-mini-on-mac-fastest-anywhere-o Nov 24, 2026
@plotarmordev
plotarmordev deleted the feat/235-inkling-2-mini-on-mac-all-streams-dspark branch November 24, 2026 06:34
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