Skip to content

perf(embeddings): skip unused BERT suffixes with exact token guards - #496

Merged
cdeust merged 26 commits into
mainfrom
perf/green-embedding-prefix-audit
Sep 8, 2026
Merged

cdeust merged 26 commits into
mainfrom
perf/green-embedding-prefix-audit

Conversation

@cdeust

@cdeust cdeust commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Skip unused BERT suffixes only when the validated tokenizer configuration, whole-word boundary and saturated token budget prove the same model input.

Sixteen measured model inputs and vector byte sequences match exactly. Original text, cache key and batch path remain intact; timings are fixture-specific.

Validation and review (2026-09-08):

  • Reviewed the implemented diff for correctness, security, lifecycle and ordering; no unresolved source finding.
  • Integrated current main (including deps: refresh compatible dependencies and align plugin launcher pins #491) and every updated parent. Reviewed head: 2462ca1e4d49f70abd2553194b672e344359a1bf.
  • Combined runtime tree: locked Ruff/format, craftsmanship and Pyright pass; full suite 8,013 passed, 257 skipped, one stale private dependency-fixture failure. Correcting that fixture without changing assertions yields 4/4 launcher tests passing. The added baseline setup and matrix tests pass 8/8. GitHub CI is running on each new head.
  • Full LongMemEval/LoCoMo comparison against main ca32ba50 is running on separate disposable databases with identical public datasets. It uses the repository's existing 0.005 tolerance; no acceptance result is claimed before completion.

Historical measurements apply to their recorded revisions and scopes. The current PR is authorized for merge after applicable checks; remaining optimization targets above are not presented as completed benefits.

The latest commit only triggers main-targeted security checks. Its tree 8865c2f4c854d13fa56b5536df9922b6433f207e is identical to da4a99823395476f7eb915446ef228166c973869. The composed benchmark uses frozen commit 5000f75e5d1ee14c5dd62db709a99f86792dab2d, whose tree matches final PR #502.

@cdeust cdeust changed the title bench(embeddings): audit unsafe character-prefix truncation perf(embeddings): skip unused BERT suffixes with exact token guards Sep 7, 2026
@cdeust
cdeust marked this pull request as ready for review September 8, 2026 19:37

@cdeust cdeust left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completed source review of this implemented scope and its parent integration. No unresolved correctness, security or lifecycle finding. The description records limitations rather than claiming unmet optimization targets. Merge remains gated on current required CI and applicable baseline quality evidence. Review includes independent read-only review of the per-PR diff and combined locked local tests.

@cdeust
cdeust changed the base branch from perf/green-reuse-write-embeddings to main September 8, 2026 20:53

@cdeust cdeust left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the CI-trigger commit: git diff from da4a998 is empty and Git tree 8865c2f4c854d13fa56b5536df9922b6433f207e is unchanged. Previous source review and test evidence apply to this identical tree. Required main-targeted checks are now running; no protection bypass is used.

@cdeust
cdeust merged commit 2a2cc80 into main Sep 8, 2026
28 checks passed
@cdeust
cdeust deleted the perf/green-embedding-prefix-audit branch September 9, 2026 07:37
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.

2 participants