Repository navigation
docs/lemonade: how to check that the save-area trio reaches Lemonade's backend (engine#715, #816) - #825
Conversation
…s backend (engine#715, #816) The trio is only in serve's printed plan, so a grep on --print-backend-env is the whole check. Both packages on the box today print 0, for two different reasons: rc-2026-10-31c predates #794/#813 (its log still says the placement is unchanged) and rc-2026-11-01b exports the trio into serve's own environment before building the plan, which is what #816 fixes.
PR Reviewer Guide 🔍(Review updated until commit 7d8e9c1)Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at 5b49957e — docs only (+18/−0, docs/lemonade.md), and the two rows the doc actually measured
reproduce here; the third is labelled as the tests' assertion, which I also made bite.
Ran the doc's own command against the two packages on the box (/dev/sda and the GPU untouched; --print-backend-env
starts no backend):
env -u HSA_USE_SVM -u HSA_USERPTR_FOR_PAGED_MEM -u HRX_ALLOW_NO_SVM \
<pkg>/1bit/1bit serve -m Qwen3-0.6B-Q4_K_M.gguf --device hrx --print-backend-env | grep -c '^HRX_ALLOW_NO_SVM=1'
lemonade-onebit-rc-2026-10-31c (c18) 0 stderr: "HRX: CWSR is off; CWSR save-area placement unchanged (engine#315)"
lemonade-onebit-rc-2026-11-01b (c20) 0 stderr: "HRX: CWSR save area placed in GTT by default (engine#315; amdgpu cwsr_enable=0; …)"
Both stderr lines are the ones the PR quotes, and grep -cE '^(HSA_USE_SVM=0|HSA_USERPTR_FOR_PAGED_MEM=0|HRX_ALLOW_NO_SVM=1)$'
is 0 on both, so the doc's "0 means the trio is missing" reads correctly for a reader who checks all three names.
The third row ("a build from main ≥ 4c846a3b prints 1") I could not run: no ONEBIT_HRX=ON build of current main
exists on this box (~/.local/share/1bit-* are all pre-#816 or non-HRX, all print 0). It is the assertion at
tests/print_backend.sh:131/:137, and I did run that harness against the c20 package: 36 ok / 3 FAIL, rc 1, the
three failures being exactly "the save-area trio is in env", "the trio as NAME=VALUE lines", "a trio value the caller set
is left out, the other two still arrive". So the row the doc rests on is the row that bites when the trio is absent, which
is the right place to leave it for a docs PR.
One thing to know rather than fix: .github/workflows/ci.yml sets no ONEBIT_HRX, so in cpp-ci those three rows take
the "this build's hrx-system has no HRX_ALLOW_NO_SVM gate" note path (tests/print_backend.sh:125-128) and are not
asserted there; they first assert for real in a release build's ctest with ONEBIT_HRX=ON — which is what the PR body
says, so the doc is not overclaiming, but "both are in cpp-ci" should not be read as coverage of the trio.
Nit, non-blocking: the body's table gives 3 for "trio in the plan" on the fixed row while the doc's check counts 1
line (^HRX_ALLOW_NO_SVM=1); both are right for what each measures, but a reader comparing them will pause.
CI at this head: build pass 5m18s, CodeQL pass, all four Analyze pass, pr_agent pass, hw_gate skipped. The
branch is behind main (#818/#821); docs only, no overlap, so that is a merge, not a rebase.
|
Persistent review updated to latest commit be00d1d |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at be00d1d2a — the re-head carries the reviewed content unchanged; own diff is still
docs/lemonade.md +18/-0 and the file is byte-identical (git rev-parse be00d1d2a:docs/lemonade.md == 5b49957e1:...).
Evidence from the review at 5b49957e1 therefore stands, and it was measurement, not reading: the doc's own command on
the two packages on this box prints 0 for both — c18 with "HRX: CWSR is off; CWSR save-area placement unchanged
(engine#315)", c20 with "HRX: CWSR save area placed in GTT by default …" — and tests/print_backend.sh against the c20
package gives 36 ok / 3 FAIL, exactly the trio rows the doc is about. The third row is labelled in the doc as the
tests' assertion, which is what it is.
CI at this head: build pass 5m25s, pr_agent pass, CodeQL and all four Analyze pass. tprs-ready applied.
|
Persistent review updated to latest commit eac232d |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at eac232dda — own diff unchanged (docs/lemonade.md, +18/−0) and the file byte-identical to
5b49957e1, so the measurement-based evidence from that review stands: the doc's own command prints 0 on both c18 and
c20 here (with the two distinct serve stderr lines the post quotes), and tests/print_backend.sh against the c20 package
is 36 ok / 3 FAIL, exactly the trio rows the doc exists to make visible.
build pass 5m20s, pr_agent pass, CodeQL + all four Analyze pass at this head. tprs-ready is on.
|
Persistent review updated to latest commit 56e2d33 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at 56e2d3397 — re-head only, docs/lemonade.md +18/−0 byte-identical to the reviewed content, and the doc's command still prints 0 on c18 and c20 here with print_backend.sh on c20 at 36 ok / 3 FAIL (the trio rows); build green here. tprs-ready on.
|
Persistent review updated to latest commit 7d8e9c1 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at 7d8e9c147 — re-head only: docs/lemonade.md +18/−0, byte-identical to the reviewed content; the doc's command prints 0 on c18 and c20 here and print_backend.sh on c20 is 36 ok / 3 FAIL (exactly the trio rows). build green. tprs-ready on.
What
docs/lemonade.md, the Ubuntu 26.04 / PPA section: after the paragraph that lists what1bit serve --print-backend-envprints, a short block on the one env name a released package canstill be missing — the save-area trio — and the one-line check for it.
Why it belongs in the doc
The trio reaches Lemonade's backend only through that printed plan: the package's
lemond-onebitlauncher does not export it,lemondcannot pass--hrx-cwsr-placement, andscripts/lemonade-hrxexecsllama-serveron the printed env. So "the engine sets the no-SVMtrio" is a property of the package, verifiable in one command, and it was false for every
package shipped before #816 (merged as
4c846a3b) without a single warning line saying so.Numbers, measured on Strix Halo today with the trio unset in the shell
lemonade-onebit-rc-2026-10-31c(c18)lemonade-onebit-rc-2026-11-01b(c20)main≥4c846a3btests/print_backend.shandtests/lemonade_hrx.sh(both incpp-ci, and both in the release build's ctest, which is where they first run withONEBIT_HRX=ON)No claim is made here about a binary this box cannot build: the third row is what #816's tests
assert, not a run of mine. The two measured rows are the ones a packaging lane will hit, and the
reason the check is worth having in the doc instead of in a review thread.
Scope
Docs only, one file, +18/−0. No code, no test, no pin.
docs/lemonade.mdis the file this laneowns (#730, #762) and no open PR touches it.