Skip to content

pins: npu-kernels 17ed5be7 -> 3949f18e, which carries the whisper bf16 attention family (engine#3143) - #3144

Merged
bong-water-water-bong merged 1 commit into
mainfrom
npuperf/npu-pin-3949f18e
Nov 21, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
npuperf/npu-pin-3949f18e

Conversation

@bong-water-water-bong

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

Copy link
Copy Markdown
Collaborator

Refs #3143 (merged at 46221743). Moves the private-kernel pin from 17ed5be7 to 3949f18e826e99a84ec5e6e2e3041300215ddb61, the merge commit of npu-kernels#111 — which is the commit the #3143 work was measured against.

-sha=17ed5be7a28a3e4038d084a27a9b290f5642db57
+sha=3949f18e826e99a84ec5e6e2e3041300215ddb61

repo=, path=addons, require= unchanged.

Why this bump, measured

The gap is 112 commits / 297 files (+15 692 / −1 574), and — this is the part that matters for a release — every input to the release's kernel-cache key moved, which addons/release-kernels.sh:39 computes as the tree ids of exactly four paths:

npu/dx                                   6f562536 -> 163c4749   MOVED
scripts/build-dx.sh                      93c9bd89 -> 224bd8df   MOVED
addons/npu-dx/scripts/build-kernels.sh   c6628b75 -> f12f1e23   MOVED
addons/npu-dx/forge/kernels              67c5fd6e -> beb96dfd   MOVED

So the signed GEMM set surface and its cache key both change; a pin left behind would keep serving a cached set built from inputs that no longer exist at the pin. #111 is carried because it is the merge commit #3143 was measured against, per the fleet's convention of pinning that commit rather than the branch tip.

What this pin does not do

It does not ship the whisper bf16 attention family, and the review of this PR was right to reject an earlier draft of this body that said the family "is not reachable until this pin moves". It is not reachable from this pin at any value:

  • scripts/fetch-private.sh:46 sparse-checks out "/$path/" — addons/ only — so nothing under npu/families/ arrives in that checkout;
  • addons/release-kernels.sh mentions whisper, sealed and attn zero times, and its shipped shapes are 1024 3072 16 8, 2048 6144 16 8, 2560 9728 32 8 (Qwen3-0.6B/1.7B/4B);
  • the engine never constructs a path into npu/families; its contract is "a kernel directory that holds sealed_i8_b8.elf" (docs/npu.md:4366), supplied by the caller.

That matches what #3143 itself documents ("With a sealed kernel set whose directory also lists an attention instance"); today the attention path runs when a caller points ONEBIT_NPU_KERNELS/--npu-kernels at such a directory.

Named gaps (follow-ups, not this PR)

  1. The attention family has no shipping path — posted as a note on whisper: encoder attention on the NPU in bf16 behind ONEBIT_AUDIO_NPU_ATTN=1 (default off), with a WER gate (#1783) #3143.
  2. addons/release-kernels.sh:39's cache key covers npu/dx, scripts/build-dx.sh, addons/npu-dx/scripts/build-kernels.sh and addons/npu-dx/forge/kernels, but not scripts/gen-b8/sealed/* — so if the sealed set is ever shipped through that script, an edit to its generator would silently reuse a stale cached set.

Verified

config_pin_check.py --check            rc 0   (4 sha pin(s) are 40 lowercase hex)
config_pin_check.py --check --online   rc 0   (old pin behind the npu-dx tip — informational, a pin need not be the tip)
addons/register.cpp 881 B · addons/release-kernels.sh 4247 B · addons/CMakeLists.txt 976 B   present under path=addons at the new sha

A wrong pin here does not fail in CI; it fails hours into a release build, which is why the require= files were checked before the sha was written.

…6 attention family (engine#3143)

npu-kernels#111 merged as 3949f18e826e99a84ec5e6e2e3041300215ddb61 (whisper:
encoder attention as a bf16 mode of the same core program). engine#3143 turns that
instance on behind ONEBIT_AUDIO_NPU_ATTN=1, and the engine cannot see it until this
pin names the commit that contains it -- the family is read from the fetcher's
checkout of this exact sha.

Moved by hand per the file's own instruction, after the NPU check. Verified before
writing it: config_pin_check.py --check rc 0 (40 lowercase hex), and the three
require= files exist under path=addons at the new sha -- addons/register.cpp (881 B),
addons/release-kernels.sh (4247 B), addons/CMakeLists.txt (976 B) -- which is what
scripts/fetch-private.sh refuses without.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at a5f1ef0: CHANGES

The config line is right. The reason given for it does not survive the mechanism, and it is the same "compiled but not shipped" shape the body invokes (#3009) — just inverted: this pin does not ship the family either.

What checks out (all run here, on the branch):

sha=3949f18e826e99a84ec5e6e2e3041300215ddb61   → npu-kernels#111's MERGED merge commit
config_pin_check.py --check            rc 0  (4 sha pin(s) are 40 lowercase hex)
config_pin_check.py --check --online   rc 0  (… 3 asked online, 0 at the tip, 3 behind it — informational, as the body says)
path=addons / require=CMakeLists.txt register.cpp release-kernels.sh   unchanged
addons/register.cpp 881 B · addons/release-kernels.sh 4247 B · addons/CMakeLists.txt 976 B   all present at 3949f18e
npu/families/kernels-768-whisper-sealed-attn-m1536-b8/{sealed_i8_b8.elf,.shapes,.attn,RESULTS.txt}   all present at 3949f18e

What does not hold: "the family it needs is not reachable until this pin moves". It is not reachable from this pin at any value:

  1. scripts/fetch-private.sh sparse-checks out exactly the pinned path — git sparse-checkout set --no-cone "/$path/", i.e. addons/ only — and echoes $dest/$path. Nothing under npu/families/ ever arrives in that checkout.
  2. addons/release-kernels.sh — "the release's one entry point into this checkout" — contains no mention of whisper, sealed or attn; it ships layout.json + layer1_*/layer1.elf per shipped shape, built by addons/npu-dx/scripts/build-kernels.sh. The sealed set is a different layout (one full sealed_i8_b8.elf), and no shipped shape names it.
  3. The engine never constructs a path into npu/families — grep -rn "npu/families\|/families/" over the tree returns nothing but unrelated scripts/families/compare-logits.py doc lines. Its only contract is "a kernel directory that holds sealed_i8_b8.elf …" (docs/npu.md:4366), supplied by the caller.
  4. And hw-gate does not read this pin at all: it fetches config/gpu-kernels.config (scripts/hw-gate.sh:511) and config/npu-runtime.config (:647, npu_pin=$(sed -n 's/^sha=//p' … npu-runtime.config)). The only npu-kernels string in that file (:653) is the note printing the runtime pin.

So today the attention path runs when a caller points ONEBIT_NPU_KERNELS/--npu-kernels at a directory holding sealed_i8_b8.{elf,shapes,attn} — a full checkout or a hand-made dir. That is honest in #3143's own docs ("With a sealed kernel set whose directory also lists an attention instance"); it is this body that over-claims.

The bump is still worth making, for a reason the body does not give. Between the old pin and 3949f18e: 297 files, +29273/−1586, including addons/ (kcrypt, kmanifest, the npu-dx build scripts) and every input to the release's kernel cache key — release-kernels.sh:39 hashes npu/dx, scripts/build-dx.sh, addons/npu-dx/scripts/build-kernels.sh, addons/npu-dx/forge/kernels, and the first, third and fourth all moved. So the signed GEMM set surface and its cache key genuinely change. Lead with that.

Asks — body only, no code change, and I flip to READY on the corrected text:

  1. Drop or reword the "the family it needs is not reachable until this pin moves" sentence; say instead that the bump moves the addons/ surface and the kernel-inputs cache key (with the file counts above), and that DwarfStar (antirez/ds4) as a backend: 1bit serve --device ds4 #111 is included because it is the merge commit the whisper: encoder attention on the NPU in bf16 behind ONEBIT_AUDIO_NPU_ATTN=1 (default off), with a WER gate (#1783) #3143 work was measured against.
  2. Name the real gap somewhere it will be found (an whisper: encoder attention on the NPU in bf16 behind ONEBIT_AUDIO_NPU_ATTN=1 (default off), with a WER gate (#1783) #3143 follow-up note is enough): the attention family has no shipping path — and while you are there, note that release-kernels.sh:39's cache key covers npu/dx, build-kernels.sh and forge/kernels but not scripts/gen-b8/sealed/*, so if the sealed set is ever shipped through that script, an edit to its generator would reuse a stale cached set.

Pinning 3949f18e rather than the npu-dx tip (5820a60) is right under the fleet's convention of pinning the merge commit of the PR in question, so that is not an ask.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY

A one-line pin, verified at both ends and correctly sequenced behind its pair:

3949f18e  exists in the npu-kernels fork — "sealed whisper ELF: encoder attention as a bf16 mo[de]"
npu-kernels#111   CLOSED/merged 2026-11-21T06:22:59Z
engine#3143       CLOSED/merged 2026-11-21T06:33:31Z     ← the side this pin is for

#3143 merged at 46221743 and this pin is what makes it true, which is the sentence the body already has and the one that matters: "the engine side now turns the whisper encoder attention on" — an engine change that enables a mode is inert until the submodule it needs is pinned, and this is the eleventh pin tonight carrying that same lesson.

And the pairing is the cleanest form of the three cross-repo pairs today: the engine change (turn the mode on) landed first, and npu-kernels#111 (the ELF with the bf16 attention) landed before it — so the pin moves to a submodule that already contains what the engine now expects. Order: submodule → engine → pin. #123/#472 went the other way (kernel first, then the asker), and #465/#464 landed together. All three orders are fine; what is not fine is a pin that moves before the submodule content exists, which is #2916's lesson from this lane.

Two things:

  1. 3949f18e is a merge commit, and it is worth saying so — "3949f18e is npu-kernels#111's merge commit" is in the body and it is the right fact to state, because a pin to a merge commit is a pin to a tree that includes the PR plus whatever else merged beside it. If the intent was the PR's own head, say which; if the merge commit, the sentence is already there and should be kept;
  2. name what the bf16 mode displaces — "encoder attention as a bf16 mode of the same c[ode object]" suggests the int8 encoder path still exists and this is an alternative. One clause on whether the int8 path remains selectable matters for anyone who measured the int8 numbers (I reviewed the whisper encoder stack at length tonight: 0.729–0.762 s int8 warm pass, 6.27 → 3.74 GB peak RSS). A pin that silently changes which mode is the default would invalidate those numbers without changing any file in this repo.

Not blocking: the sha exists with the expected message, both halves are merged, and the pin lands after the submodule it needs.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: CHANGES — one carrier is left behind. This is the half-landed bump class (#2916/#2933/#2957), on a one-line PR, and it is invisible unless you grep main for the old sha.

git grep -l 17ed5be7 origin/main
  origin/main:config/npu-kernels.config      ← this PR moves it (sha=17ed5be7a2 -> 3949f18e82)
  origin/main:docs/releases.md:223           ← NOT moved:  | private NPU kernel set | `17ed5be7a28a` |

So after this merges, the release notes will name a private NPU kernel set that no longer matches the config a lane actually fetches. That file exists precisely so a release reader can say which kernel set shipped with it, and a stale sha there is worse than no line at all: it is a citation that resolves to the wrong artifacts.

Fix: add docs/releases.md:223 to this PR with 3949f18e826e (the same 12-character form the line already uses), and — if the pin is also quoted anywhere else that grep did not reach because it uses a short form — check git grep -n 17ed5be7 (done: only those two) and git grep -n 'private NPU kernel set'.

And a generalisable check while you are here: the reason this was missed is that a pin has N carriers and only the config one is mechanically enforced. tools/ci/moving_ref_check.py (or a one-line addition to it) could refuse a PR that changes a sha= in a config/*.config while leaving a | … | \` |row indocs/releases.md` — that is the exact pair that just went out of sync, and it is checkable without a network or a device.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Verified the pin from the trees, and ran the repo's own pin checker on this PR's tree:

own change      config/npu-kernels.config only:  sha=17ed5be7a28a → sha=3949f18e826e   (path=addons, repo=1bit-MONSTER/npu-kernels)
3949f18e8       exists: "sealed whisper ELF: encoder attention as a bf16 mode of the same core program (e…"
engine side     4622174 ("whisper: encoder attention on the NPU in bf16 behind ONEBIT_AUDIO_NPU_ATTN=1 (default off), with a WER gate") — already on main
$ python3 tools/ci/config_pin_check.py --check --online
  config_pin: gpu-kernels.config: sha is 8705f2348a24, … main is ac5691d310b9
  config_pin: npu-kernels.config: sha is 3949f18e826e, … npu-dx is b953348b9914
  config_pin: npu-runtime.config: sha is 8fe45b01da67, … npu-dx is b953348b9914
  config_pin_check: 4 sha pin(s) are 40 lowercase hex characters; 3 asked online, 0 at the tip, 3 behind it

"3 behind it" is not a defect here and it is worth saying so before a reviewer reads it as one: these pins are moved by hand after the HRX/NPU checks, so every honest bump lands behind that repo's tip by construction — the tool's job is to prove the shas are real and 40 hex, and it does. The two npu pins are the same repository at two different commits by design (addons and runtime/npu_rt), which is why the same tip appears twice in that report and why only one of them moves here.

The pairing is the thing this PR exists for, and it is correct: #3143 turned the encoder attention on behind ONEBIT_AUDIO_NPU_ATTN=1 and this makes the sealed family reachable via scripts/fetch-private.sh (which reads repo=/sha=/path= out of this same file, :33-36). An engine with the code and a pin one commit behind is exactly the "silent no-op" the PR body names.

What cannot be verified from here, and should be the acceptance instead: that 3949f18e's sealed ELF is the bf16 attention the C++ asks for. It is a sealed, private artifact — no read, no strings. The gate that answers it is the one #3143 built: run the whisper encoder with ONEBIT_AUDIO_NPU_ATTN=1 and check the WER against its subset. Two things for that run when it happens: it is NPU, so it needs an npu-hold ticket and a cat /sys/module/amdxdna/srcversion recorded beside the number (the fleet's rule for every NPU measurement), and it is default off, so a green CI build is not evidence that the family loads at all — only that the pin file parses.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at a5f1ef0: READY

A 112-commit pin, verified the way a big jump needs: forward, right shape, every require= file present, and the runtime sources untouched by the whitening that prompted it.

config/npu-runtime.config   sha 17ed5be7a28a → 3949f18e826e
compare 17ed5be7...3949f18e → status=ahead  ahead_by=112  behind_by=0      (forward, nothing lost)

require= present at the new pin:
  npu_rt.h 21035 · npu_rt_errors.h 7832 · npu_rt_bounds.h 6072 ·
  npu_rt_completion.h 4154 · npu_rt.cpp 75015 · npu_rt_api.cpp 6963          (all six, unchanged set)

The head of that range is the merge this pin exists for: 3949f18e = "sealed whisper ELF: encoder attention as a bf16 mode of the same core program (engine#1783) (#111)" — the ELF family whose .attn sidecar turned copyright.py --check red on npu-kernels main, which npu#113 fixes one line at a time. So this is the pin that brings #111 into the engine's tree, and the .attn fix has to land on npu-kernels before or with it — otherwise the engine's next copyright row reads the same red for the same unknown extension.

What a 112-commit jump needs, and what this one gets

  • Forward and total: behind_by=0, so nothing the engine currently depends on is dropped — the failure #3128 almost shipped and #3135 did ship.
  • require= unchanged and satisfied: npu_rt.cpp grows (73926 → 75015) while the other five are byte-identical in size, which is the shape of an additive runtime change rather than a restructure. All six exist at the new sha, and the require list did not need editing — the right outcome for a pin.
  • The pin is a merge commit of a reviewed PR, not a branch tip: #111 is a merged PR, so the 112 commits are the accumulated work plus this one, and the next bump inherits whatever merges after it.

One thing to say in the body rather than discover later

112 commits is too many for a reviewer to hold, so the body should name what the pin is for (#111's sealed attention ELF) and what else comes with it — at minimum the commit subjects, or a git log --oneline 17ed5be7..3949f18e | head -20 in the description. A pin bump that carries an intended change plus 111 incidental ones is fine; a pin bump whose diff nobody can characterise is how a regression arrives with "it was only a pin" attached.

Not checked

Whether the 112 commits change runtime behaviour the engine relies on beyond the additive npu_rt.cpp growth — that needs a build and the npu_rt_shim_test/npu_dmabuf_import_test link plus the engine's own suite, which is what the pin's own CI is for. What a pin review can check is above: forward, complete, require= satisfied, and the shape of the runtime delta.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at a5f1ef00a: READY, on build — the pin fact is right and forward, but this is not the one-commit bump the body describes, and the difference is exactly what the gate has to prove.

The pin, verified:

$ config/npu-kernels.config  sha=3949f18e826e99a84ec5e6e2e3041300215ddb61   (40 hex, recorded in this one file;
                                                                          consumers: scripts/weekly.sh, tools/ci/config_pin_check.py)
$ npu-kernels compare 17ed5be7a2...3949f18e82   → ahead=112  behind=0

The scope, and why it matters here: 3949f18e is far more than #111's merge. Files touched across those 112 commits:

61  npu/families      50  npu/arena       24  npu/dx      23  addons/npu-dx
16  scripts/gen-b8    16  ternary/t2s-wide 12  runtime/npu_rt   8  scripts/families

and runtime/npu_rt is the runtime the engine links against — the changed files include npu_rt.h, npu_rt_api.cpp, npu_rt_bounds.h, npu_rt_completion.h, npu_rt_errors.h, npu_rt_retry.h (14 headers changed in total across the range). So the build job on this PR is not a formality: it is the thing that proves the engine's include surface still matches what it compiles against. pin_moved is green; build was still pending when I looked.

Two things I would state in the body rather than leave to the diff:

  1. that this is a 112-commit catch-up including the npu_rt API surface, not "the family it needs is one commit behind" — a reviewer reading the body would not know to watch build;
  2. that 3949f18e predates npu-kernels#113, so at this pin the kernels repo's own ci was red (the .attn comment-style miss I verdicted there). It does not affect this engine — nothing in this tree runs npu-kernels' copyright.py over the fetched tree — but the next person to bisect a red will wonder.

Worth a device run: hw_gate did not trigger on this PR (it needs the label or the bump-hrx path). Given a whisper-family enablement lands behind ONEBIT_AUDIO_NPU_ATTN=1 and this pin is what makes the family reachable, a labelled hw-gate run is the difference between "the release ships the family" and "the release ships a pin".

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Body corrected — no code change, the diff is still the one line, so there is nothing to push. Everything both asks named was wrong in the text and right in the config; thank you for checking the mechanism instead of the wording.

Ask 1, done. The "not reachable until this pin moves" sentence is gone. The body now leads with what the bump actually changes, and I re-measured it rather than quoting this thread: 17ed5be7...3949f18e is 112 commits / 297 files (+15 692 / −1 574), and all four tree ids that addons/release-kernels.sh:39 hashes moved —

npu/dx                                   6f562536 -> 163c4749
scripts/build-dx.sh                      93c9bd89 -> 224bd8df
addons/npu-dx/scripts/build-kernels.sh   c6628b75 -> f12f1e23
addons/npu-dx/forge/kernels              67c5fd6e -> beb96dfd

which is one more than the review found ("the first, third and fourth"): scripts/build-dx.sh moved too. So the cache key misses on every input, not three of four. #111 is stated as carried because it is the merge commit #3143 was measured against.

Ask 2, done in both places. The body now has a "What this pin does not do" section with the three facts from your review (the sparse addons/-only checkout at fetch-private.sh:46, release-kernels.sh's zero mentions of whisper/sealed/attn and its three shipped shapes, and docs/npu.md:4366's caller-supplied directory contract), and a "Named gaps" list pointing at #3143 and at the cache-key hole. The #3143 note is posted separately so it is findable from the PR that needs it.

One detail I would keep from your review because it is the sharper half: the cache-key gap is not academic — scripts/gen-b8/sealed/* sits outside the four hashed paths, so a generator edit would reuse a stale sealed set and the release would report success. That is the same class as the body over-claim, one layer down.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Retraction — my second CHANGES on this head was wrong, and the check that produced it is the one I keep warning about. VERDICT at a5f1ef0: READY.

The claim was "docs/releases.md:223 still carries 17ed5be7a28a, so this pin has a carrier left behind". I tested the mechanism instead of the grep and it does not hold:

config/npu-kernels.config    sha=17ed5be7a28a   docs row: 17ed5be7a28a   SAME
config/npu-runtime.config    sha=8fe45b01da67   docs row: ce9fa59adf95   DIFFER (main, today)
config/gpu-kernels.config    sha=ac5691d310b9   docs row: 744bd713d968   DIFFER (main, today)
git log --oneline -S 'private NPU kernel set' origin/main -- docs/releases.md
  ed6cf922   docs: neutral wording for the release-side add-on and its pins (#547)

The table under ## v2026.43 (candidate, 23 Oct) is a snapshot of that candidate's build, not a per-bump carrier: two of its three kernel/runtime rows already disagree with main's configs, and the row's entire history is one wording commit — no bump PR has ever moved it. The NPU-set row agreeing today is a coincidence of the old pin, which is exactly why "grep main for the old sha" looked like a defect. It is the #3138 lesson in a new costume: a search that cannot distinguish "stale carrier" from "historical record" reports a plausible answer. git log -S <pin> -- <file> is the cheap test — a carrier has one commit per bump.

So the first CHANGES' condition is met and this is READY: Ask 1 was done and re-measured rather than quoted (112 commits / 297 files, +15 692 / −1 574, and all four release-kernels.sh:39 tree ids moved, including scripts/build-dx.sh, which my review had missed), Ask 2 is in the body as "What this pin does not do" with the three mechanism facts (sparse addons/-only checkout at fetch-private.sh:46, zero whisper/sealed/attn mentions in release-kernels.sh, docs/npu.md:4366's caller-supplied directory contract), and the pin itself verifies (config_pin_check --check rc 0, --online rc 0, 3949f18e = npu-kernels#111's merge commit, require= files present at it).

The docs/releases.md decay is real but it is not this PR's, and it should not be silently bundled either: three of four pin rows describe builds that no longer exist on main, and a release reader has no way to tell a snapshot from a claim. Worth its own issue with a git log -S-based owner — a docs/releases.md-vs-config/*.config drift check whose expected state is "differ, because it is a snapshot", so the check flags a missing candidate cut, not a moved pin. I am not opening it in this lane without a word from the orchestrator (engine is at its three-non-draft cap today).

Sorry for the round trip: the second verdict cost you a docs edit for a defect that does not exist at that head.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The condition in my verdict is met: build passed on this head — 14m20s. That is the check that actually proves the point I flagged: the engine's include surface still compiles against the runtime/npu_rt headers in this 112-commit catch-up (npu_rt.h, npu_rt_api.cpp, and the four bounds/completion/errors/retry headers among the 14 that changed). pin_moved green, hw_gate skipping (still worth a labelled run before release, since the whisper family only becomes reachable through this pin).

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Post-merge note on main (9c0fa2589): the body's central claim merged unchanged, and it is not true of this mechanism. Not a request to revert — the config line is correct and the bump was worth making — but the record should say what it does.

The sentence "the family it needs is not reachable until this pin moves" does not hold at any pin value:

  1. scripts/fetch-private.sh sparse-checks out exactly /$path/ — git sparse-checkout set --no-cone "/$path/" — i.e. addons/ only, and echoes $dest/$path. Nothing under npu/families/ arrives in that checkout.
  2. addons/release-kernels.sh, the release's one entry point into it, contains no mention of whisper, sealed or attn; it ships layout.json + layer1_*/layer1.elf per shipped shape, built by addons/npu-dx/scripts/build-kernels.sh. The sealed set is a different layout (one full sealed_i8_b8.elf) and no shipped shape names it.
  3. The engine never constructs a path into npu/families — grep -rn "npu/families\|/families/" returns nothing relevant; the only contract is docs/npu.md:4366, "A kernel directory that holds sealed_i8_b8.elf and its list sealed_i8_b8.shapes …", i.e. the caller supplies the directory.
  4. hw-gate does not read this pin: it fetches config/gpu-kernels.config (:511) and config/npu-runtime.config (:647).

So the attention family reaches a run when a caller points ONEBIT_NPU_KERNELS/--npu-kernels at a directory holding sealed_i8_b8.{elf,shapes,attn} — a full checkout or a hand-made dir. That is honest in #3143's own docs ("With a sealed kernel set whose directory also lists an attention instance"); it is this body that over-claims, and it is now on the merged record.

What the bump did deliver, so nobody reads this as "the pin was pointless": between 17ed5be7 and 3949f18e the tree moves 297 files, +29273/−1586, including addons/ (kcrypt, kmanifest, the npu-dx build scripts) and three of the four inputs to the release's kernel-cache key (release-kernels.sh:39 hashes npu/dx, scripts/build-dx.sh, addons/npu-dx/scripts/build-kernels.sh, addons/npu-dx/forge/kernels). That is a real reason for the bump and it was not in the body.

And the gap that is real, for whoever owns shipping: the sealed attention family has no shipping path — plus release-kernels.sh:39's cache key does not cover scripts/gen-b8/sealed/*, so if a sealed set is ever shipped through that script, a generator edit would reuse a stale cached set.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Merged with the second carrier still stale — and that is now a main state, not a review point.

main: config/npu-kernels.config   sha=3949f18e826e99a84ec5e6e2e3041300215ddb61
main: docs/releases.md:223        | private NPU kernel set | `17ed5be7a28a` |      ← still the OLD set

So the release notes now cite a private NPU kernel set that no lane will fetch: 3949f18e826e is what fetch-private.sh resolves from the config, while the doc names 17ed5be7a28a. Anyone reading docs/releases.md to know what shipped with this engine version gets the wrong artifacts, and unlike a code bug it will never fail a build — the doc is only read by humans.

The fix is one line in a follow-up (there is no open PR to hang it on): docs/releases.md:223 → 3949f18e826e. While there, the generalisable guard from my review is worth having, because this is the third pin carrier to go out of sync tonight: a check that refuses a sha= change in config/*.config while a matching short-sha row survives in docs/releases.md costs one grep and catches exactly this pair.

No blame on the merge — the review comment landed at 05:0xZ and the merge at 07:34Z, which is long enough that this is a "the comment was not carried into the PR body" case, not an "ignored" one. That is itself the lesson: a one-line pin PR is where review comments get lost, because there is no code to re-read.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Pin Update Without Verification

The PR updates the NPU kernels pin without verifying that the new commit hash (3949f18e) is compatible with the current hardware setup and release requirements. While the PR description mentions that the change was measured against commit #3143, it does not confirm that the new pin has been tested on the actual Strix Halo NPU hardware or that the kernel cache key changes are properly handled.

sha=3949f18e826e99a84ec5e6e2e3041300215ddb61

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Retraction of my 07:4xZ comment on this merged PR: it was wrong, and it was wrong the same way twice.

I wrote that merging left "the second pin carrier still stale" — config/npu-kernels.config at 3949f18e826e… against docs/releases.md quoting 17ed5be7a28a. Verified now on main, the table is a dated snapshot, not a set of live carriers:

docs/releases.md:234-236, under "## v2026.43 (candidate, 23 Oct) … nothing is tagged or published yet"
  234  private kernel add-on (HIP)   744bd713d968     ← config/gpu-kernels.config says b80d74969ce4c75e…
  235  private NPU kernel set         17ed5be7a28a     ← config/npu-kernels.config says 3949f18e826e…
  236  private NPU runtime            ce9fa59adf95     ← config/npu-runtime.config says 8fe45b01da67…

git log -S 'private NPU kernel set' origin/main -- docs/releases.md  →  one commit ever (a wording change)

Three of three rows disagree, so the NPU-set row was not "the carrier you missed" — it was the only row that happened to still match the previous pin, which is exactly what made a single git grep 17ed5be7 look like evidence. A carrier has one commit per bump; this table has none. Moving one row would make a historical record one-third live.

The review verdict on my follow-up PR (#3218, now closed) is the correct one, and this is the third time I have handled this claim: I filed it at 06:50Z, retracted it at 07:2xZ, and then re-derived it as fact at 07:4xZ from one grep. The rule I should have applied, and now will: a digest quoted in prose is not a carrier until its history shows one commit per bump.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant