Skip to content

Bump Lemonade: 1bit-MONSTER/lemonade b9383a3c20c9 - #1384

Closed
bong-water-water-bong wants to merge 2 commits into
mainfrom
bump-lemonade/b9383a3c2
Closed

bong-water-water-bong wants to merge 2 commits into
mainfrom
bump-lemonade/b9383a3c2

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Moves third_party/lemonade from 52a2a6b32216 to the fork's main b9383a3c20c9. Opened by hand because there was no open
bump-lemonade/* PR and no such branch: the 2026-11-07 07:23Z run predates the two merges below, and the next scheduled one is
six hours out, while the shipped lemond is what carries them.

Fork commits since the current pin — both landed 2026-11-07 23:41Z:

  • 5dbca8ad5 catalog: the five hand-entered onebit sizes go through the tool, like the other 288 rows (blog: speculative decoding, smaller files, one GPU many users #43) —
    Qwen3-0.6B/1.7B/4B-NPU-1bit and Qwen3.6-35B-A3B-NPU-1bit plus flint-40b-a2.5b were 1.5-6 % below what HF reports for
    the same repos; they now carry the tool's own numbers. Nothing else in the catalog moves (293 entries, 27 onebit), and
    size gates exactly one decision (router.cpp:1137, NPU load over 10 GB on the auto-ctx fallback) which no row crosses.
  • b9383a3c2 server: a /load request names its caller (1bit serve: --mtp (up to 3.4x), --parallel (up to 5.8x), --adaptive (Vulkan + ROCm overflow), --device rocm #41) — one line per load, before anything can fail, naming peer,
    User-Agent and body (clipped, with the true byte count, and with control characters and quotes escaped so a body cannot
    forge a log record). This is the instrument for the c28 take's three anonymous onebit_backend=hrx loads.

The release gate for this pin

docs/releases.md's bump-lemonade/* row wants Lemonade's LLM suite through the onebit recipe on HRX, run on the box. It is
running now against a lemond built from this pin's tree and goes in as a comment with the exact numbers, plus one chat and
the box conditions. Until that comment lands this PR is not READY.

Checks that are not CI's to make

third_party/lemonade 52a2a6b32216 -> b9383a3c20c9 (fork #41, #43).

#41 server: a /load request names its caller (peer, User-Agent, body), so a refused load is not anonymous
#43 catalog: the five hand-entered onebit sizes go through the tool, like the other 288 rows

Upstream v2026.45.3 is the latest release and the fork already carries it (#29); 46.0/46.1 are candidates
only, so there is no port here.

@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: READY at e5804c3b.

A submodule bump is only two things — does the pin exist and move forward, and are the claims about what it carries true — so I checked both rather than the prose.

The pin:

$ python3 tools/check_pins.py origin/main
ok   third_party/lemonade: 52a2a6b32 -> b9383a3c2 is ahead        (rc 0)
$ git ls-tree HEAD third_party/lemonade -> b9383a3c20c93e027aa4df9108692ec2cbc3dc7e
$ git -C <fork> log --oneline -1 origin/main -> b9383a3  server: a /load request names its caller (#41)
   5dbca8a  catalog: the five hand-entered onebit sizes go through the tool (#43)
   52a2a6b  onebit: a non-streamed request that hits the NPU's device-lost answer is replayed once (#42)

so it is the fork's main head, it moves forward, and the three commits are exactly the ones between the old pin and it. #41 is the change I reviewed to READY (escaped body/UA, one line per load), so it is also the one with a reviewed caret on it.

The claim that matters is the catalog one, because five size values moved and size is not decoration. Measured at 5dbca8a, the old → new values are:

22.9 -> 23.2    0.66 -> 0.697    1.6 -> 1.71    3.1 -> 3.31    25.05 -> 25.1

and the only decision size gates is the one the body names — src/cpp/server/router.cpp:

if (auto_ctx == AUTO_CTX_FALLBACK && (model_info.device & DEVICE_NPU)
    && model_info.size > 10.0 && get_available_memory_gb(model_info.device) > 0)

Every one of the five stays on its side of 10 GB: the two large rows were 22.9 and 25.05 and are 23.2 and 25.1, the three small ones are 0.697 / 1.71 / 3.31, and the closest approach to the threshold is 3.31. So "no row crosses it" is true, and now with the numbers behind it rather than the sentence.

Nothing else in the catalog moves (5 lines changed, server_models.json), which matches "293 entries, 27 onebit" staying put in the body.

@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: READY at e5804c3b3d3a50f64ef01ba002ef7501980e4719

A one-line submodule bump, and the three things I check on one all hold:

  • the target exists and is exactly the tip of main: b9383a3c20c9 resolves in the lemonade repo, its subject is server: a /load request names its caller (peer, User-Agent, body), so a refused load is not anonymous (#41) — the squash of #41, which I reviewed at 1daa5458d and verdicted READY — and origin/main is at that same commit, so this is a fast-forward, not a partial pull.
  • the old pin matches what was there: 52a2a6b32216… → b9383a3c20c9…, and the diff is the gitlink only (no engine code touched).
  • nothing in the tree disagrees with the new pin: python3 tools/registry_build.py --check-pins → "records the committed pins", rc 0.

What the bump brings is one containment fix, and it is worth having in the payload: #41's load_caller() now escapes every control character (\n, \r, \t, ", \\, and c < 0x20 || 0x7f → \xNN) in the POST /api/v1/load body and User-Agent before logging them, so a pretty-printed load body can no longer write extra lines into lemond's log — the property the c28 take needed to attribute anonymous loads, without becoming a way to forge log records. It also keeps the clip marker carrying the true byte count, so a truncated body is never mistaken for a short one.

No engine-side API from that change is consumed here (a new header plus one log line in the route), so the bump carries no interface risk.

Not checked: a lemonade rebuild/appliance boot on the new pin — that is the release's own gate (pack-proof.sh + the c-level run), and this change is a pin bump only.

@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: READY at e5804c3b.

Pin discipline, all four checks, in a clean worktree at this head:

gitlink third_party/lemonade   b9383a3c20c93e027aa4df9108692ec2cbc3dc7e
named in the title/body        b9383a3c20c9                                     match
git submodule update --init    resolved to b9383a3c20c93e027aa4df9108692ec2cbc3dc7e
tools/registry_build.py --check-pins   rc 0  ("registry/architectures.json records the committed pins")
compare lemonade main...b9383a3c       status=identical  (the pin IS the fork's main tip, not a branch)
diff                              third_party/lemonade only, 1 file

What it brings, verified by the graph rather than the prose: b9383a3c's parent is 5dbca8ad58, and
compare/5dbca8ad5...b9383a3c is ahead_by=1 — so the range from the old pin 52a2a6b32 is exactly the two commits you name:
5dbca8ad5 (#43, the five hand-entered onebit sizes through the tool) and b9383a3c (#41, a /load request names its caller). Both are
merged on the fork's main, so the pin cannot carry unreviewed branch work.

One correction to my own instrument, because I nearly filed the opposite verdict: my first --check-pins run printed "llama.cpp
(hrx) recorded at ed43da0b4, pinned at 4a375bf2d — a pin moved without regenerating the registry"
, and my first history range reported
one commit instead of two. Both were my state, not yours: the first was a mixed checkout (this PR's registry/tools over a tree whose
submodules sat at main's pins), and the second was a shallow submodule clone cutting the parent from ancestry. Re-ran both cleanly
(rc 0, two commits via parents + compare) before writing anything. A stale registry report on a bump PR would have been a bad thing
to hand you on the night of a cut.

Bumping by hand was the right call given no bump-lemonade/* PR and a six-hour gap to the next scheduled run — the shipped lemond is what
carries the /load attribution, and #43's catalog rows are the sizes the NPU packs will be checked against.

@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: CHANGES at 9b2df5945f9ee7ec00ec00c85856da787135f6aa

One item: the release-gate result isn't here yet.

  • docs/releases.md's bump-lemonade/* row requires Lemonade's LLM suite through the onebit recipe on HRX.
  • The body says "Until that comment lands this PR is not READY", and no comment has landed at this head.
  • Once the suite's numbers, the chat and the box conditions are posted against this pin's lemond, I'll re-verdict at the same head.

The pin checks out:

  • Diff: the only change against main is the third_party/lemonade gitlink, 52a2a6b32216 → b9383a3c20c93e027aa4df9108692ec2cbc3dc7e.
  • Branch: b9383a3c is the fork's origin/main tip, the branch .gitmodules names.
  • Range: git log 52a2a6b..b9383a3c is exactly the two commits the body lists:
    • 5dbca8ad (#43, catalog sizes; I reviewed it READY);
    • b9383a3c (#41, the /load caller line; reviewed with the log-forging escape in place).
  • Wording: "no row crosses" the 10 GB guard holds for the NPU rows the guard applies to. Across the whole catalog, 74 of 293 rows are above 10, but the guard only fires for DEVICE_NPU.
  • Heads-up, not blocking: lemonade#44 (the GB-vs-GiB readers, #1381) is open. When it lands it will need its own bump, and per my review there it currently changes the memory-fit filter's inputs too.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The release gate, on the box: green — and it also caught #41 working in the pin

gpu-hold -l "pi lemonade" -t 30, token in hand at 21:52:2x, window 91 s, released by gpu-hold at 21:53:57. Port 13422,
isolated cache/config. The binary is the pin's tree: worktree checked out at b9383a3c2, git rev-parse HEAD^{tree} =
01c82d1c43cc408f959dc203d995dcf73f1ac01e (the pin's), rebuilt incrementally, and its built resource catalog is #43's
(Qwen3-0.6B-NPU-1bit 0.697, flint 25.1, 293 entries) — so both commits are demonstrably inside the artifact, not just in the
JSON. --version reads 2026.47.0~1764.2062cb4d because the string is generated at configure time; the tree is the pin's.

Startup:          Version 2026.47.0~1764.2062cb4d
21:52:27.937      Load request from 127.0.0.1 ua="curl/8.18.0" body={"model_name":"Qwen3-0.6B-1bit","ctx_size":8192}
21:52:29.199      Model loaded successfully. Total loaded: 1        (1.26 s)
chat              '1BIT SMOKE OK' | finish: stop | 238.99 tok/s predicted | 902.79 tok/s prompt
SUITE_RC=0        Ran 31 tests in 80.689s
                  OK (skipped=2)

That Load request from … line is #41 running: it names peer, User-Agent and body, and it is written before anything can
fail — exactly the instrument the c28 take needed. It had never appeared in a gate log before this pin.

The two skips are the recipe's declared ones (echo_parameter, generation_parameters are false in
test/utils/capabilities.py for onebit). The suite drove LFM2-1.2B-1bit (auto ctx 128000),
Qwen3-4B-Instruct-2507-1bit (tool calls), nomic-embed-text-v2-moe-1bit and jina-reranker-v1-tiny-en-1bit through
load/unload/LRU/unload-all, slots, cache telemetry (cache_tokens=271, cache_tokens_total=652), the three rerank aliases and
tokenize, all on HRX0 -ngl 99.

Same caveat as the last bump, recorded rather than hidden: the script prints leftover HRX backends in lemond's group: 1
because that check runs before its own EXIT trap SIGTERMs lemond. Verified after the fact: nothing is listening on 8001, port
13422 is free, and gpu-hold released the token itself.

For whoever cuts the next payload

lemond --version should read 2026.47.0~<n>.b9383a3c and bin/resources/server_models.json should show
Qwen3-0.6B-NPU-1bit 0.697; a payload still showing ~12.52a2a6b3 (c31's) stops at the previous pin, which has the 614
replay but neither of these two commits.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Superseded by #1401 (bump-lemonade/bf0d2335e → bf0d2335ef80), which carries the same two commits plus #44 — the
reader half of the catalog-size work. Pinning b9383a3c2 would have shipped #43's decimal-GB values with the two 2^30
readers still converting them back as GiB, i.e. the exact inconsistency #44 fixes.

Nothing was wrong with the gate evidence in this PR: the suite, the chat and the resource-catalog check were all run on
b9383a3c2's tree and are reproducible from the comment above; #1401 re-runs them on the newer tree and that is where the
numbers for the pin that merges will live. Closing this one rather than force-moving its branch, because a
bump-lemonade/<sha> branch that names a different sha than it pins is exactly the kind of thing the branch convention
exists to prevent.

bong-water-water-bong pushed a commit that referenced this pull request Nov 8, 2026
third_party/lemonade 52a2a6b32216 -> bf0d2335ef80 (fork #41, #43, #44).

#44 catalog: the size field is decimal GB, so the two 2^30 readers are the bug (Fixes #1381)
#43 catalog: the five hand-entered onebit sizes go through the tool, like the other 288 rows
#41 server: a /load request names its caller (peer, User-Agent, body), so a refused load is not anonymous

Supersedes #1384, which pinned b9383a3c2 and missed #44 (the same field's reader fix).
Upstream v2026.45.3 is the latest release and the fork already carries it (#29); no port here.
@bong-water-water-bong
bong-water-water-bong deleted the bump-lemonade/b9383a3c2 branch November 10, 2026 18:27
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