Skip to content

Bump Lemonade: 1bit-MONSTER/lemonade 27abcc24da99 (#3771 server refactor sync) - #520

Merged
bong-water-water-bong merged 1 commit into
mainfrom
bump-lemonade/27abcc24da99
Oct 23, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
bump-lemonade/27abcc24da99

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Moves third_party/lemonade from a98f3e23d393 to the fork main 27abcc24da99.

Fork PR #21 (merge commit): upstream main 49e63790 with the #3771 HTTP server refactor (route classes, core components, generated API docs), plus #20 (Qwen3 0.6B/1.7B/4B NPU catalog entries). The onebit backend hooks (ctx.api_url, one-hop llama-server start, warm-ups, --no-mtp, Guest tier) were checked by hand on the new route classes; 19-file onebit delta vs upstream.

Hardware verify (strixhalo, private lemond, 90 W cap, PCM pad, lemonade bench standard): 27B MTP one-hop load 8-11 s, chat 30.9-31.2 tok/s; bench chat-short TTFT 827-835 ms, TPS 28.0-28.4; Qwen3.5-4B 64.6 tok/s; NPU entry ready in 977 ms; Guest tier 0 onebit entries without the engine binary, 8 with it.

Merge by hand after hw_gate passes (auto-merge off).

🤖 Generated with Claude Code

…tor sync)

third_party/lemonade: a98f3e23d393 -> 27abcc24da99. Fork PR #21 merged upstream main 49e63790 (the HTTP server refactor, #3771: route classes, core components, generated API docs) and #20 (three Qwen3 NPU catalog entries). Onebit hooks checked on the new route classes; hardware verify on strixhalo (90 W cap, PCM pad): 27B MTP one-hop load 8-11 s, chat 30.9-31.2 tok/s, lemonade bench chat-short TTFT 827-835 ms / TPS 28.0-28.4, Qwen3.5-4B 64.6 tok/s, NPU entry ready in 977 ms, Guest tier 0 vs 8 onebit entries without/with the engine binary.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@bong-water-water-bong bong-water-water-bong added the hw-gate Run the HRX hardware gate on Strix Halo (docs/hw-gate.md) label Oct 23, 2026
@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
bong-water-water-bong merged commit b51c2e8 into main Oct 23, 2026
9 of 10 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the bump-lemonade/27abcc24da99 branch October 23, 2026 08:46
bong-water-water-bong pushed a commit that referenced this pull request Oct 23, 2026
…he new server reads it

On the Lemonade this image now carries (fork main after the #3771 server refactor), a top-level
"onebit_backend" in user_models.json is not read. Measured with a wrapper around the engine binary:
lemond passed `serve -m <dir> --port 8001 --device auto --alias ... --ctx-size 32768` for a register
that carried "onebit_backend": "npu", so the directory only reached the NPU because the engine's own
routing recognised a .q4nx set. The catalog's NPU entries carry the option as
recipe_options.onebit_backend, and that is what the server reads, so register the stick's directories
the same way.

Also notes in the comment that Lemonade's own catalog carries the three NPU entries by name
(Qwen3-{0.6B,1.7B,4B}-NPU-1bit): they list from the image, and this registration makes the copy on the
stick loadable without the Hub.

Verified on the merged server separately (fork PR #21): with the option honoured the load reports
`1bit unified: loading ... on the NPU`, ready in 977 ms, and the chat answers `NPU OK.` at 52.8-69.0 tok/s
(90 W cap, PCM pad (23 Oct)). Image-level VMTEST follows once engine #520 (the pin bump) merges.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
bong-water-water-bong added a commit that referenced this pull request Oct 23, 2026
…y so the way the server reads it (#523)

* os image: an NPU model directory says so in recipe_options, the way the new server reads it

On the Lemonade this image now carries (fork main after the #3771 server refactor), a top-level
"onebit_backend" in user_models.json is not read. Measured with a wrapper around the engine binary:
lemond passed `serve -m <dir> --port 8001 --device auto --alias ... --ctx-size 32768` for a register
that carried "onebit_backend": "npu", so the directory only reached the NPU because the engine's own
routing recognised a .q4nx set. The catalog's NPU entries carry the option as
recipe_options.onebit_backend, and that is what the server reads, so register the stick's directories
the same way.

Also notes in the comment that Lemonade's own catalog carries the three NPU entries by name
(Qwen3-{0.6B,1.7B,4B}-NPU-1bit): they list from the image, and this registration makes the copy on the
stick loadable without the Hub.

Verified on the merged server separately (fork PR #21): with the option honoured the load reports
`1bit unified: loading ... on the NPU`, ready in 977 ms, and the chat answers `NPU OK.` at 52.8-69.0 tok/s
(90 W cap, PCM pad (23 Oct)). Image-level VMTEST follows once engine #520 (the pin bump) merges.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* os vmtest: prove what the image is for - live banner, self-test, the NPU names, the guest tier

The VM test checked that the appliance boots and that Lemonade serves; it did not check the four things
this image exists to do, so a regression in any of them could ship green.

Added, in the order the owner meets them:
  * the LIVE banner reaches the console (the serial line is the VM's screen - a blank screen is what made
    the real appliance look dead);
  * `1bit-selftest` runs from the image and reports the LIVE mode; the VM has no Radeon GPU and no XDNA
    NPU, so the NPU line is reported as it comes out rather than required to pass - the NPU PASS belongs
    to the real boot;
  * Lemonade lists the three catalog NPU entries by name (Qwen3-{0.6B,1.7B,4B}-NPU-1bit). Listing only:
    the NPU cannot run under QEMU, and the check says so;
  * the Guest tier still behaves as upstream v2026.43.3 defines it: with the engine binary moved aside,
    a second lemond reports 0 onebit entries, and the binary is put back afterwards.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* os vmtest: check the live banner and the NPU catalog where they can actually be seen

Two of the assertions I added were wrong, and the first VM run said so:

  * "the live banner reaches the console" matched grub's own menu line ("1bit OS v2026.43 ..."), not
    init's banner - grub says "1bit OS" too. It now matches init's live-mode line ("LIVE. You are root,
    on RAM"), which say() writes to /dev/console (this serial line in the VM) and to tty1, and it falls
    back to the /etc/1bit/live marker rather than passing on the wrong line.
  * "Lemonade lists the three NPU entries" cannot pass under QEMU: this Lemonade hides every onebit model
    when the machine has no AMD GPU and no NPU - the stick's own onebit register answered model_not_found
    in the VM, not just the catalog entries. The check now reads the IMAGE's own catalog
    (/opt/lemonade/bin/resources/server_models.json) for the three names and for
    recipe_options.onebit_backend: npu, which is what "carries them by name" actually means, and prints a
    line saying why the listing cannot show them here.

The rest of the run was good: SSH, the data partition, the HRX JIT cache, Lemonade's backends on the stick
(11 of them, no download), the API key refusing an unauthenticated request, a CPU chat answering "Paris.",
and the Guest tier reporting 0 onebit entries with the engine binary moved aside.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* os vmtest: match init's own live line, and read the catalog option the way the file spells it

Two leftovers from the previous commit, both caught by running it:

  * the banner check looked for a string that only ever goes to tty1, so it could not see it over the
    serial console. init's menu banner - "1bit OS v2026.43 - LIVE: runs from RAM, nothing is installed,
    disks are never touched", written through mc() to /dev/console and tty1 - is the line that actually
    appears on the VM's screen.
  * the recipe_options check used a case pattern whose quoting did not survive into the script, so it
    failed against a catalog that does carry "recipe_options": {"onebit_backend": "npu"}. It greps the
    catalog text now.

VMTEST PASS on the pinned Lemonade (27abcc24), 90 W cap, PCM pad (23 Oct):
  SSH up 27 s after a UEFI boot from the USB image; web app HTTP 200 text/html (the prefix now builds it
  with the nvm node); KaTeX font 200 woff2; 401 without the key; the stick's GGUF lists and answers
  "Paris." on llamacpp:vulkan; 0 downloads (the backends came from the stick); the live banner is on the
  console; 1bit-selftest runs and reports the LIVE mode, with the NPU line reported as FAIL because QEMU
  has no NPU (the NPU PASS is the real boot's); the image's catalog carries Qwen3-{0.6B,1.7B,4B}-NPU-1bit
  with recipe_options.onebit_backend: npu; the Guest tier reports 0 onebit entries with the engine hidden.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hw-gate Run the HRX hardware gate on Strix Halo (docs/hw-gate.md) Review effort 1/5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant