Skip to content

Bump Laya: source af8ada06, model 85cc74dd - #2554

Merged
bong-water-water-bong merged 1 commit into
mainfrom
bump-laya/af8ada06-85cc74dd
Nov 15, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
bump-laya/af8ada06-85cc74dd

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

third_party/laya: 3a38cbe83f6e -> af8ada066685 (NandhaKishorM/laya main). config/laya.json revision: 85cc74ddae61 -> 85cc74ddae61 (convaiinnovations/laya).

Before merging: scripts/fetch-laya.sh

(verifies every file) and the Laya tests.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ No major issues detected

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY-if-the-submodule-delta-is-named 2554

The honesty in the description is good and unusual: "config/laya.json revision: 85cc74ddae61 -> 85cc74ddae61" states a no-change explicitly rather than omitting it, which is exactly what a reviewer needs (a missing line would leave me wondering whether the config was meant to move with the submodule).

That makes the one open question sharper, not softer: the submodule moved 3a38cbe83f6e → af8ada066685 and the pinned revision did not. So what is in those commits? The reason to ask is concrete:

  • if the four commits are metadata/docs/build changes, the revision staying put is correct and this PR is a pure submodule refresh;
  • if any of them touch weights, tokenizer files, or the checkpoint layout, then config/laya.json's revision is now describing a tree that no longer matches what the submodule expects — and the failure appears at fetch time on someone else's machine, not here.

The ask is one line: git log --oneline 3a38cbe83f6e..af8ada066685 in the description, or a sentence classifying them. The header exists so that the delta is auditable, and "Before merging: scripts/fetch-laya.sh <dir> (verifies every file) and the Laya tests" is a good gate — but it verifies files, not the relationship between the submodule commit and the pinned revision.

And one thing worth noting: the description's 85cc74ddae61 is the short form while the config stores the full 85cc74ddae6109077ebe2853a9b3077fb6606a78. Fine for prose, but if any check compares revisions, make sure it compares consistently — a prefix match that later accepts the wrong commit is the kind of thing that looks verified and is not.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 9c94255: READY

A one-line gitlink bump, verified the way a pin bump has to be: the target is upstream's main tip, the jump is 11 commits with no native code, the model pin is unchanged and still consistent, and the bumped package's own changed test files pass at the pin.

The pin, enumerated

third_party/laya   3a38cbe83f6e -> af8ada066685     (the only file in the diff)
upstream main                                   -> af8ada066685   ← the pin IS the tip, not a stray branch head
git rev-list --count 3a38cbe8..af8ada06         -> 11

The 11 commits are upstream 0.4.31 → 0.4.32 (pyproject.toml), and the diff has zero native files — no .cpp, .h, hip/, or anything the HRX build of ggmlc compiles:

README.md | laya/__init__.py | laya/calibrate.py | laya/hooks.py | laya/integrations/tools.py
nix/package.nix | pyproject.toml | requirements-docs.txt
tests/test_option_stability.py (+58) | tests/test_predict_batch.py (+79) | tests/test_tools.py (+60)
11 files changed, 339 insertions(+), 73 deletions(-)

That matters for this repo specifically: .gitmodules says "1bit/main = upstream + our HRX build", so "no native files in the bump" is the property that keeps that relationship intact — a bump that touched ggml/hip files would have to be re-diffed against our patch.

The model pin is unchanged, and the title says so

config/laya.json already holds "revision": "85cc74ddae6109077ebe2853a9b3077fb6606a78" and this PR does not touch it — so "source af8ada06, model 85cc74dd" describes the two pins as they now stand, not two bumps. No drift: the workflow that keeps both current (.github/workflows/bump-laya.yml) is not being half-applied here.

Behaviour, at the pin

ctest -R laya      8 rows: laya_head_finetune, laya_gguf_route, laya_first, laya_encoder,
                  laya_models, laya_eval, laya_route_e2e, laya_bounds  → 100% passed

Those exercise onebit's router, not the Python package — so I ran the package's own changed tests at af8ada06:

tests/test_tools.py             131 passed, 0 failed
tests/test_option_stability.py  210 passed, 0 failed
tests/test_predict_batch.py     skipped: ModuleNotFoundError: No module named 'torch'

test_tools and test_option_stability are the two that cover this release's actual changes (the per-bucket min_confidence map in LayaToolSelector, and the new OptionStabilityHook), and both pass at the pin. test_predict_batch needs torch, which is not installed on this box — so the Router.predict_batch change is the one part of this bump I could not execute, and I am recording that rather than implying full coverage.

Not a blocker: that path is upstream's own suite, the code is unchanged by us, and the engine does not import predict_batch. But if anything in the fleet routes in batches through the Python package rather than onebit, that is the row to run where torch exists.

@bong-water-water-bong
bong-water-water-bong merged commit e402eba into main Nov 15, 2026
10 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the bump-laya/af8ada06-85cc74dd branch November 15, 2026 15:21
bong-water-water-bong pushed a commit that referenced this pull request Nov 16, 2026
… to the merge commit

Two changes that only make sense together (engine#2652).

1. A deleted branch no longer means GONE. The merge loop deletes branches, so the sweep over two days
   reported 196 of 200 PRs as "the tail cannot be examined" -- a detector blind on 98 % of the population.
   GitHub keeps the PR head at refs/pull/<n>/head, which is how #2679 was settled, so try that before
   giving up. With it: 112 of 112 PRs examined, 0 GONE.

2. The SUPERSEDED test was "the base file is LONGER", a proxy that fails for every one-line value file: a
   pin bump rewrites the value and leaves the file the same length. That is why the sweep reported #2586 and
   #2572 (config/gpu-kernels.config sha=) and #2583/#2554 (Subproject commit) as LOST while main had been
   bumped after the merge. The exact test needs the PR's MERGE commit as the lower bound:
   git log <merge>..<base> -- <file> non-empty => a later supersession; empty => a real loss, including the
   squash-tail case, which is why the existing arm "a commit pushed after a squash merge is LOST by content"
   still passes. classify_commit() takes that commit as `after`; without it the old proxy is kept.

Arms: 14 ok, 0 fail -- including the squash-tail LOST arm that refuted my first attempt at (2).
bong-water-water-bong pushed a commit that referenced this pull request Nov 16, 2026
…sha instead of grepping it

The last two LOST rows a two-day sweep reported were #2583 (third_party/llama.cpp: pin to 148e7f329) and
#2554 (third_party/laya: source af8ada06). Both are submodule pointers. `git show <rev>:<path>` prints
nothing for a gitlink -- there is no blob -- so every added line read as absent and the verdict was LOST
by construction, not by evidence.

A gitlink content IS its sha, so read the tree entry (mode 160000) on both sides and skip the file when the
pointers are equal. After the change the same sweep reports 0 LOST, 200 of 200 PRs examined.
bong-water-water-bong pushed a commit that referenced this pull request Nov 16, 2026
… to the merge commit

Two changes that only make sense together (engine#2652).

1. A deleted branch no longer means GONE. The merge loop deletes branches, so the sweep over two days
   reported 196 of 200 PRs as "the tail cannot be examined" -- a detector blind on 98 % of the population.
   GitHub keeps the PR head at refs/pull/<n>/head, which is how #2679 was settled, so try that before
   giving up. With it: 112 of 112 PRs examined, 0 GONE.

2. The SUPERSEDED test was "the base file is LONGER", a proxy that fails for every one-line value file: a
   pin bump rewrites the value and leaves the file the same length. That is why the sweep reported #2586 and
   #2572 (config/gpu-kernels.config sha=) and #2583/#2554 (Subproject commit) as LOST while main had been
   bumped after the merge. The exact test needs the PR's MERGE commit as the lower bound:
   git log <merge>..<base> -- <file> non-empty => a later supersession; empty => a real loss, including the
   squash-tail case, which is why the existing arm "a commit pushed after a squash merge is LOST by content"
   still passes. classify_commit() takes that commit as `after`; without it the old proxy is kept.

Arms: 14 ok, 0 fail -- including the squash-tail LOST arm that refuted my first attempt at (2).
bong-water-water-bong pushed a commit that referenced this pull request Nov 16, 2026
…sha instead of grepping it

The last two LOST rows a two-day sweep reported were #2583 (third_party/llama.cpp: pin to 148e7f329) and
#2554 (third_party/laya: source af8ada06). Both are submodule pointers. `git show <rev>:<path>` prints
nothing for a gitlink -- there is no blob -- so every added line read as absent and the verdict was LOST
by construction, not by evidence.

A gitlink content IS its sha, so read the tree entry (mode 160000) on both sides and skip the file when the
pointers are equal. After the change the same sweep reports 0 LOST, 200 of 200 PRs examined.
bong-water-water-bong added a commit that referenced this pull request Nov 16, 2026
… to the merge commit (engine#2652 sweep) (#2693)

* merged_tail_check: examine refs/pull/<n>/head, and scope supersession to the merge commit

Two changes that only make sense together (engine#2652).

1. A deleted branch no longer means GONE. The merge loop deletes branches, so the sweep over two days
   reported 196 of 200 PRs as "the tail cannot be examined" -- a detector blind on 98 % of the population.
   GitHub keeps the PR head at refs/pull/<n>/head, which is how #2679 was settled, so try that before
   giving up. With it: 112 of 112 PRs examined, 0 GONE.

2. The SUPERSEDED test was "the base file is LONGER", a proxy that fails for every one-line value file: a
   pin bump rewrites the value and leaves the file the same length. That is why the sweep reported #2586 and
   #2572 (config/gpu-kernels.config sha=) and #2583/#2554 (Subproject commit) as LOST while main had been
   bumped after the merge. The exact test needs the PR's MERGE commit as the lower bound:
   git log <merge>..<base> -- <file> non-empty => a later supersession; empty => a real loss, including the
   squash-tail case, which is why the existing arm "a commit pushed after a squash merge is LOST by content"
   still passes. classify_commit() takes that commit as `after`; without it the old proxy is kept.

Arms: 14 ok, 0 fail -- including the squash-tail LOST arm that refuted my first attempt at (2).

* merged_tail_check: a submodule gitlink is not a blob, so compare its sha instead of grepping it

The last two LOST rows a two-day sweep reported were #2583 (third_party/llama.cpp: pin to 148e7f329) and
#2554 (third_party/laya: source af8ada06). Both are submodule pointers. `git show <rev>:<path>` prints
nothing for a gitlink -- there is no blob -- so every added line read as absent and the verdict was LOST
by construction, not by evidence.

A gitlink content IS its sha, so read the tree entry (mode 160000) on both sides and skip the file when the
pointers are equal. After the change the same sweep reports 0 LOST, 200 of 200 PRs examined.

* merged_tail_check: the SUPERSEDED text says what the code does, and the after= path gets its arm

Two items from the review at 16:14Z, both in this file.

The docstring's class list still described the mechanism this PR replaced: SUPERSEDED read
"every affected base file is LONGER", which is the line-count proxy, while the code now scopes
supersession to whether the base changed that file after the merge. It also gains the caveat the
other half of the review asked for: refs/pull/<n>/head is the MERGE-TIME head, so reading it is a
fallback for a deleted branch and not a way to see a push that landed afterwards.

The arm: classify_commit(..., after=<merge>) had no self-test case at any head, so the path that
returns SUPERSEDED -- the one that stops four pin-bump false positives -- was exercised only by a
live run. Three cases on one tree: the commit is LOST while the base has not touched the file, the
same commit is SUPERSEDED once the base moves that file after the merge, and LOST again without
after=, which is what makes the arm load-bearing rather than decorative.

17 arms, rc 0; copyright --check rc 0.

* merged_tail_check: supersession is per LINE, so a touched file cannot silence a loss

Reconciles with 6c78c0c (pi-prs), which landed the docstring wording and an `after=` arm while this
was being written. Both halves of the review at f0a52c9 come down to the same defect -- a reading that
claims more than it measured -- so the fix is at the level the claim is made.

1. CODE. `after`-scoped supersession was FILE-granular: any later PR that edited one unrelated line
   of the same file turned a genuine LOST into SUPERSEDED, and report() exits 0 on SUPERSEDED, so the
   class this tool exists for went quiet. Now the exact question is asked -- did a later commit
   REPLACE one of the missing lines (`git log -S <line> <merge>..<base> -- <file>`)? The length proxy
   stays when no merge commit is in hand, and is skipped when it already answers, so the long-file
   case makes no extra git calls.

   Measured on one fixture through three versions, the commit absent from main in all of them:
   LOST (no `after`), LOST (before the merge-commit scope), SUPERSEDED (at f0a52c9) -- with this
   change, LOST again.

2. THE ARM 6c78c0c ADDED ASSERTED THE OVER-CLAIM. Its middle case wrote a DIFFERENT pin value into the
   file after the merge and expected SUPERSEDED; the base never carried the line, so that is a commit
   whose content is genuinely gone, reported as not-a-loss. Split into both directions, on one tree:
     base never carried the line          -> LOST, with after= as well
     base carried it, then replaced it    -> SUPERSEDED with after= (the #2586/#2572 shape)
     ... and without after=               -> LOST again, so the exit-0 path stays load-bearing
   Plus two arms for paths that had none: a LOST commit whose file was edited ELSEWHERE after the
   merge stays LOST, and a submodule pointer at the same sha is IN-BASE rather than LOST.

3. Docs: the SUPERSEDED entry now says per line, and the GONE entry carries 6c78c0c's merge-time-head
   caveat. The UNVERIFIED class 6c78c0c documented has no producer in the code (grep: one hit, the
   docstring), so it is gone rather than left as a class nobody can receive; a row read through
   refs/pull/<n>/head already names that route in its branch column.

   $ python3 tools/ci/merged_tail_check.py --self-test   -> 20 ok, 0 FAIL     (copyright --check rc 0)
   mutants, each restored afterwards:
     file-granular supersession (f0a52c9)  -> FAIL ... stays LOST with after=        (LOST -> SUPERSEDED)
     pickaxe disabled                      -> FAIL ... replaced the line itself     (SUPERSEDED -> LOST)
     gitlink sha comparison dropped        -> FAIL ... same sha is IN-BASE          (IN-BASE -> LOST)

   No drift on live data: a fixed population of 20 merged PRs reads identically under f0a52c9 and this
   commit (IN-BASE 27, PARTIAL 6, UNVERIFIABLE 1, LOST 0, SUPERSEDED 0), and #2659/#2623 classify the
   same per tail commit. A 60-PR two-day scan runs clean: 0 GONE, 0 LOST.

* merged_tail_check: restore the #2679/#2682 text the rebase dropped, keeping the per-line fix

The rebase onto main (0168c0e) resolved the classify_commit conflict by taking this branch's side of
the docstring and of two hunks around it, which silently removed main's #2679 measurements text and the
merged-head exclusion's own arm comments -- i.e. the branch would have reverted part of #2682 while
reporting CLEAN, because git sees a revert and not a conflict. Caught by diffing the file against
origin/main rather than by the merge status: 10 deleted lines, none of them intended.

This commit is main's file with the PR's additions only:

  $ git diff --stat origin/main -- tools/ci/merged_tail_check.py
   1 file changed, 126 insertions(+), 10 deletions(-)     (all 10 are this PR's own superseded lines)
  $ python3 tools/ci/merged_tail_check.py --self-test     -> 26 ok, 0 FAIL   (main's 20 arms + 6 here)
  mutant: file-granular supersession -> FAIL ... stays LOST with after=
  30-PR one-day scan: 0 GONE, 0 LOST

---------

Co-authored-by: pi-lane <pi@local>
Co-authored-by: pi-prs <[email protected]>
Co-authored-by: bong-water-water-bong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant