Skip to content

Inkling 2 Mini runs on Net's RTX Spark laptop - #154

Closed
plotarmordev wants to merge 24 commits into
feat/188-inkling-2-mini-runs-whole-on-our-spark-gfrom
feat/243-inkling-2-mini-runs-on-net-s-rtx-spark-l
Closed

plotarmordev wants to merge 24 commits into
feat/188-inkling-2-mini-runs-whole-on-our-spark-gfrom
feat/243-inkling-2-mini-runs-on-net-s-rtx-spark-l

Conversation

@plotarmordev

Copy link
Copy Markdown
Owner

What this changes

I bring Inkling 2 Mini to native Windows ARM64 on the RTX Spark N1X laptop, with a repeatable seven-step CUDA build, exactness checks, planted control and 1/4-stream serving receipt. I also make CUDA image caching stable across warm builds and include the Windows build fixes needed on this host.

  • Issue: Local card 243; no upstream issue number.
  • Stacked on: Inkling 2 Mini runs whole on my Spark, groundwork for RTX Spark #152 (feat/188-inkling-2-mini-runs-whole-on-our-spark-g) at 1a191977f4f1e3e2c4bfb20155784b929eec5c38. My own changes are 9207fc27f through ed0a7028e, followed by merge commit dc7fb7cad2a7151cf2ec695870c25a03c3af3024 bringing the parent up to date. That merge preserves this card's changelog.d/ entry and Windows-run code; the parent updated its GB10 recipe receipt.
  • atc overlap --json: incomplete (otherPullRequestsLimit, pullFilesUnavailable, timeLimit, workingTreeUnavailable); no conflicts were reported, but overlap coverage is unknown. The card is local, so I did not claim an upstream issue.

Checks on this head

  • Head commit: dc7fb7cad2a7151cf2ec695870c25a03c3af3024.
  • swarm scan . origin/feat/188-inkling-2-mini-runs-whole-on-our-spark-g..HEAD: clean (gitleaks and built-in).
  • zig build test test-golden: failed on this Mac in zig build test child commands (including OCR and DeepSeek fixture tests); I did not identify their failure causes. test-golden completed 324/337 equal with 13 known differences and 0 unexpected differences. libtfgrammar.dylib is absent; the run warned that structured output and required tool calls need it.
  • python3 tools/pr_check.py --base origin/feat/188-inkling-2-mini-runs-whole-on-our-spark-g: lean 760 on the parent and 763 on this head, 3 new multi-line-comment findings in zig/build/cuda_fatbin.zig and zig/build/muse.zig; it also flags the touched zig/tests/cuda/contract_tests.zig as over 600 lines. Those findings remain for review; I did not rewrite the accepted change in this ship step.
  • zig fmt --check build.zig zig: failed in 8 files inherited from the parent, none changed by this card. git diff --check: passed. python3 tools/scratch_check.py: passed.
  • CI: not yet classified on this new head.
  • Not run here: CUDA N1X device checks (this host is a Mac); the complete seven-step N1X receipt below was recorded at 2c9228a8 before the parent merge.

Receipt

  • Main against branch: This is a host bring-up on the parent's Inkling 2 Mini CUDA engine, not an isolated kernel speed optimization. The parent documents the GB10 comparison and checks; my laptop result is below, without claiming a same-machine main/branch speed comparison.
  • Boxes it reaches: Windows ARM64 CUDA build, sm_121 kernel image caching, model correctness and served 1/4-stream inference.
  • New switch? None. The recipe's -Step selects bounded tasks, not an inference-mode setting.
  • Environment: N1X sm_121, 48 SMs, Windows ARM64, CUDA 13.5 V13.5.37, MSVC ARM64 14.44.35207, Zig 0.17.0, driver 621.01, WDDM CUDA pool 51,816 MiB; Inkling 2 Mini checkpoint revision ed40e7da62, 8,192-token context, greedy 256-token replies. The laptop receipt used clean tree 2c9228a8; the merged PR head has not been rerun on that device.
  • Paths and platforms: N1X seven-step run passed before the merge; GB10 checks and numbers belong to the parent; macOS host build/test was attempted on the merged head, with failures above. Other CUDA SMs, Metal, HIP and XPU were not run on this head.
  • Exactness: kernel-contract "inkling2 loop" 5/5 gates 1–4 pass, both controls red, 0 limit problems; inkling2-serving passed native vs host tokens, fresh/resumed equality, shared two-lane rounds and admission of a third; inkling2-mini-ref matched the float64 reference for 32/32 greedy tokens (smallest margin 0.110). The planted reference control differed on 6/32 tokens and exited nonzero as required.
  • Decode: one stream 32.3 tok/s, four streams 115.8 total (3.59x), zero failures; first token 0.099 s at one stream and 0.087–0.356 s at four. The WDDM pool peaked at 23,324 MiB, server working set at 3,973 MiB. Those are one capped run, not a same-host before/after benchmark.
  • Prompt speed before and after: n/a; the 1/4-stream run did not collect a cold long-prompt comparison.
  • Licence of new weights or drafter: n/a; no new weights or drafter were added.
Kernel contract
  • I changed glm_index_rope.cuh for MSVC compilation and corrected the MLP128 contract's sm_120-only label; no new kernel was added.
  • N1X kernel-contract "inkling2 loop": 5/5 gates 1–4 pass, 2/2 planted controls red, 0 limits problems.
  • Other CUDA SMs and Metal/HIP/XPU were not rerun for this card.

Checklist

  • The title and description match the merged head, receipt, and stack.
  • The planted control fails as planted; the seven N1X steps passed on the recorded clean tree.
  • Lean and source-length findings need review; see checks above.
  • CI and Mac host-test failures need classification on this head.
  • No new weights, drafter, or precision reduction; the CUDA and float64 reference tokens agreed in the N1X receipt.

…e short steps (build, 188 checks, 1/4-stream serving)
…ch, as run 4's install native ran past 9 min twice
…wn step and logs zig's output, as run 5's runner stopped twice silently
…le-on-our-spark-g' into feat/243-inkling-2-mini-runs-on-net-s-rtx-spark-l

# Conflicts:
#	docs/recipes/inkling-2-mini-cuda/README.md
#	docs/recipes/inkling-2-mini-cuda/run-script.sh
…ds, and drop run-script's redundant background planted run, per review
…nce again: after it, job top-3546b0a66f9b ran out of its 600 s in the 4-stream bench
@plotarmordev
plotarmordev deleted the branch feat/188-inkling-2-mini-runs-whole-on-our-spark-g November 24, 2026 20:52
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