Skip to content

loom: Inkling-2-Mini gets its DSpark drafter back (re-card of r8; 66.6 vs 41.0 tok/s) - #3497

Merged
bong-water-water-bong merged 1 commit into
mainfrom
lead/inkling-r8-route
Nov 24, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
lead/inkling-r8-route

Conversation

@bong-water-water-bong

@bong-water-water-bong bong-water-water-bong commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

What

The Inkling-2-Mini route moves from the r9700 card (no speculative decoding) to our own re-card of loom-fun's r8, which binds the model's own DSpark drafter:

shipped card (r9700 6213fd3c) this PR (re-card afcb64b0, DSpark d3)
decode, 26-token prompt 41.0 tok/s 66.6 tok/s
prefill, 15,616 tokens 1,044 tok/s 2,121 tok/s
accuracy gated (comment 7110281863) row pending — blocks merge

Same box, same session, hrx-loom 0.3.0, greedy, each card on its own preset (the lead's A/B, 2026-11-24). Prefill drafts on neither card, so the r9700 card's ~2x prefill gap is a second, card-side issue, not this PR's.

Why not just point at the stock r8 card

1bit-loom-cards links a card's weights by the lock's file name at the cache's refs/main snapshot (the lock's revision is overridden). The stock r8 lock names Inkling-2-Mini-UD-Q4_K_XL.gguf, and unsloth's head now holds the mainline bytes under that name, so the #3394 size guard refuses it. Our re-card names files that exist at head with the right bytes:

  • 1bit-MONSTER/Inkling-2-Mini-loom @ afcb64b0 — Apache-2.0, based on loom-fun r8 4e018e88 (Geramy Loveless); PROVENANCE.json lists every change (48 loop-control tensors renamed, 12 per-block blk.N.loop_msg_query tensors substituted; weights byte-identical).
  • Binds dspark-Inkling-2-Mini-Q8_0_Old.gguf (2ec78510, 402 MB) at draft_depth 3.
  • Reads unsloth's mainline root GGUF e6427665, which the catalogue already pulls: no 17.6 GB re-download for rc1 machines.

Files

  • config/loom-routes.json: card name, gate text with the A/B and the pending row; sha/size unchanged.
  • config/loom-cards.json, models/pins.json: card entry -> 1bit-MONSTER/Inkling-2-Mini-loom @ afcb64b0, mainline checkpoint, Apache-2.0; the drafter is pinned so the catalogue pulls it.
  • os/v3/puppy/loom-cards.pin: re-card's 17 files replace the r9700 card's 79.
  • tools/loom_cards.py: card.repo may be a loom-fun card or our re-card of one; --build needs that listing too.
  • Licence records (LICENSE + NOTICE of the re-card, SOURCE, LICENSES.md, NOTICE), os/mini/release-check.sh card name, docs/loom-route.md.

Blocking

  • Accuracy gate row on this re-card (17x23, needle, logprob agreement vs the CPU arbiter) must be posted on engine#3158 before merge. The upstream r8 row is comment 7106859133; cl-loomfun owns the ticket.
  • lemonade catalogue row needs checkpoints: {main, draft} with the _Old drafter in the next cut.

Verification

tools/loom_cards.py --check 0 errors, --self-test 21/21; tests/loom_payload_test.sh ok; sh -n os/mini/release-check.sh; tools/copyright.py --check; scripts/pre-pr-checks.sh 17 green / 3 skipped. Weight linking reproduced locally with the shipped 1bit-loom-cards against a simulated cache (links resolve to the Old_Support / _Old names at head; sizes 17,629,760,736 and 402,278,560).

@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) November 24, 2026 15:35
@bong-water-water-bong
bong-water-water-bong marked this pull request as draft November 24, 2026 15:35
auto-merge was automatically disabled November 24, 2026 15:35

Pull request was converted to draft

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Draft again: the repoint cannot work as a config-only change, and this is why.

os/v3/puppy/embed/usr/local/bin/1bit-loom-cards links each card's parameter/ file to the HF cache by the lock's file NAME at the cache's refs/main snapshot:

rev  = read(hub/models--<lock repo>/refs/main)         # the repo head, not the lock's revision
target = hub/models--<repo>/snapshots/<rev>/<lock name>

For the r8 card the lock names Inkling-2-Mini-UD-Q4_K_XL.gguf (17,629,759,456 B, e62d463c). Since unsloth's 23 Nov restructure (head 8078d149), that name at head holds the mainline file e6427665 (17,629,760,736 B). So the link resolves to the wrong bytes and the #3394 size guard refuses the card. The lock's revision: ea0c79b2 is overridden by refs/main; Lemonade's catalogue rows carry no revision either (artifact_ref has the field, the repo:variant row grammar never sets it).

That is the actual reason rc1 recut to the r9700 card: its lock names Mainline_Support/Inkling-2-Mini-UD-Q4_K_XL.gguf_file, which exists at head, so the name-based link resolves on a normal head pull.

So there are exactly two ways to ship the drafting card:

  1. Card fork (no engine code): publish 1bit-MONSTER/Inkling-2-Mini-loom = the r8 programs with model.json/model.json.lock re-pointed at unsloth/Inkling-2-Mini-GGUF's Old_Support/Inkling-2-Mini-UD-Q4_K_XL.gguf_file + Old_Support/dspark-Inkling-2-Mini-Q8_0.gguf_file (both exist at head with exactly the right bytes: 17,629,759,456 / e62d463c and 402,278,560 / 2ec78510). Payload carries our fork; catalogue pulls the two Old_Support files. ~20 MB upload, no big mirror, but a card we now own.
  2. Teach 1bit-loom-cards a sha fallback: when the name at head is missing or its size differs from the lock, scan the cache snapshots for the lock's size+sha256 and link that instead (costs one 17.6 GB hash at boot, ~45 s, only on the fallback path). Stock r8 card ships unchanged; catalogue pulls the Old_Support files. Engine code + tests, no new HF repos.

Either way the Lemonade catalogue row has to pull the Old_Support pair (main + draft), which is a lemonade-fork change in the next cut — the current row pulls the root file, which is mainline now.

I am keeping this PR as the config/payload/licence half and will re-point the pins to the Old_Support names + head revision once the path is chosen; the pins at ea0c79b2 in this diff are not servable. Nothing else in the diff changes.

Verification of the blocker: read of the shipped linker script in this tree; payload_test cases "before any pull, parameter/ links point at the lock's snapshot" / "after a pull, they follow the revision refs/main names" are exactly this mechanism. The gate comment engine#3158 7106859133 records the hand-made "Lemonade-style snapshot (refs/main 13bbdd72)" that made the r8 row possible on 23 Nov, before the restructure.

@github-actions

Copy link
Copy Markdown

Preparing review...

… mainline weights unchanged)

The card rc1 ships (loom-fun/unsloth-Inkling-2-Mini-loom-r9700 @ 6213fd3c) has speculative
decoding removed: llm_config.json "draft_kinds": [], info.json "drafting": null in both
variants, PORTING.md "no speculative decoding". It was removed because, when the card was
written, no drafter existed for the mainline file layout; the model has always shipped its own
DSpark block drafter, and loom-fun's r8 card implements it.

Measured by the lead on strixhalo, hrx-loom 0.3.0, one session, same prompts and greedy
settings, both cards served with their presets:

  decode (26-token prompt, 47 tokens out)   66.6 tok/s (DSpark d3)   41.0 tok/s (r9700)
  15,616-token prefill                      2,121 tok/s              1,044 tok/s
  (prefill drafts on neither card, so the r9700 card's second, ~2x prefill gap is separate
  from the drafter and is card-side work, not this PR's.)

The route now points at our own re-card, 1bit-MONSTER/Inkling-2-Mini-loom @ afcb64b0 (Apache-2.0,
based on loom-fun r8 4e018e88, Geramy Loveless; PROVENANCE.json lists every change). It keeps
the r8 programs and binds the model's own drafter (dspark-Inkling-2-Mini-Q8_0_Old.gguf,
2ec78510) at draft_depth 3, with 48 loop-control tensors renamed and the 12 per-block
blk.N.loop_msg_query tensors substituted (byte-identical weights) so it reads unsloth's
MAINLINE root GGUF e6427665, which is what the catalogue already pulls. No 17.6 GB re-download
for rc1 machines; the drafter is 402 MB.

This is also why a config-only switch back to the stock r8 card cannot work: at boot,
1bit-loom-cards links a card's weights by the lock's file NAME at the cache's refs/main
snapshot (the lock's revision is overridden), and unsloth's head now holds the mainline bytes
under that name - the #3394 size guard then refuses the card. Our re-card names files that
exist at head with the right bytes.

What moves:
- config/loom-routes.json: card name -> Inkling-2-Mini-loom, gate text with the measured A/B and
  the pending accuracy row; gguf sha/size unchanged.
- config/loom-cards.json + models/pins.json: the card entry points at 1bit-MONSTER/Inkling-2-Mini-loom
  @ afcb64b0 with the mainline checkpoint, licence apache-2.0; the drafter file
  dspark-Inkling-2-Mini-Q8_0_Old.gguf (2ec78510) is pinned so the catalogue pulls it.
- os/v3/puppy/loom-cards.pin: the payload carries the re-card (17 files, sha256 + size) instead
  of the r9700 card (79 files).
- tools/loom_cards.py: card.repo may be a loom-fun card or our re-card of one (1bit-MONSTER/...);
  --build must be given that listing too.
- Licence records: the re-card ships its Apache-2.0 LICENSE and NOTICE; SOURCE, LICENSES.md and
  NOTICE updated; the r9700 card's MIT file removed with the card.
- os/mini/release-check.sh + docs/loom-route.md: the card name and the route's description.

BLOCKING: the accuracy gate row on this re-card is not posted yet (the r8 upstream row is
engine#3158 comment 7106859133). Keep this draft until it is; merge order is cl-loomfun's gate
row, then this. The lemonade catalogue row also needs the draft file next to the model
(checkpoints main+draft) in the next cut.

Verification: tools/loom_cards.py --check 0 errors and --self-test 21/21; tests/loom_payload_test.sh
ok; sh -n os/mini/release-check.sh; tools/copyright.py --check; scripts/pre-pr-checks.sh 17 green,
3 skipped. The re-card's own weight linking was reproduced locally with the shipped
1bit-loom-cards against a simulated cache (links resolve to the Old/_Old names at head, sizes
17,629,760,736 and 402,278,560), and the r8 upstream card was speed-measured on the box.
@bong-water-water-bong bong-water-water-bong changed the title loom: Inkling-2-Mini returns to the r8 card with its DSpark drafter - the shipped r9700 card has no drafting and measured half the speed loom: Inkling-2-Mini gets its DSpark drafter back (re-card of r8; 66.6 vs 41.0 tok/s) Nov 24, 2026
@bong-water-water-bong
bong-water-water-bong marked this pull request as ready for review November 24, 2026 16:07
@bong-water-water-bong
bong-water-water-bong merged commit e4dcf68 into main Nov 24, 2026
9 of 10 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the lead/inkling-r8-route branch November 24, 2026 16:07
@github-actions

Copy link
Copy Markdown

Preparing review...

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