Repository navigation
ci(devkit): catalog ↔ dev-kit consistency check; compare replaced shipped kernels - #1087
Merged
Merged
Conversation
devkit_check.py checks src/model_list.json, src/xclbins and src/lib/{xrt,hrx}
against kernel_assignment.json and engines.json: every NPU (aie2p) model has
an assignment (or reuses another model's folder through xclbin_folder) and
an engine; every assignment is a catalog model or served_elsewhere; folders
agree; every assigned slot ships and every shipped kernel is assigned; every
prebuilt library is built by an engine or shared dir (Makefile TARGET and
CMakeLists add_library) and each such library ships .so/.dll/.lib for both
runtimes. CATALOG_ALLOW lists the exceptions with reasons; a stale entry is
an error.
engines.json: qwen3_8mtp_npu serves qwen3.8-dflash2:27b, which runs
Qwen3.8-27B-NPU2's kernels through the same engine.
Co-Authored-By: Claude <noreply@anthropic.com>
…kernels changes.py: a new devkit_catalog output, true when src/model_list.json, src/xclbins/, src/lib/ or the dev-kit JSON change (or the files are unknown); devkit-static runs on it as on devkit, and nothing else starts. A replaced src/xclbins/<folder>/<slot>.xclbin selects the xclbin area without the overlay: devkit_xclbin_plan.py (mode changed) builds the artifact kernel_assignment.json puts in that slot for every model using the folder, so devkit_xclbin_compare.py reports it. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…g-assignment error Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Security scan found no critical or high findings on lines changed by this pull requestView the security scan run for complete reports. “New” means the finding is located in a changed file on an added or modified line; it is not a base-versus-head findings delta. |
…sistency # Conflicts: # flm-dev-kit/FLM_DLL/engines.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the dev kit the enforced source of what
flmships. Before this, a new model family added only undersrc/(catalog entry, prebuilt libs, xclbins) passed every check.Catalog rules (in
devkit_check.py, run by devkit-static):aie2p) model insrc/model_list.jsonneeds:kernel_assignment.jsonentry whose folder is its xclbin folder (a model that reuses another model's kernels names that folder inxclbin_folderinstead);engines.jsonengine listing it.served_elsewhere.src/xclbins/, and every shipped.xclbinis assigned.src/lib/{xrt,hrx}is built by anengines.jsondirectory. Library names come from each MakefileTARGET/ CMakeadd_library..so,.dlland.libfor both runtimes.CATALOG_ALLOW), each with a reason. A stale entry is an error.Data fixes:
qwen3.8-dflash2:27bis now listed underqwen3_8mtp_npu, which serves it.Allow-listed:
MiniCPM-OCR-1.0-NPU2/conv.xclbin: no engine loads it (the OCR engine usesconv8.xclbin).libaiebu.aandaiebu_static.lib: the AIE assembler, not engine libraries.Wiring:
devkit-catalogoutput fromchanges.pyselects devkit-static when any of these change:src/model_list.json,src/xclbins/,src/lib/, or the dev-kit JSON files. It starts no builds.Replaced shipped kernels: a PR that only replaces
src/xclbins/<folder>/<slot>.xclbinnow rebuilds the artifact assigned to that slot, and the existing report-only comparison covers it.Docs:
flm-dev-kit/AGENTS.mdnow describes the dev-kit CI jobs (static, engines, xclbins, the overlay tests, the benches) and the catalog rules.Tests: unit tests for each rule (pass and fail), aliases,
served_elsewhere, the allow-list and stale entries, library mapping, the wiring, and the replaced-kernel plan. I also simulated four changes on a throwaway branch:src/model_list.jsoneditedLlama-3.1-8B-NPU2/layer.xclbinreplacedgeneric_decoding_layerrebuild, compared with the shipped fileMerge note: this PR and #1086 both edit the
_docline ofengines.json. Whichever merges second needs a one-line conflict fix.🤖 Generated with Claude Code