Repository navigation
release: the catalogue offers only the NPU models whose kernel set ships - #3300
Conversation
PR Reviewer Guide 🔍(Review updated until commit a4ffbf2)Here are some key observations to aid the review process:
✅ Resolved findingstools/npu_catalogue_filter.py:41-43Incorrect handling of manifest files The |
…ips (engine#3287)
The Lemonade fork's catalogue lists four onebit NPU models; v2026.47 shipped kernel sets for two. Choosing
Qwen3-1.7B-NPU-1bit in the Lemonade page ended in a 500 that blamed the NPU array ('another client may still be
releasing the array, or the driver needs a reload') rather than the missing set.
tools/npu_catalogue_filter.py, run by weekly.sh where the payload is assembled, keeps an onebit NPU entry only
when config/npu-catalogue-sets.json maps it to a set (by geometry) that is in 1bit/npu/kernels with a manifest;
an unmapped NPU entry, or one mapped to null (a route this payload does not ship), is dropped and printed. HRX and
non-onebit entries are untouched. On the c35 payload: 0.6B and 4B kept, 1.7B (no 2048x6144x16x8 set) and
Qwen3.6-35B-A3B (private add-on route) dropped, 23 HRX entries unchanged. Self-test registered with ctest.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
5c1e6dc to
a4ffbf2
Compare
|
Persistent review updated to latest commit a4ffbf2 |
…e now check what ships (engine#3287) (#3338) Found by the v2026.48 cut: package_checks failed the v2026.48 engine tarball and the board-tested c35 payload with the same 22 FAIL lines, so neither could be packaged without waiving the check. - NPU set count: demanded "the 0.6B, 1.7B and 4B sets", stale since 1.7B stopped shipping (#3300's catalogue filter decides what is offered). Now: at least one signed set, and every set is a geometry config/npu-catalogue-sets.json names. - Host-ELF row: rejected the signed-manifest sets' AIE kernels at <set>/<id>/layer1.elf, which the allowlist above admits by design (#3278). Those are skipped when the set carries its manifest; an AIE ELF anywhere else still fails. - Private names in the packed 1bit: matched as substrings, so one private basename matched inside a longer PUBLIC path ending with it, in a message the engine prints. Now whole names (grep -w); real private names still match (13 hits in an unstripped build binary, 0 in the stripped package). Measured: the v2026.48 engine tarball now passes all 13 rows (rc 0). tests/weekly_package_checks_test.sh: 7 rows on miniature tarballs with invented names, 7/7 with this change and 6 FAIL against main's weekly.sh; in the CI image as a non-root user 7/7. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Part of #3287 ("Qwen3-1.7B on the NPU … did not ship").
Problem. The Lemonade fork's catalogue lists four onebit NPU models; v2026.47 ships kernel sets for two. Choosing
Qwen3-1.7B-NPU-1bitin the Lemonade page loaded nothing and returned a 500 that blamed the hardware:Change.
config/npu-catalogue-sets.json: catalogue entry → the kernel set it needs (sets are named by geometry, hidden×ffn×heads×kv_heads);null= a route this payload does not ship.tools/npu_catalogue_filter.py: keeps an onebit NPU entry only if its set is in1bit/npu/kernelswith a manifest; drops unmapped NPU entries too (a row nobody mapped is a row nobody proved); HRX and non-onebit entries untouched; prints each drop; rewrites only when something was dropped.--self-test(11 cases) registered with ctest.scripts/weekly.sh: runs it where the payload is assembled, before the modes fold and the tar.Measured on the c35 payload:
23 HRX entries unchanged;
tools/copyright.py --checkclean.catalogue-manifest.pyreads the filtered file, so the release check'smodelsrow follows automatically.🤖 Generated with Claude Code