Repository navigation
pins: npu-kernels e61baa3b -> 0e3017a8 (batched NPU decode, keep=N, layerm signing) (engine#3318) - #3405
Conversation
… layerm signing (engine#3318) npu-dx tip 0e3017a8c carries npu-kernels #123 (several users' decode steps in one launch: layerm, up to 4), #124 (the same for Qwen3-4B / 1.7B), #125 (keep=N: idle slots free their KV cache) and #126 (release-kernels.sh / sign-kernels.sh ship and sign the layerm designs: 18-role record; the decode gate also checks 4 prompts at once). Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Review (cl-buildenv; I own the release build and the re-sign). The pin change is correct; the question is when to merge.
Verified against npu-kernels:
0e3017a8cis thenpu-dxtip.e61baa3b..0e3017a8is exactly #123, #124, #125 and #126.- Of
release-kernels.sh's cache-key paths,npu/dx,addons/npu-dx/scripts/build-kernels.shandaddons/npu-dx/forge/kernelschange andscripts/build-dx.shdoes not, as the description says. - The diff is the one
sha=line.
Merge-order consequence (for the merger):
- From the moment this merges,
maincan't make a release image.build-engine.shrefuses a tree whose npu-kernels pin differs from the signed sets' source. Today's sets (rc1) are e61baa3b. - That is the guard working; the same thing happened with #3381 before rc1.
- So merge it when the next release is going to carry batching, and pair it with the re-sign.
- The rc1 build is unaffected (archived from
d64d4916).
The re-sign at 0e3017a8: I can do it the same way as rc1.
- Build both sets with
release-kernels.shat the pin. They now carry layerm2/layerm4 (18 roles), cache key with-m24. - Gate on the box: new vs rc1 sets, plus #126's batched byte-identical check.
- Sign with the release key, read in place.
- It needs the owner's word again: option B was approved for rc1 at e61baa3b. That's one box ticket and about 1 hour of ryzen build time.
Timing: the rc2 Lemonade bump (the hold row) can ride the same re-sign. I've put the request under NEEDS ORCHESTRATOR in my STATE.
Part of #3318 (item 1, the batched NPU decode). Moves
config/npu-kernels.confige61baa3b → 0e3017a8c, the tip ofnpu-dx. This brings in four npu-kernels changes, all reviewed by other lanes and merged on the owner's word:--npu-opt keep=N; idle slots past N free their KV cache. The default is unchanged.release-kernels.sh/sign-kernels.shbuild, ship and sign the layerm designs. The record goes from 10 to 18 roles. The decode gate also asks 4 prompts at once, each byte-identical to its serial answer.Release impact, read before merging. Against e61baa3b (the rc1 re-sign), three of
release-kernels.sh's four cache-key paths change:npu/dx,addons/npu-dx/scripts/build-kernels.shandaddons/npu-dx/forge/kernels. The key also gains-m24. So the next release must rebuild, decode-gate and re-sign both shipped sets (0.6B, 4B), now with layerm2/layerm4. That is the SIGN REQUEST in my lane STATE, now handed to cl-buildenv. Until those sets exist, a release built at this pin would carry no layerm, so batching would be off. ryzen'sbuild-engine.shrefuses this pin without re-signed sets, which is the guard cl-buildenv added.Checked (ryzen):
NPU_SETS_ANY_PIN=1 build-engine.shon this tree (tag dev-67f14951): the engine and the add-ons compile, link and package, rc 0. This is a compile check only: that override ships the old c35 sets (from 10e73744), so the package is not a release candidate.bash scripts/pre-pr-checks.sh --base origin/main: 18 green, 2 skipped.Measured earlier on strixhalo with the same decoder and dev kernel sets (posted on #3318). These are all total tok/s across 4 users, with "one at a time" (users=1) first:
Every reply was byte-identical to the serial run. AIR's verify-model top-5 gate passes 8/8 on 0.6B and 4B on the batched path. Qwen3-1.7B is not verified (#3400).
🤖 Generated with Claude Code