Repository navigation
Lemonade zinc backend: GGUF through the engine's own ZINC build - #15
Merged
Merged
Conversation
Local Lemonade delta 7 (third_party/lemonade/UPSTREAM.md): recipe `zinc`. load() spawns `zinc -m <gguf> -p <port> -c <ctx>` (RADV_PERFTEST=coop_matrix unless set) and waits on /health; requests go out without `model` (zinc rejects any id but its own) and replies carry the Lemonade name. GGUF download/resolution reuse llamacpp's ops. Qwen3-0.6B-ZINC = unsloth/Qwen3-0.6B-GGUF:Q4_K_M. -DONEBIT_ZINC=ON [-DONEBIT_ZINC_BACKEND=vulkan|rocm|cuda] builds zinc with scripts/build-zinc.sh and `1bit lemonade` defaults zinc.zinc_bin to it. Strix Halo: tests/zinc_lemonade_e2e.sh PASS (pulled, "Paris." under the Lemonade name, served by this build's zinc, streaming); ctest npu_full_elf_md5 and smoke_lemonade pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Sep 23, 2026
…nt (#14) * ZINC: pin upstream zolotukhin/zinc, build it privately, keep it current third_party/zinc = upstream main c50b4add (2026-09-23). ZINC is a Zig GGUF engine with Vulkan, ROCm, CUDA and Metal backends; its CUDA backend is the engine's route to NVIDIA GPUs (sm_89, sm_120). - scripts/build-zinc.sh <prefix> [vulkan|rocm|cuda]: fetches the Zig release zinc's build.zig.zon names (0.15.2), sha256-checked against ziglang.org, and builds into <prefix>/<backend>; caches stay out of the submodule. - .github/workflows/bump-zinc.yml: daily; opens a PR when upstream moves. - docs/zinc.md, docs/PORTING.md step 6. Strix Halo: vulkan builds and runs Qwen3-0.6B Q4_K_M to 12095 (" Paris"), 295 tok/s decode; rocm builds and links ROCm 7 (its forward pass is Qwen3.5/3.6-only); cuda needs an NVIDIA box. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Lemonade zinc backend: GGUF through the engine's own ZINC build (#15) Local Lemonade delta 7 (third_party/lemonade/UPSTREAM.md): recipe `zinc`. load() spawns `zinc -m <gguf> -p <port> -c <ctx>` (RADV_PERFTEST=coop_matrix unless set) and waits on /health; requests go out without `model` (zinc rejects any id but its own) and replies carry the Lemonade name. GGUF download/resolution reuse llamacpp's ops. Qwen3-0.6B-ZINC = unsloth/Qwen3-0.6B-GGUF:Q4_K_M. -DONEBIT_ZINC=ON [-DONEBIT_ZINC_BACKEND=vulkan|rocm|cuda] builds zinc with scripts/build-zinc.sh and `1bit lemonade` defaults zinc.zinc_bin to it. Strix Halo: tests/zinc_lemonade_e2e.sh PASS (pulled, "Paris." under the Lemonade name, served by this build's zinc, streaming); ctest npu_full_elf_md5 and smoke_lemonade pass. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Sep 23, 2026
bong-water-water-bong
added a commit
that referenced
this pull request
Sep 26, 2026
…ONSTER/llama.cpp #15) (#130) ZAYA's CCA conv input was transposed across every sequence of a ubatch, so with more than one sequence (llama-perplexity's default batching, `1bit serve --parallel`) channels and sequences mixed: ZAYA1-8B F16 perplexity went 27.89 -> 58,258 with four sequences per batch. #15 splits the sequences before transposing; one sequence is unchanged. registry/ architectures.json regenerated for the pin. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Sep 26, 2026
… fix (llama.cpp #15) Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Sep 26, 2026
… fix (llama.cpp #15) (#131) Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Oct 7, 2026
bong-water-water-bong
pushed a commit
that referenced
this pull request
Oct 13, 2026
…iet cell not quiet While 315lout2 was still running, its side-processes were counted: 4 live evictonly forcers (up from 2 twenty minutes earlier), 2 CPU-pressure workers, load 5.04, tctl 75.9C. The oldest forcer's elapsed time places its start BEFORE 315lout2 began, i.e. left over from the previous session - so during lout2's arms at least one foreign forcer was applying forced KFD eviction to EVERY cell, and the count grew because each arm spawns a forcer and teardown does not always reap it. Why it matters: the cells are defined by their pressure and the arm's cell letter is the label for which condition it ran under, so with an orphaned forcer alive an arm labelled q is NOT a quiet arm. The rig's gating cannot catch it because it measures thermal and load state, not what the side-processes are doing. This is the second instance of one family: defect #10 was an orphaned neighbour found already running and counted toward the target GTT, and #15 is orphaned forcers whose cell semantics are not recorded - both are a leftover from a previous run silently changing the meaning of a later run's label. Consequence: the Face-B amplifier claim of 6 of 6 arms as Face B 'in all three cells' is QUALIFIED and the all-three-cells part withdrawn. What survives is that the configuration faults as Face B at req=1-11, repeatedly, in regime (gtt_start=98G), which is what makes it a cheap fix-testing tool. What does not survive is that it does so without eviction - and given the campaign's recorded eviction trigger that distinction is the whole point. The qualification is recorded in place in the amplifier file's own terms. Operational fix recorded: kill by process family in a SCRIPT FILE before and after every session and assert the count is zero before trusting the composition, because patterns on a command line are matched by their own pgrep/pkill - a trap that cost this session three incidents, two of them killing my own SSH session.
bong-water-water-bong
pushed a commit
that referenced
this pull request
Oct 13, 2026
Chasing defect #15 turned up a second operability problem. The frozen rig gates every arm on load1 < 4 (315-disc.sh:91), and against the current tenancy that threshold is unreachable: loadavg sits at 4.72 with tctl at 44.5C while our own side-processes are verified at zero (evictonly=0, CPU workers=0) and GTT is at 26GiB, i.e. the box is as quiet as we can make it and the gate still refuses. The load is other agents' workloads - clickhouse, redis, dockerd, node. Two consequences. First, a run can stall indefinitely without failing: a swap script of mine sat in exactly this loop with every one of our preconditions satisfied, and only a self-imposed iteration cap let it proceed, while the rig's own gate has no such cap - and an arm that never starts is indistinguishable from outside from an arm that ran and produced nothing, the same ambiguity this campaign has hit twice before in defect #13's inert EXTRA_ENV and #14's NANONLY sweep that could not distinguish clean from not-run. Second, the gate is a property of the original tenancy: load1 < 4 and tctl < 80 were calibrated for a box this campaign had to itself, so with other agents running servers and CPU work the gate measures THEIR load and silently changes what in-regime means for our arms - not the GTT regime itself, since arms carry their own gtt_start, but the ambient condition the campaign has treated as constant, which is the baseline against which section 39's inducing effect and the whole ambient-vs-forced comparison are drawn. Not resolved here: the honest statement is that this campaign's ambient baseline and its arm-starts are now conditional on a box it no longer exclusively owns, and no arm in this record was tagged with the foreign load present when it ran. The rig's newer 'resident_inventory (foreign, not ours)' line is a step toward recording that and should be read as required context for any arm from this session onward.
bong-water-water-bong
pushed a commit
that referenced
this pull request
Oct 20, 2026
… the squash merges of the one-hop branches Same trees as 680933de1 and 23972095, which the hw-gate run on this PR tested. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Oct 20, 2026
…erver directly (#475) * serve --print-backend: one hop from Lemonade for GGUF models A chat request through Lemonade went lemond -> 1bit serve -> llama-server: two HTTP hops and three processes. `1bit serve ... --print-backend` makes every check serve makes before a load (architecture, memory admission, placement flags, recipes, the HRX environment) and prints the llama-server it would start, on the port the caller passed, as one JSON line, then exits: 0 printed, 3 does not fit, 5 the route needs serve in the request path (NPU directory or --device npu, onnx, ds4, --pm, --laya, --embed/--rerank). Lemonade's onebit recipe (fork branch 1bit/one-hop) starts that llama-server itself and forwards to it directly. The plan adds --alias (Lemonade's name) and, for chat models, --cache-reuse 256 unless a recipe set it; env lists only variables the caller's environment does not already set, so a user value still wins as under serve. What serve did on the request path moves into the backend: - llama.cpp pin 680933de1 (fork branch 1bit/one-hop, on #111): /health answers 503 while the main loop is stalled with work queued, so Lemonade's BackendWatchdog probe resets a hung GPU, and llama-server exits on a lost GPU (serve's #466 signal); - --strict-device stays GGML_HRX_STRICT in the backend. third_party/lemonade pins the fork's 1bit/one-hop commit 23972095. registry/architectures.json regenerated for the new llama.cpp pin. Test: tests/print_backend.sh (ctest print_backend, no GPU): the JSON plan, port, alias, --cache-reuse, ctx, the embedding role, exit 5 for NPU/--pm/--embed, exit 3 for a model that does not fit, nothing started. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs/serve.md: one hop measured on Strix Halo; tools/onehop_bench.py tools/onehop_bench.py starts a private lemond (own cache/config dirs and port), loads one onebit model on HRX and measures load time, /tokenize and a 1-token chat via Lemonade and direct, time to first token, and (one-hop arm) a pinned reload beside a second model and an unload + load. Qwen3-4B-Instruct-2507 Q4_K_M on hrx, six rounds per arm, same llama-server for both: the serve hop cost about 0.2 ms a request (/tokenize 0.53-0.64 ms -> 0.36-0.39 ms via Lemonade, 0.11-0.15 ms direct); load 1.62 s -> 1.35-1.56 s; chat and time to first token unchanged within noise. A pinned reload keeps the same llama-server and its warm program cache (seen length 106-119 ms); an unload + load starts cold (228-236 ms). Co-Authored-By: Claude Opus 5.5 <[email protected]> * Pin llama.cpp 3c24f910f (fork #112) and lemonade 80064ba7 (fork #15): the squash merges of the one-hop branches Same trees as 680933de1 and 23972095, which the hw-gate run on this PR tested. Co-Authored-By: Claude Opus 5.5 <[email protected]> * registry: regenerated at llama.cpp 3c24f910f Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Oct 21, 2026
…gpu-kernels #15) Fixes this PR's first hw-gate run (ops 663/680, SOFT_MAX with sinks). Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Oct 21, 2026
…ftmax sinks decline (#15), startup ABI check (#16) Closes the census: 43 of 43 runnable cells with 0 nodes off HRX. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Oct 21, 2026
…ftmax sinks decline (#15), startup ABI check (#16) (#481) Closes the census: 43 of 43 runnable cells with 0 nodes off HRX. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Oct 22, 2026
…res sealed kernels - scripts/weekly.sh: WEEKLY_NPU_KERNELS defaults to 1 (the npu gate phase passed on Strix Halo: oracle/greedy64/prefill/reproducible PASS, 90.33 tok/s against a 60 floor, release build, embedded key). WEEKLY_NPU_KERNELS=0 builds a package without them. - scripts/lemond-onebit.sh: exports ONEBIT_KCRYPT_REQUIRE_SEALED=1 unconditionally, no opt-out; the release 1bit refuses plain kernel sets on its own as well. - package_checks: with the kernels on, the engine tarball must carry the three sets (Qwen3-0.6B, 1.7B, 4B); lemonade_package_checks: lemond-onebit must export the variable. Unit-checked on synthetic packages (3 sets ok / 1 set FAIL; export ok / missing FAIL). - config/npu-kernels.config: npu-kernels npu/kernel-cache-key (#15, kernel cache keyed by kernel inputs); moves to #15's merge commit once it lands. - docs/releases.md: the release carries the kernels. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This was referenced Oct 22, 2026
bong-water-water-bong
added a commit
that referenced
this pull request
Oct 22, 2026
…res sealed kernels (#509) - scripts/weekly.sh: WEEKLY_NPU_KERNELS defaults to 1 (the npu gate phase passed on Strix Halo: oracle/greedy64/prefill/reproducible PASS, 90.33 tok/s against a 60 floor, release build, embedded key). WEEKLY_NPU_KERNELS=0 builds a package without them. - scripts/lemond-onebit.sh: exports ONEBIT_KCRYPT_REQUIRE_SEALED=1 unconditionally, no opt-out; the release 1bit refuses plain kernel sets on its own as well. - package_checks: with the kernels on, the engine tarball must carry the three sets (Qwen3-0.6B, 1.7B, 4B); lemonade_package_checks: lemond-onebit must export the variable. Unit-checked on synthetic packages (3 sets ok / 1 set FAIL; export ok / missing FAIL). - config/npu-kernels.config: npu-kernels npu/kernel-cache-key (#15, kernel cache keyed by kernel inputs); moves to #15's merge commit once it lands. - docs/releases.md: the release carries the kernels. (cherry picked from commit 4e778cd) Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 13, 2026
…ed verdict does not
Review of this tool found both halves, and both are right:
1. **The comments channel was missing.** Only `pulls/{n}/reviews` was fetched, so a `VERDICT:` line posted as an
issue comment read as no verdict at all -- and that is where most lanes put theirs. Now both channels are merged
into the one list `reviewed_at` asks about, each paginated.
2. **The token alone is not a verdict.** `no VERDICT at abc1234 yet` contains both the word and the sha and means the
opposite; the old `'VERDICT' in body` accepted it. A verdict now has to START a line (`VERDICT_LINE`, allowing
markdown decoration before it), which is how the lanes actually write them.
The arm this tool shipped with was too weak to catch (2) -- *"I read abc1234 carefully"* has no VERDICT token at all,
so it passes even with the broken matcher. Two arms now pin the real shapes: the disclaiming sentence is **not** a
verdict, and `**VERDICT: READY** `abc1234`` still is. Reverting the matcher fails 2 arms.
**Honest about the evidence:** the review named four PRs as comment-only verdicts (llama.cpp#280, site#17/#16/#15).
I re-measured all four: each has reviews **and** comment verdicts, so the reviews channel already answered there, and
sweeping all 15 open PRs across the six repos finds **0** where the two channels disagree today. So this is a
robustness fix, not a live miscount -- the tool was right by accident on today`'s queue, and would have been wrong on
the next lane that only comments. Self-test ok, ctest pr_review_queue_selftest Passed, copyright rc 0.
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 13, 2026
…heir CURRENT head (#2322) * tools/ci/pr_review_queue.py: which open PRs still need a verdict at their CURRENT head I have hand-rolled this query in bash roughly sixty times tonight, and it was wrong at least twice in ways that matter: * `gh api` defaults to `per_page=30`. `engine#2183` has **30 reviews**, so the newest ones were off the page: my scan reported it unverdicted at a head I had already verdicted, and I nearly said on the record that the verdict was never given. (`engine#333` was the same story from the other side: verdicted while I was looking.) * A review is a claim about a HEAD. The question is not "has this PR been reviewed" but "does any review name the head it has now", and a PR that moved since its verdict is back in the queue -- which is what the 7-hex head in a verdict line is for. pr_review_queue.py the fleet's six repos pr_review_queue.py --repos engine a subset pr_review_queue.py --min-age-hours 1 only past the 1 h gate Both list endpoints page until exhausted. Merged and draft PRs are out of the queue by definition: a draft is not asking for a verdict, and a merged PR cannot take one. Split so it can be tested without the network: `reviewed_at(reviews, head)` is a pure function over the JSON, and six arms pin the cases that decide the answer -- a verdict naming the head counts; a longer sha of the same head counts; a verdict at a DIFFERENT head does not (the case the queue exists for); a review with no verdict line does not; a null body does not raise; and **CHANGES is a verdict** (the PR was reviewed, the answer was no). Live run on this tree, which disagreed with my hand scan and was right: gpu-kernels #71 0.40h head=8bf40b9 hip-hrx: keep dense prefill and small-batch K-quant ... pr_review_queue: 1 open PR(s) with no verdict at their current head Only the self-test is registered as a ctest row: the live mode needs `gh` and the network, which a row must not. `ctest -R pr_review_queue` -> Passed 0.06 s; `copyright --check` rc 0; `ci_targets_check --check` rc 0. * pr_review_queue: arm the VERDICT guard, which the first six arms did not pin Removing `if 'VERDICT' in body and head in body:` to plain `if head in body:` left `--self-test` at **rc 0**: every arm passed a body that contained BOTH the word and the head, so none of them could tell the guard from the comparison. The shape that separates them is the common one — a reviewer comment that quotes the sha it looked at: 'I read abc1234 carefully and it looks fine to me' -> not a verdict That is now an arm, and with it the same mutation is caught: FAIL a comment that NAMES the head but is not a verdict does not count: want False, got True Seven arms. This is the same defect I have been flagging in other lanes' PRs all night (an arm that tests the easy direction), found in my own tool by mutating it rather than trusting it. * pr_review_queue: a verdict posted as a COMMENT counts, and a disclaimed verdict does not Review of this tool found both halves, and both are right: 1. **The comments channel was missing.** Only `pulls/{n}/reviews` was fetched, so a `VERDICT:` line posted as an issue comment read as no verdict at all -- and that is where most lanes put theirs. Now both channels are merged into the one list `reviewed_at` asks about, each paginated. 2. **The token alone is not a verdict.** `no VERDICT at abc1234 yet` contains both the word and the sha and means the opposite; the old `'VERDICT' in body` accepted it. A verdict now has to START a line (`VERDICT_LINE`, allowing markdown decoration before it), which is how the lanes actually write them. The arm this tool shipped with was too weak to catch (2) -- *"I read abc1234 carefully"* has no VERDICT token at all, so it passes even with the broken matcher. Two arms now pin the real shapes: the disclaiming sentence is **not** a verdict, and `**VERDICT: READY** `abc1234`` still is. Reverting the matcher fails 2 arms. **Honest about the evidence:** the review named four PRs as comment-only verdicts (llama.cpp#280, site#17/#16/#15). I re-measured all four: each has reviews **and** comment verdicts, so the reviews channel already answered there, and sweeping all 15 open PRs across the six repos finds **0** where the two channels disagree today. So this is a robustness fix, not a live miscount -- the tool was right by accident on today`'s queue, and would have been wrong on the next lane that only comments. Self-test ok, ctest pr_review_queue_selftest Passed, copyright rc 0. --------- Co-authored-by: lane <lane@local> Co-authored-by: bong-water-water-bong <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #14. Adds the
zincLemonade recipe (local delta 7), so1bit lemonadeserves GGUF models through the pinned ZINC. WithONEBIT_ZINC_BACKEND=cudathat includes NVIDIA GPUs.load()runszinc -m <gguf> -p <port> -c <ctx>and waits on/health. It setsRADV_PERFTEST=coop_matrixunless you already set it.model, because zinc rejects any id except its own. Replies carry the Lemonade name back.Qwen3-0.6B-ZINC=unsloth/Qwen3-0.6B-GGUF:Q4_K_M.-DONEBIT_ZINC=ONbuilds zinc viascripts/build-zinc.sh, and1bit lemonadepointszinc.zinc_binat that binary unless you set it.Verified on Strix Halo
tests/zinc_lemonade_e2e.shPASS: pulled; answered "Paris." underQwen3-0.6B-ZINC; served by this build's zinc; streaming works.npu_full_elf_md5andsmoke_lemonadestill pass./statsshows 0 tok/s for zinc, because zinc's replies have notimingsblock.🤖 Generated with Claude Code