Skip to content

perf(assets): reuse source snapshot digests during lock verification - #189

Open
Afloat16 wants to merge 1 commit into
Edge0-AI:mainfrom
Afloat16:afloat/20261111-next-reuse-source-digests
Open

Afloat16 wants to merge 1 commit into
Edge0-AI:mainfrom
Afloat16:afloat/20261111-next-reuse-source-digests

Conversation

@Afloat16

Copy link
Copy Markdown

What & why

Asset construction hashed each registered source for lock verification and immediately hashed it again for the initial snapshot, adding a complete read pass over model weights.

Take the initial snapshot once and reuse its digests to verify the lock before conversion. Keep the independent final snapshot to detect source changes during conversion.

Area

Model asset tools (edge0-infer/tools/assets/).

How was it tested?

python -m pytest -q tools/assets/tests/test_make_assets.py

10 tests passed with Python 3.12/NumPy 2.3.5. The counted-hash regression measures two source reads (initial/final snapshots) rather than three on main. Existing digest mismatch, missing input, converter failure, preservation and provenance checks pass. Full model conversion throughput was not measured.

All 14 L0 checks passed in a local integration with the other focused fixes. git diff --check passed.

Checklist

  • Full ctest --preset cpu -L "L0|L1" passes locally
  • Added/updated focused regressions and ran the affected target
  • No public interface/configuration change requiring additional documentation

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