Repository navigation
fix(devkit bench): "smallest first" orders by footprint, not download size - #1144
Merged
Merged
Conversation
… size When shared engine code changes, the pull request bench samples each engine's smallest model, smallest first, within PR_CAP. It ordered by the catalog's download size. The dflash drafts list only their own 270 MB but run in nemotron3.5-bolt:e4b's 8.7 GB, so they ranked smallest. On #1131 (npu_utils.hpp, every family) they took two of the four places, ahead of qwen3.5:0.8b and gemma3:1b. size_of() now takes the footprint (GB, every NPU catalog entry has one) and falls back to the download size. With #1131's inputs the bench picks inkling-2:mini, qwen3:0.6b, qwen3.5:0.8b and lfm2.5-it:1.2b. 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. |
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.
Why
When a PR changes shared engine code, every engine family is touched. The dev-kit bench then samples one model per engine, smallest first, within
PR_CAP(4). "Smallest" was the catalog's downloadsize. The two dflash drafts list only their own files, 270 MB, but they run innemotron3.5-bolt:e4b's package, footprint 8.7 GB. So they ranked as the smallest models of all.On #1131, which changed
FLM_DLL/include/npu_utils/npu_utils.hppand so touched every family, the bench ran:inkling-2:mini,nemotron3.5-bolt-dflash-flash:e4b,nemotron3.5-bolt-dflash:e4b,qwen3:0.6bTwo of the four places went to 8.7 GB models that the change did not specifically touch, ahead of
qwen3.5:0.8bandgemma3:1b.size(was the order)footprintWhat
select_models.size_of()now uses thefootprint(GB, the memory the model runs in) and falls back to the downloadsizewhen there is none. Every NPU catalog entry has a footprint; only oga-hipep entries lack one, and those are never benched. The same order is used for the nightly rotation and the full refresh, which are smallest first too.With #1131's inputs, the bench now picks
inkling-2:mini,qwen3:0.6b,qwen3.5:0.8bandlfm2.5-it:1.2b.Testing
test_smallest_is_by_footprint.test_real_maps_loadnow also checks that every-family sampling on the real catalog picks nothing over 2 GB.check_internal_refs.changes.pyclassifies this as bench CI only, so Build and Test runs no NPU job for it.🤖 Generated with Claude Code