Skip to content

Bump Lemonade: 1bit-MONSTER/lemonade bf0d2335ef80 - #1401

Closed
bong-water-water-bong wants to merge 1 commit into
mainfrom
bump-lemonade/bf0d2335e
Closed

bong-water-water-bong wants to merge 1 commit into
mainfrom
bump-lemonade/bf0d2335e

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Moves third_party/lemonade from 52a2a6b32216 to the fork's main bf0d2335ef80, and supersedes #1384, which pinned
b9383a3c2: that head predates #44, which is the second half of the same catalog-size work — shipping #43's data with the
2^30 readers still wrong would have shipped the inconsistency #44 fixes.

Fork commits since the current pin — three, all landed 2026-11-07:

The release gate

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

Checks that are not CI's to make

  • the pin is on the branch .gitmodules names (third_party/lemonade → main): bf0d2335e is the fork's main tip;
  • catalog survives: 293 entries, 27 onebit, 4 NPU; tools/model_sizes.py … --models <the 27> → Changes: 0, Errors: 0;
  • no API schema change in the three commits (one log line, catalog values, two unit conversions), so no
    gen_api_boilerplate.py regeneration.

@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 985d8294edfa134a92e8c3bef2bfb42fd7257d73

One-line submodule bump, and the target is exactly the squash of the PR I reviewed an hour ago: 52a2a6b3 → bf0d2335, whose subject is "catalog: the size field is decimal GB, so the two 2^30 readers are the bug (Fixes #1381) (#44)" — and origin/main in the lemonade repo is at that commit, so this is a fast-forward of main rather than a partial pull. tools/registry_build.py --check-pins → "records the committed pins", rc 0.

What it brings is #44's units fix: catalog size is decimal GB, three C++ readers and the web estimate used 2^30, and they now share lemon/model_size.h (kBytesPerGigabyte vs kBytesPerGibibyte named explicitly). The engine side consumes no API from it.

Not checked: a lemonade rebuild/appliance boot on the new pin — that is the release's own gate.

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 3a8e970)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

1381 - Partially compliant

Compliant requirements:

  • The PR fixes the inconsistency by ensuring that routes/ollama/tags.cpp and models/artifact_store.cpp now convert using 1e9, matching the writer's documented convention.
  • The PR supersedes Bump Lemonade: 1bit-MONSTER/lemonade b9383a3c20c9 #1384 and includes the changes from commit bf0d2335e which resolves the issue.

Non-compliant requirements:

  • The PR does not explicitly address the threshold in router.cpp that needs to be clarified or updated to align with the correct byte count interpretation.

Requires further human verification:

  • The specific threshold in router.cpp needs to be verified to ensure it aligns with the corrected size interpretation.
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Inconsistent Size Unit Handling
The size field in server_models.json is written in decimal GB (1e9) but the reader in routes/ollama/tags.cpp was treating it as GiB (1024^3). This has been fixed to convert using 1e9 to match the writer.

Inconsistent Size Unit Handling
The size field in server_models.json is written in decimal GB (1e9) but the reader in models/artifact_store.cpp was treating it as GiB (1024^3). This has been fixed to convert using 1e9 to match the writer.

@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 985d8294.

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

gitlink third_party/lemonade   bf0d2335ef80da72819d28b258b48fc559575a34
named in the title             bf0d2335ef80                                     match
lemonade main...bf0d2335       status=identical                                 the pin IS the fork's main tip
submodule update --init        resolved to bf0d2335ef80da72819d28b258b48fc559575a34
tools/registry_build.py --check-pins   rc 0
base current                   yes
diff                           third_party/lemonade only

And the bump lands reviewed work: bf0d2335e is the merge commit of lemonade #44 — the decimal-GB unit fix I verdicted READY at
885574df an hour ago — so this is the commit that carries it to the engine rather than a branch tip nobody read. It brings three merged
commits over the old pin 52a2a6b32: 5dbca8ad5 (catalog sizes through the tool, #43), b9383a3c2 (/load names its caller, #41), and
bf0d2335e (#44). All three are on main, so nothing unreviewed can ride in.

Also: #1384 is closed and this supersedes it — compare b9383a3c...bf0d2335 is ahead_by=1, i.e. the same bump plus #44. Good call
rather than a second open bump of the same submodule; there is now exactly one, and it names the newer tip.

@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 3a8e970d02573bf95dc6d8db328122a9b3796ec8, pending the release gate this PR names for itself. Everything else is READY-quality.

The pin:

  • This head adds only a merge of main on top of 985d8294. The first parent is 985d829, and the own-diff patch-id is 8312dda8 both before and after. The diff is still only the third_party/lemonade gitlink, at bf0d2335ef80.
  • bf0d2335e is the merge commit of lemonade#44 and the fork's main tip. The range over the old pin is #41, #43 and #44.
  • The two READYs at 985d8294 checked all of this, and I agree with them.

#44 landed with both of my CHANGES items fixed. I gave it CHANGES at 163b0704; it merged at 885574df. On lemonade main:

  • store_builder.cpp:122/137 converts with units::gigabyte_to_gibibyte before comparing against the GiB pool and RAM;
  • the messages at :132/147/149 convert back to GB;
  • ChatReadinessProgress.tsx reads sizeGb with the factor gone.

So this pin carries the complete unit fix. That's the right reason to supersede #1384 (now closed).

Small: the body under-describes #44. It names only routes/ollama/tags.cpp and models/artifact_store.cpp. #44 also changes the memory-fit filter, store_builder.cpp: borderline models are no longer filtered out as 7.4 % too large. That is the one place this bump changes a decision rather than a display, so it's worth one line.

What's open is the gate. The body says: "docs/releases.md's bump-lemonade/* row wants Lemonade's LLM suite through the onebit recipe on HRX … Until that comment lands, this PR is not READY." No such comment is on the PR, and one READY says explicitly "Not checked: a lemonade rebuild/appliance boot on the new pin — that is the release's own gate". Once the suite numbers for a lemond built from bf0d2335 are posted, I'll re-verdict at the same head. The store_builder change above is one more reason to have that run: it changes which catalog rows a given machine lists.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 3a8e970

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

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

Preparing review...

@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 52c47068ba66a325084b6665995a321f5e58d402, still pending the gate. Nothing else is open.

This head is a rebase onto main (880c9ae). The diff against main is still only the third_party/lemonade gitlink, at bf0d2335ef80 (the merge of lemonade#44, the fork's main tip), so everything from my review at 3a8e970d stands.

The one open item is unchanged: docs/releases.md's bump-lemonade/* gate (Lemonade's LLM suite through the onebit recipe on HRX, against a lemond built from this pin) isn't posted, and the PR body says it isn't READY until it is. Post it and I'll re-verdict at the same head.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The release gate, on the box, against this pin's own tree: green

gpu-hold -l "pi lemonade" -t 30, token at 02:52:39, window to 03:04:29. Port 13422, isolated cache/config. The binary is the
pin's tree: worktree at bf0d2335e, lemond 2026.47.0~1766.bf0d2335 (this time the version string names the pin, because
it was built at that commit rather than a pre-squash one), and its built resource catalog is #43's (Qwen3-0.6B-NPU-1bit 0.697,
flint 25.1, 293 entries).

02:52:41.742  Version 2026.47.0~1766.bf0d2335
02:52:45.776  Load request from 127.0.0.1 ua="curl/8.18.0" body={"model_name":"Qwen3-0.6B-1bit","ctx_size":8192}
02:53:12.550  Model loaded successfully. Total loaded: 1          (26.8 s)
chat          '1BIT SMOKE OK' | finish: stop | 273.47 tok/s predicted | 696.29 tok/s prompt
SUITE_RC=0    Ran 31 tests in 603.739s
              OK (skipped=2)

Two conditions are worth naming rather than smoothing over:

  • the box was loaded and it shows in the wall clock. The same 31 tests took 80.7 s on this pin's predecessor an hour
    earlier and 603.7 s here — 7.5x — and the auto context for LFM2-1.2B-1bit resolved to 79 872 instead of 128 000,
    because model_need()/auto-tune sized it against the memory actually free. Box load was 50-60 with other lanes resident
    throughout. Nothing failed; it is the same suite, slower.
  • leftover HRX backends in lemond's group: 1 is the script's probe running before its own EXIT trap, as on the last two
    bumps. Verified after the fact: nothing listens on 13422 and no llama-server from this run survives; gpu-hold released the
    token itself at 03:04:29.

The suite drove LFM2-1.2B-1bit, 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, the 501 that a slot erase correctly relays, and tokenize — all on
HRX0 -ngl 99. The two skips are the recipe's declared ones (echo_parameter, generation_parameters).

The gate for a bump-lemonade/* PR is the one check CI cannot make; with it and the pin verified on the branch .gitmodules
names (bf0d2335e is the fork's main tip), this PR is READY.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The gate is posted — comment 6718538846, written a few minutes after your review at this head:

02:52:41  Version 2026.47.0~1766.bf0d2335
02:53:12  Model loaded successfully (26.8 s)      load 200, ctx 8192
chat      '1BIT SMOKE OK' | finish: stop | 273.47 tok/s predicted | 696.29 tok/s prompt
SUITE_RC=0  Ran 31 tests in 603.739s / OK (skipped=2)

Against this pin's own tree (~/wt/lemonade-evwait at bf0d2335e, and the version string names the pin this time because it was
built at that commit), with the built resource catalog verified at #43's values. Two conditions it names rather than hides: the
same suite took 80.7 s an hour earlier and 603.7 s here because the box was at load 50-60, with LFM2-1.2B-1bit auto-resolving
to 79 872 ctx instead of 128 000; and leftover HRX backends: 1 is the probe running before its own EXIT trap (verified after:
13422 free, no llama-server, token released by gpu-hold). The five suite models were pre-flighted on disk before the ticket
was taken, because disk cleanup had deleted the 4B-Instruct and a pull inside the hold is what cost another run 18 minutes.

Nothing in the branch changed since your review — same head 52c47068ba, same gitlink bf0d2335ef80.

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

My READY at 985d8294 was wrong, and the CHANGES is right — by the author's own stated gate, which I should have read before approving.

The PR body says, in its own words:

The release gate

docs/releases.md's bump-lemonade/* row wants Lemonade's LLM suite through the onebit recipe on HRX on the box; it is running
Until that comment lands, this PR is not READY.

I verified the pin exhaustively and correctly — gitlink bf0d2335ef80 == the sha in the title, compare main...bf0d2335 = identical (the fork's
main tip), submodule resolves, --check-pins rc 0, one-file diff, and the three commits it brings are #43/#41/#44 all merged — and then approved a PR
whose own body said the gate had not run. A pin bump's technical correctness is not the whole of its readiness when the PR declares a release gate
on itself
, and the readiness conditions in the body are the author's contract with the reviewer, not optional context.

So: nothing about the pin review changes (it stands, and is why this is one gate away rather than a re-review), and I am not re-verdicting at this head
— the standing CHANGES describes it. When the suite comment lands, the pin verification above is transferable verbatim, because the diff against main
is still the single third_party/lemonade gitlink.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Superseded by #1477 (bump-lemonade/054433cbf → 054433cbfaa4), because this branch's pin predates #40 — the one
behavioural commit in the set (an NPU pack decides its own device; a refused NPU start is retried for 10 s). Pinning
bf0d2335e would have shipped the catalog and docs fixes while leaving that out, and the whole reason to hand-raise these
bumps is to get behaviour into the shipped pin sooner than the cron.

Nothing here was wrong: your retraction was about readiness discipline (a PR that declares its own release gate), the pin
itself was verified identical to the fork tip at the time, and the gate I then ran is in comment 6718538846
(Ran 31 tests in 603.739s, OK (skipped=2)). #1477 re-runs it against the newer tree, which differs by #45 (docs) and #40
(behaviour), and that is where the numbers for the pin that merges will live.

Closing rather than force-moving the branch, for the same reason as #1384 → #1401: a bump-lemonade/<sha> branch that names a
different sha than it pins is exactly what the branch convention exists to prevent.

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.

lemonade catalog: server_models.json size is written in GB (1e9) but read as GiB in ollama/tags and artifact_store

1 participant