Skip to content

fix(devkit bench): "smallest first" orders by footprint, not download size - #1144

Merged
zaneni6 merged 1 commit into
mainfrom
fix/bench-order-by-footprint
Nov 25, 2026
Merged

zaneni6 merged 1 commit into
mainfrom
fix/bench-order-by-footprint

Conversation

@zaneni6

@zaneni6 zaneni6 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

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 download size. The two dflash drafts list only their own files, 270 MB, but they run in nemotron3.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.hpp and so touched every family, the bench ran:

inkling-2:mini, nemotron3.5-bolt-dflash-flash:e4b, nemotron3.5-bolt-dflash:e4b, qwen3:0.6b

Two of the four places went to 8.7 GB models that the change did not specifically touch, ahead of qwen3.5:0.8b and gemma3:1b.

Model size (was the order) footprint
nemotron3.5-bolt-dflash-flash:e4b 270 MB 8.7 GB
nemotron3.5-bolt-dflash:e4b 270 MB 8.7 GB
qwen3:0.6b 600 MB 0.65 GB
qwen3.5:0.8b 800 MB 0.72 GB

What

select_models.size_of() now uses the footprint (GB, the memory the model runs in) and falls back to the download size when 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.8b and lfm2.5-it:1.2b.

Testing

  • New test_smallest_is_by_footprint. test_real_maps_load now also checks that every-family sampling on the real catalog picks nothing over 2 GB.
  • The CI unit suite passes (534 tests), and so does check_internal_refs.
  • changes.py classifies this as bench CI only, so Build and Test runs no NPU job for it.

🤖 Generated with Claude Code

… 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>
@github-actions

Copy link
Copy Markdown
Security scan found no critical or high findings on lines changed by this pull request

View 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.

@zaneni6
zaneni6 merged commit 1407a1e into main Nov 25, 2026
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant