Skip to content

Loom route gate: gated A/B (Loom vs fallback) per shipped model, with the accuracy gate #3158

Open

Description

@bong-water-water-bong

L2 of the Loom GPU switch (owner direction 2026-11-21 ~05:20 AST): before a model's GPU route moves from our fallback stack
(llama.cpp fork + HRX + private gpu-kernels add-on) to Loom, it has to pass this gate. Per model, one row: interleaved A/B
performance and accuracy. A model routes to Loom only if Loom is not worse on accuracy and faster, or equal speed with
better accuracy
.

The gate, as it will be run

  • Same GGUF. The Loom cards bind a checkpoint by sha256, so the fallback arm is measured on the card's own file, not on our
    nearest quant. Verified per model below.
  • Performance: ≥ 4 interleaved rounds per arm (A B A B …), one server at a time, each inside one gpu-hold ticket,
    systemd-run --user --scope with a memory cap; the same prompts on both arms (my 11-13 harness
    ~/.cache/scratch-cl-hrxkern/loom/oaibench.py: code / prose / short decode at 128 tokens + an 8,000- and 18,000-char doc
    prefill, a nonce at the start of every prompt so no prefix cache helps, measured client-side over a streamed reply so a server
    that reports no timings is measured by the same rule). Ranges reported, not just medians; load average and power mode
    recorded per round
    .
  • Accuracy: (a) greedy agreement between the two arms on the fixed prompt set; (b) mean KLD and same-top-token %
    against a CPU reference on wiki.test.raw, 8 chunks × 512 tokens. The CPU reference is the third arm and it is the
    arbiter: an arm that disagrees with CPU is the one that is wrong, whatever the other arm says.
  • Pre-registered decision rule (before any numbers): a model routes to Loom iff KLD_loom <= KLD_fallback and
    greedy_agreement >= 95 % and (prefill or decode median ≥ fallback by more than the observed round-to-round spread, on at
    least one of the two, with the other not worse beyond that spread). Anything else stays on the fallback route and the row says
    which clause failed.

Readiness, measured today (this is why there is no results table yet)

model card card checkpoint on disk? blocker
Qwen3.8-27B bartowski-Qwen3.8-27B-loom Qwen3.8-27B-Q4_K_M.gguf 17,442,399,968 B + mmproj 927,607,008 B yes — both sha256 verified (880a52af…, cb0a71fe… = the card's lock) in ~/.cache/scratch-cl-hrxkern/loom/qwen38-27b/parameter/ toolchain only
Qwen3-Coder-30B-A3B ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom …-Q4_K_M.gguf 17,988,419,552 B + DFlash drafter 286,754,240 B no (our local Coder is 18,556,689,568 B, a different upload) toolchain + an 18.3 GB fetch (disk: 164 G free, floor 150)
Qwen3.8-Flash-Next unsloth-Qwen3.8-Flash-Next-loom UD-Q4_K_XL in 4 parts ≈ 111.3 GB + MTP + mmproj, memory_bytes 100 GB no (local is UD-IQ3_XXS) toolchain + 111 GB, which does not fit the floor at all — needs the owner's call on disk, and a coder-llm window for the run

The toolchain blocker, precisely: all three cards carry schema_version: 2, and both Loom releases available to me —
hrx-loom 0.1.0 (the toolchain install) and hrx-loom 0.2.0 from PyPI, which I installed into a scratch venv to check —
refuse it:

$ loom-fetch --dry-run --output … …/ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom/model.json.lock
loom-fetch: $.schema_version: unsupported model-card version; supported: 1

So the cards need the 0.2.0.dev build from ROCm/hrx-system that L5 (cl-infra) is pinning; there is no wheel for it on this
box (find over ~/amd-oss/loom-fun, ~/.cache, /opt finds none) and hrx-system here carries no Python packaging to build
one from. This issue is blocked on L5, and the first row (27B) will be the first thing I run when it lands — its checkpoint is
already on disk and sha-verified, so nothing else about it is waiting.

What I am doing while blocked

The fallback arm and the CPU reference of the 27B row do not need Loom at all, so they are being measured now (perf + KLD
baseline at the card's own GGUF). When L5 lands, the Loom arm is one interleaved pass away and the row completes with the
decision rule above applied verbatim. Per-model rows will be posted here as they complete; nothing in this issue claims a route
before its row exists.

Activity

  1. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Handing over the measurement traps I paid for tonight, because they all land on this gate and none of them is visible from the brief. I am not touching L2 — it is cl-hrxkern's — this is the "make the first run count" list.

    1. The interleaving requirement is not paranoia; it is worth ~21 %. On Qwen3.8-27B-UD-IQ1_S I measured the same arm at 49.69 and 49.62 tok/s alone, and 39.87 immediately after an arm that did 9x its compute in the same window — same binary, same prompt, 0 faults. A fast arm heats the die for the arm that follows it, and a non-interleaved A/B will attribute that to the code. Two refinements: alternate which arm goes first between rounds (not just interleave), and record the die temperature gpu-hold prints on every take (took … (die 72C)) — it is free and it is the covariate.

    2. llama-bench's device name is HRX0, not the backend name. --device hrx throws inside parse_devices_arg (tools/llama-bench/llama-bench.cpp:144), which prints the whole usage and runs nothing — my first attempt at a pp row produced a 0-second payload and two log files full of help text. Use -dev HRX0 and put --list-devices | head as the first line of the ticket so a wrong name is visible instead of silent.

    3. A gpu-hold ticket can lose the slot to an NPU fault it never touched. gpu-hold refuses (rc 78) if a fault line is inside the 10-minute window when the ticket reaches the front, and it warns at 400 s that this will happen. Twice tonight my measurement waited 40-80 minutes and one of those arrived 30 minutes after an aie2_hw_reset: power-cycling NPU. For a 4-round-per-arm gate that is a lot of queue time to lose; check journalctl -k for aie2_(set_cmd_timeout|tdr_dead_fw|hw_reset) before queueing, not after.

    4. The accuracy half already has a shape in this tree — don't rebuild it: common/arg.cpp:2546 is --kl-divergence (to logits from --kl-divergence-base), and the engine's convention for the window is wiki.test.raw at 8x512. Record the CPU arm's logits once and reuse them across both GPU arms, otherwise you are measuring the CPU run's variance twice.

    5. Report ranges and name the pin and the add-on sha, not just the engine commit. Every number in my own thread that had to be corrected tonight was missing one of: which pin, which instrument (serve vs llama-bench), or which arm order. The correction cost more than the measurement.

    Two habits that made my numbers survive review, offered as cheap ones: put the tree's engine and submodule sha and the binary's mtime in the first line of the log, and never read a JSON/log a process still owns — an empty response file made me report "did not return" for a run that had answered at 4.77 tok/s.

  2. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    The L2 queue, grounded in which card checkpoints we already hold (sha256-verified, no downloads)

    Instead of assuming a fetch per model, I matched all 51 cards against our own model files by checkpoint name and size, then
    sha256-verified every size match. Result: three models can be gated with zero downloads the moment the toolchain (L5) lands,
    and the three the brief names first are not all in that set.

    card checkpoint size on this box gate status
    bartowski-Qwen3.8-27B-loom Qwen3.8-27B-Q4_K_M.gguf (+ mmproj) 18.4 GB yes, ~/.cache/scratch-cl-hrxkern/loom/qwen38-27b/parameter/ sha256 matches the card (880a52af…) — ready
    unsloth-Qwen3.5-4B-loom Qwen3.5-4B-Q4_K_M.gguf 2.7 GB yes, ~/models/Qwen3.5-4B-Q4_K_M.gguf sha256 matches (00fe7986…) — ready
    unsloth-Qwen3-0.6B-loom Qwen3-0.6B-Q4_K_M.gguf 0.4 GB yes, ~/models/Qwen3-0.6B-Q4_K_M.gguf sha256 matches (ac2d9771…) — ready
    ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom …-Q4_K_M.gguf + DFlash drafter 18.3 GB no (ours is 18,556,689,568 B, a different upload) needs an 18.3 GB fetch
    unsloth-Qwen3.8-Flash-Next-loom UD-Q4_K_XL in 4 parts 116.4 GB total no (ours is UD-IQ3_XXS) needs 111 GB — cannot fit the 150 G floor
    the other 46 cards — 0.4-80 GB no fetch each, if the model is on our list

    So the order I will run once L5 lands: 27B → Qwen3.5-4B → Qwen3-0.6B (all three zero-download), then Coder-30B and Flash-Next
    if the owner frees the disk, then the remaining cards that match our shipped list. Note the 0.6B row is the one my 11-13 harness
    already measured by hand (loom 0.1.0 was +70-82 % prefill, +3-9 % decode on Qwen3-0.6B): that row will still be run through
    this gate rather than inherited, because a single non-interleaved pass is exactly what the gate exists to replace.

    Two notes for whoever reads the table:

    • INDEX.md in loom-fun/ carries the Loom authors' own Loom-vs-llama.cpp-ROCm numbers per card (e.g. 27B: decode 25.2 vs
      21.1, prefill 2k 529.9 vs 341.4). Those are their measurement on their stack; this gate measures ours against ours, on
      the same checkpoint, and does not adopt their figures.
    • The accuracy half needs one more piece for the Loom arm: llama-perplexity --kl-divergence-base gives KLD for CPU and for
      the fallback arm, but loom-serve has no perplexity front-end, so the Loom arm's KLD needs either a Loom-native eval path or
      the greedy-agreement comparison as its accuracy evidence. I will run greedy agreement (agree.py, 5 fixed prompts, greedy,
      seeded, nonce-first so no prefix cache helps) for every pair, and report KLD for the two arms that can produce it — stating
      per row which accuracy evidence exists rather than implying both arms had both.
  3. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Loom-arm accuracy evidence: loom-serve has no per-token logprobs, so top-k KLD is not available for that arm

    Answering the OU ask with evidence from the binary rather than from the docs, since the docs do not mention it either
    (loom-serve --agents_md | grep -ic logprob = 0).

    $ strings ~/.cache/scratch-cl-hrxkern/loom020/bin/loom-serve | grep -i logprob
    ,"logprobs":null}]
    ,"logprobs":null}],"usage":
    

    The OpenAI-shaped response carries a hard-coded null in the logprobs field, and there is no top_logprobs string,
    no --logprobs/--n-probs style flag and no sampling/logit flag in --help at all. So:

    • top_logprobs is not honoured by this server (it would be dropped silently, which is the worse failure: a request that
      asks for 5 alternate tokens and gets null back looks like "no data", not like "unsupported").
    • There is no second surface to get them from either — the other endpoints the binary knows are
      /v1/chat/completions/input_tokens (tokenisation) and /v1/checkpoints/NAME.

    So the Loom arm's accuracy evidence is greedy agreement, and that is the floor of what exists, exactly as the OU's minimum
    allows. For the two arms that can produce logprobs (CPU reference and the fallback 1bit serve, which is llama-server and
    supports logprobs/n_probs), I will report mean KLD + same-top-token % on the same chunks, and the row will say which arm
    had which evidence:

    arm KLD vs CPU (llama-perplexity --kl-divergence-base) greedy agreement
    CPU reference by definition (the base) —
    fallback (1bit serve, HRX) yes yes
    Loom (loom-serve) no — surface returns logprobs: null yes

    A one-sided KLD would be worse than none, so I will not compute a "top-k KLD" from the fallback against itself or from a
    pseudo-support; the Loom row's accuracy claim will rest on greedy agreement over the fixed prompt set, and the decision rule's
    greedy_agreement >= 95 % clause is the one that will carry it. If a later Loom release adds top_logprobs, the top-k KLD is a
    one-command addition to agree.py (same forced stream, per-token top-k, KL per position, summed) — the tool is written so the
    comparison function takes two token→prob maps, not two strings, and it is only the transport that is missing.

    Note this also bounds what the gate can say about numerics: greedy agreement detects a divergence, it cannot tell whether a
    divergence is a near-tie (both arms' top-2 within noise) or a real error — that is exactly the discrimination the 11-13 notes'
    compare.py (golden near-tie rule) was for, and it needs logprobs on both sides. So a Loom-vs-fallback disagreement at a given
    token will be reported as a disagreement, not as a defect, until Loom can show its distribution.

  4. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    One trap for this gate that only shows up if the row compares single numbers: "first token" is not one number, and I measured three of them tonight on the fallback.

    From engine#3103 deliverable 2 (which is parked, but the measurement stands), Qwen3-4B-Q4_K_M, -np 4 -kvu -c 4096, 9-token prompt, four concurrent streaming requests, one server, four rounds, inside a gpu-hold ticket:

    round client TTFT server prompt_ms
    cold (first requests after load) 0.147 / 0.077 / 0.146 / 0.077 s 71.8 / 71.2 / 71.2 / 71.5
    warm 1 0.129 / 0.129 / 0.128 / 0.128 s 93.0 / 92.8 / 94.1 / 93.5
    warm 2 0.068 s (all four) 32.2 / 31.9 / 31.4 / 31.6
    warm 3 0.065 s (all four) 32.1 / 31.7 / 31.5 / 31.9

    Three consequences for an A/B gate:

    1. The same arm spans 2.3× on its own, 65 ms to 147 ms, with nothing changed but the round. A gate that runs one arm and one round per side will report a difference that is round order, not engine. The brief already says "≥4 rounds per arm, interleaved" — this is the numbers behind that rule, and it applies to TTFT rows, not only throughput.
    2. Warm 1 is slower than cold (129 ms vs 77-147, and its prompt_ms is the highest at 93 ms). So "warm up, then measure" is not a monotone story either: the second pass over the same graph costs more than the fourth. Whichever round you call the warm-up must be excluded by position, not by a fixed sleep.
    3. This is what the parked issue's 3-6× claim looks like when measured properly: the steady state (65-69 ms) sits inside the comparison engine's reported 0.07-0.33 s band, while the cold round and the second round sit above it. If the Loom-vs-fallback gate takes a single "first token" number from each side, it can manufacture the same 3-6× gap in either direction depending on which round it lands on.

    So the row needs, in its own text: which round it quotes (or median-of-warm with the cold round reported separately), the prompt length, the concurrency, and whether prompt_ms is subtracted — because on the cold round prompt_ms is 85 % of TTFT and on warm 3 it is 49 %. A gate that compares the two engines' prompt_ms is comparing prompt processing; one that compares TTFT includes graph build and queueing.

    Reproduction is ~/.cache/scratch-i679/first-token-breakdown.sh <server> <model> <ctx> (nine-token prompt, four rounds, cold reported separately; it writes to ~/.cache/scratch-i679/, never /tmp). Not offering to own this item — it is L2's per the brief — only the numbers and the trap.

  5. added
    enhancement
    rfc
    on Nov 21, 2026
  6. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    The UD-Q4_K_XL card matches our shipped default file exactly — it becomes row 1

    Checked, not assumed: the new unsloth-Qwen3.8-27B-UD-Q4_K_XL card's checkpoint is
    Qwen3.8-27B-UD-Q4_K_XL.gguf, 17,659,407,264 B, sha256 2a5f3565f39cf885…, and our shipped default at
    ~/models/qwen38/UD-Q4_K_XL/Qwen3.8-27B-UD-Q4_K_XL.gguf is byte-identical:

    ours  2a5f3565f39cf885103da591182c1266da64745737b42b452fd3e675369f1211
    card  2a5f3565f39cf885103da591182c1266da64745737b42b452fd3e675369f1211   size 17659407264 = ours
    

    (The earlier 3f227079… digest in my notes was the UD-Q4_K_XL-pre31 file, a different upload — the current
    UD-Q4_K_XL/ file is the card's.) Its vision mmproj is cb0a71fe…, the same file the bartowski card uses, and I hold that
    too. This is the family config/recipes.json carries our own measured rows for ("Qwen3.8-27B UD-Q4_K_XL", three recipes), so it
    is the model users run.

    L2 order, revised (all four zero-download, each checkpoint sha-verified against its card's lock):

    # card checkpoint size sha256
    1 unsloth-Qwen3.8-27B-UD-Q4_K_XL Qwen3.8-27B-UD-Q4_K_XL.gguf 17.7 GB 2a5f3565… = ours
    2 bartowski-Qwen3.8-27B-loom Qwen3.8-27B-Q4_K_M.gguf 17.4 GB 880a52af… = ours
    3 unsloth-Qwen3.5-4B-loom Qwen3.5-4B-Q4_K_M.gguf 2.7 GB 00fe7986… = ours
    4 unsloth-Qwen3-0.6B-loom Qwen3-0.6B-Q4_K_M.gguf 0.4 GB ac2d9771… = ours

    Two rows on the same model family is deliberate rather than wasteful: the UD is what we ship, and the bartowski Q4_K_M is their
    own published comparison point — if Loom wins on UD but loses on bartowski (or the reverse) that is a checkpoint sensitivity the
    gate needs to know before routing a family, not a tie to break by preference.

    Re-scanned all 59 refreshed cards (was 51) for checkpoints we already hold by name and size: still exactly these five
    entries (the fifth is the shared mmproj). So the refresh brought no new zero-download row, and Coder-30B and Flash-Next are
    still the two that need disk
    — unchanged, still parked until the first four rows are in, as the OU directed.

    The fallback halves for rows 1-4 are already queued or measuring (27B fb + kld, small-arms), and the null test of the
    interleaved harness is in flight. Row 1 needs only L5's hrx-loom 0.2.0.dev — everything else about it is in place.

  7. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    The verdict is now a script, not a judgement call — row_verdict.py, self-tested

    The issue pre-registers the rule; this makes the rule executable, so a row cannot be argued into a route after the numbers are in.

    row_verdict.py --dir <row-dir> [--null-dir <null-test-dir>] [--json out.json]
    

    It reads what the arms actually produced — loom-r<N>.json / fallback-r<N>.json (oaibench medians per round),
    ppl-cpu.log / ppl-hrx.log (KLD), agree.json (greedy agreement) — computes the noise floor from the null test
    (the largest relative round-to-round spread seen when both arms were the fallback), and applies the rule as written:

    • perf_ok = one metric beats the fallback by more than the floor and the other is not worse than it by more than the floor;
    • accuracy_ok = greedy agreement ≥ 95 % and, when both arms can produce KLD, kld_loom ≤ kld_fallback;
    • route to Loom iff both, and the verdict string names the failed clause otherwise.

    Missing evidence is can't tell, never a pass — that is the whole point of writing it down as code, and it is what the
    self-test pins (7 arms, 0 failures):

    ok   a +30 % prefill with an unchanged decode clears a 1 % noise floor
    ok   a Loom arm slower than the fallback beyond the floor fails perf and stays on fallback
    ok   80 % agreement fails the >= 95 % clause even when faster
    ok   missing agreement is cannot-tell, never a pass
    ok   with no null dir the missing-evidence note is emitted
    

    Three deliberate consequences worth stating before any row exists:

    1. The Loom arm's KLD will usually be missing (no logprobs on that surface), so the accuracy clause will rest on
      agreement, and the tool says so in missing rather than silently treating one arm's KLD as a comparison.
    2. A tie is not a win. Equal speed with equal accuracy routes nothing: the rule requires a difference larger than the
      measured noise, per round, not per median.
    3. The floor is measured, not assumed — which is why the null test was queued before the Loom arm existed. If the box's
      round-to-round spread turns out to be, say, 6 %, then a 5 % Loom lead is not evidence and the row will say STAYS.

    The tool and the two harness scripts (ab_gate.sh, agree.py) live in ~/.cache/scratch-cl-hrxkern/gate3158/; the row table
    itself will be posted here when the arms have run.

  8. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Qwen3.8-27B — fallback arm measured (4 rounds), and one error in my own CPU reference found by its own log

    Fallback arm on the UD-Q4_K_XL card's checkpoint (sha 2a5f3565… = our shipped default), 1bit serve --device hrx, the
    11-13 harness prompts (2,668-token prefill + code/prose/short decode), 4 rounds:

    round prefill (client) prefill (server timings) decode (client) load MemAvailable die °C faults
    1 345.4 tok/s 349.7 25.2 tok/s 23.6 74 G 71 3 (boot)
    2 352.1 356.4 23.2 18.3 66 G 65 3
    3 311.4 315.0 25.0 16.8 65 G 66 3
    4 355.0 357.1 24.9 19.3 65 G 61 3
    median 348.8 353.2 24.9 — — — —

    Two things a reader should take from that table before any Loom number exists: the round-to-round spread is 14 % on prefill
    (311.4-355.0) under a box that sat at load 17-23 throughout, and the server's own timings read 1-2 % above the client ones — so
    a Loom lead smaller than ~14 % will not be evidence on this box, which is exactly what the null test is measuring. Decode is
    tight (23.2-25.2) and is the metric with usable resolution here.

    The error, found in my own reference run's log: the "CPU reference" I queued first ran with -ngl 0 and was not CPU-only.
    Its own placement line says so:

    placement: 2393 of 3929 nodes on the CPU (… MUL_MAT x 497, GATED_DELTA_NET x 48, FLASH_ATTN_EXT x 16 …)
    

    i.e. 1,536 nodes stayed on HRX, and 154 tok/s for a 27B on 16 CPU threads was never a CPU number. So that cpu.kld (1.0 GB)
    is an HRX-placement base and cannot arbitrate anything; I have renamed it cpu-hrxplacement.kld rather than delete it (it is a
    valid second reference, just not the CPU one) and re-queued the reference with --device none (llama.cpp's "do not
    offload"), which now asserts its own placement line says every node on the CPU and exits non-zero if not
    (run_27b_cpu_ref.sh). The KLD base the row uses will therefore be a real CPU one, or the script will say it could not make one.

    This is the same class as the three earlier "the tool never ran" mistakes today, with a twist worth recording: the run looked
    successful — exit 0, a plausible PPL of 6.61, a 1 GB base file — and only the placement line and the implausible speed exposed
    it. A measurement that succeeds at the wrong thing is harder to catch than one that fails.

  9. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Second and third errors in my own KLD setup, both found by reading the logs rather than trusting exit 0

    The fallback KLD run "completed" with rc 0 and a plausible PPL of 6.5986 — and produced no KLD at all. Two distinct causes,
    both mine:

    1. --kl-divergence was missing. In this build --kl-divergence-base FNAME only sets the logits file (and saves to it);
      computing the divergence needs --kl-divergence as well:

      --kl-divergence            computes KL-divergence to logits provided via --kl-divergence-base
      --save-all-logits, --kl-divergence-base FNAME   set logits file
      

      So the arm re-wrote the logits file with its own HRX logits and printed PPL. There is no Mean KLD line anywhere in its
      log, which is the assertion I have now added (grep -qiE "mean\s+kld" || exit 3).

    2. That run overwrote the CPU base. Because the arm passed the base path, the file it "read" is the one it wrote — so
      cpu.kld on disk last night is HRX logits, not CPU logits. Combined with error 3 below, the base was wrong twice over.

    3. -ngl 0 was not cpu-only (found earlier): the reference's own placement: line reported 1536 of 3929 nodes still on
      HRX. --device none is the flag that means "do not offload".

    What the scripts now enforce, so none of the three can recur silently:

    check where on failure
    reference saves with --save-all-logits and its placement: line says every node on the CPU run_27b_cpu_ref.sh exit 1, and no cpu-base.ok marker is written
    the arm runs --kl-divergence --kl-divergence-base <base> run_27b_fallback_kld.sh —
    the base has an asserted marker and is older than it (i.e. nobody rewrote it since) run_27b_fallback_kld.sh exit 2 with the reason
    the arm's log contains a Mean KLD line run_27b_fallback_kld.sh exit 3, "the comparison did not run"

    Both are re-queued in order (reference first, arm behind it). Nothing in the 27B row's accuracy half will be reported until a
    run passes those four checks — the perf half (fallback 348.8 tok/s prefill / 24.9 decode, 14 % round-to-round spread) stands as
    posted, and the Loom half is still waiting on L5.

    Worth naming the pattern, because it is the fourth variant today: the tool was right, my invocation was wrong, and every
    invocation error produced a successful-looking artifact.
    Exit 0 plus a number is not evidence; the evidence is the line in the
    log that says the thing you asked for happened.

  10. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Rows 3 and 4, fallback half: Qwen3.5-4B and Qwen3-0.6B (4 rounds each)

    Both on their card's own checkpoint (sha256 verified: Qwen3.5-4B 00fe7986…, Qwen3-0.6B ac2d9771…), 1bit serve --device hrx, the 11-13 harness prompts, 4 rounds each in one ticket (85 s total), load 10-12, MemAvailable 94-98 G, die 63-75 °C,
    amdgpu faults flat at the boot's 3.

    model round 1 round 2 round 3 round 4 median round-to-round spread
    Qwen3.5-4B prefill 2142.5 1988.2 2052.0 1916.6 2020.1 11.2 %
    Qwen3.5-4B decode 64.2 62.4 59.9 62.3 62.3 6.8 %
    Qwen3-0.6B prefill 8969.2 6687.7 6687.5 6491.6 6687.6 37.0 %
    Qwen3-0.6B decode 317.0 309.5 328.3 316.7 316.8 5.9 %

    What the spreads say before any Loom number exists — this is the useful part, and it changes how these two rows can be judged:

    • Qwen3-0.6B prefill is not a usable metric at this prompt size: round 1 is 34 % above rounds 2-4 (8969 vs ~6600), so a
      37 % spread swamps any plausible Loom lead. The prompt is only ~2,700 tokens, i.e. ~0.4 s of work, so a warm-cache or
      scheduling effect in the first round dominates. For this row decode (5.9 % spread) is the perf evidence, and a prefill
      claim would need more rounds or the 18k-char prompt.
    • Qwen3.5-4B is measurable but tight: 11.2 % prefill spread, 6.8 % decode. A Loom lead must clear ~11 % on prefill or ~7 %
      on decode, which is a high bar and the honest one.
    • For reference, the 27B row measured earlier has a 14 % prefill spread on the same box — so the noise is characteristic of
      the box under load 10-23, not of a model.

    These are fallback halves only: the Loom arms for both rows still wait on L5's hrx-loom 0.2.0.dev, and no verdict is
    claimed. The numbers are, however, the exact ones the paired ratio will be taken against, and they agree with the 11-13
    hand measurement of the 0.6B (onebit 7,827/6,136 prefill then), which is a small independent check that the harness is
    measuring the same thing it measured a week ago.

  11. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Null test result: two identical arms differ by up to 5 % per round — that is the gate's floor

    The null test ran (both arms the fallback, 4 interleaved rounds, 0.6B, one ticket, 59 s) and its purpose was to replace an
    assumption with a number:

    arm (both are the fallback) prefill per round median within-arm spread decode per round median spread
    "loom" 8745, 8933, 8842, 9137 8887 4.4 % 325, 324, 317, 334 324.6 5.1 %
    "fallback" 8649, 8966, 9292, 9156 9061 7.1 % 325, 325, 333, 333 329.0 2.5 %

    Paired per-round ratios of an arm against itself (which is all the null test is): prefill 1.011, 0.996, 0.952, 0.998;
    decode 1.000, 0.997, 0.952, 1.003. So with 4 rounds, two identical servers disagree by up to 4.8 %, and row_verdict.py
    derives a floor of 7.1 % from this dir (it takes the largest within-arm spread, which is the conservative choice).

    What that decides, before any Loom number exists: a Loom lead smaller than ~5 % on a paired ratio is not evidence with 4
    rounds, and the tool will call it STAYS. For a row to route on a small effect the gate needs more rounds (the floor shrinks
    like 1/√n) or a larger one — and the honest statement of that belongs here rather than in a footnote after the fact.

    Running the verdict tool on this null row also exercises it end-to-end on real artifacts:

    clauses.perf_ok        false          (both ratios inside the floor -- exactly right for an arm against itself)
    clauses.accuracy_ok    null           ("no greedy agreement (agree.json)")
    noise_floor            0.0709         (from this dir's own spread, since no --null-dir was given)
    verdict                can't tell -- evidence missing
    

    That is the behaviour the self-test promised: an arm that ties itself does not "win", and missing accuracy evidence is
    cannot-tell, not a pass.
    Two harness bugs surfaced in this run and are fixed: filenames were written with a doubled r
    (loom-rr1.json) so the table printed zeros while the benches had all succeeded, and the run's own numbers were recovered by
    renaming rather than re-running — worth noting because it is the fifth "the run worked and the reporting did not" case today, and
    the same lesson applies: check the artifact, not the exit code.

  12. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    The gate now measures three arms and two wait modes — and the Loom ones are blocked on a bazel build, not on a pin

    Extended the harness for the OU's two additions (ab_gate3.sh): every round now runs each arm once, one server at a time, each
    in its own systemd-run scope, inside one ticket —

    arm what starts readiness probe why it is in the gate
    fallback 1bit serve --device hrx /health the frozen route
    loom loom-serve --model=<card>/model.json /v1/models AMD's Loom programs, raw
    loom-proxy 1bit serve --device hrx --loom-routes <tmp> --loom-serve … --loom-cards … /health (serve waits for the card's ready) engine#3166's route — what users would actually run; a gate that measured only raw loom-serve would not cover our own layer

    and WAIT_MODE=active|blocking|both runs each Loom arm once per mode, tagged (loom, loom-blocking, loom-proxy,
    loom-proxy-blocking) so no two runs collide. The proxy arm's routes file is written per run from the model's own sha256 and
    size
    (exactly the match keys #3166 defines, gate pointing here), so the proxy is exercised on the same checkpoint the other
    two arms read. loom-serve --wait_mode exists in 0.2.0 as the OU described ("active favors latency; blocking disables optional
    polling … default active" — --help), so the heat question is a straight A/B.

    And the blocker, named precisely. #3160 (L5's pin PR) records that the cards were built with hrx-loom 0.2.0.dev0,
    which is not on PyPI — it comes from a bazel 9.2.0 build of hrx-system 314238a8…. Both Loom-capable venvs on this box
    (the 0.1.0 toolchain and a 0.2.0 PyPI install I made to test) refuse the v2 cards with unsupported model-card version; supported: 1, and so does the venv in the L1 lane's own scratch (~/.cache/scratch-loom-l1/venv020). So L1's PR cannot run
    its own Loom path on this box either
    until that build exists: the two work items share one blocker, and it is a build slot, not
    a download or a pin decision.

    Until then: the fallback arms for all four zero-download rows are measured, the null-test floor is ~5 % paired (7.1 % as the
    verdict tool derives it), the agreement transport is being validated, and the three-arm harness has a self-check running on the
    fallback arm alone so its naming, probes and table are proven before any Loom binary exists.

  13. bong-water-water-bong commented on Nov 21, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Correction: the toolchain blocker was my mistake, and the gate can run now

    I reported on #3158 that the cards need a 0.2.0.dev build from a bazel clone, because every Loom binary on the box refused them
    with unsupported model-card version; supported: 1. That conclusion was wrong, and the error was mine: I passed the card's
    model.json.lock where the tool expects model.json.
    With the right file, the PyPI release L5 pins reads the cards:

    $ loom-fetch --list  …/cards/unsloth-Qwen3.8-27B-UD-Q4_K_XL/model.json      # hrx-loom 0.2.0, installed from PyPI
    Qwen3.8-27B (Loom port, GGUF)
    presets: chat, chat-r9700
    variants: gguf      services: chat      programs: source
    
    $ loom-fetch --list  ~/.cache/scratch-cl-hrxkern/loom/qwen38-27b/model.json   # the materialized bartowski 27B card
    Qwen3.8 27B (Loom port, GGUF)    presets: chat
    

    Two facts that make this decisive, and they agree with config/loom.config on #3160's head (which I should have read before
    concluding): the release hrx-loom==0.2.0 was cut from tag v0.2.0, 314238a81c (what the cards were built against) is an
    ancestor of that tag, and L5's own comment says "no gated card needs a newer build".

    What that unblocks, concretely: the 27B's Loom card is already materialized —
    ~/.cache/scratch-cl-hrxkern/loom/qwen38-27b/ holds model.json, parameter/Qwen3.8-27B-Q4_K_M.gguf (sha 880a52af…, the
    bartowski card's checkpoint), program/, weights.loom and tokenizer.json — and hrx-loom 0.2.0 reads it. So the 27B row's
    Loom arm is one loom-serve invocation away, not one bazel build away.

    The bazel paragraph in my previous comment therefore applies to nothing that is still blocked: the source build stays recorded in
    config/loom.config for a future card that needs an unreleased commit, and bazel 9.3.2 (which is what the pinned tag declares)
    is what this box has.

    My queued tickets run first (the corrected CPU reference and the fallback KLD, then the two harness self-checks); the three-arm
    27B gate follows behind them, and with WAIT_MODE=both it covers the OU's --wait_mode question in the same pass. Nothing in the
    pre-registered decision rule changes — only my claim about what had to happen before it could be applied.

  14. 141 remaining items

  15. bong-water-water-bong commented on Nov 23, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Gate row: Qwen3.5-4B, our loom-skills port (reference loom-fun/unsloth-Qwen3.5-4B-loom@64bf4025) of unsloth/Qwen3.5-4B-GGUF@e87f1764 UD-Q4_K_XL, with the z-lab DFlash drafter and mmproj. hrx-loom 0.3.0, shipped args; the CPU arbiter ran on the box CPU. 23 Nov.

    • Prompt ids: MATCH with thinking off and on (no prefill difference for this card).
    • Speed (4 interleaved rounds, medians [range], streamed decode), fallback → Loom via 1bit serve:
      • short prefill 262 → 1,249; 2K prefill 2,156 → 3,295;
      • short decode 61.5 [60.7-62.2] → 103.0 [100.8-105.6]; 2K decode 59.0 [58.7-60.5] → 107.9 [105.6-111.2]. That is 1.7-1.8x, from the DFlash drafter.
    • Accuracy (thinking on, --with-reasoning, 512 tokens, 8 prompts):
    • The other thinking-on rows (Qwen3 0.6/4/8/1.7B, Inkling r8/r9700) score the same with or without the strip.

    Verdict: passes (with #3433). The card is ours, so it gets published to 1bit-MONSTER before its route entry.

    Same round, Qwen3-1.7B port: fails. Decode via serve is slower beyond spread at 2K (129.8 → 123.2), and 3 of 8 accuracy splits are not near-ties (1.564, 1.242, 0.947 nats). It's back to porting work.

  16. bong-water-water-bong commented on Nov 24, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Flash-Next IQ3_XXS gate-row blocker filed: #3482 (this is the file the fleet ships, per #679; the card discussed earlier in this thread is the UD-Q4_K_XL one).

    Measured in one box-hold both ticket on this appliance, hrx-loom 0.3.0, card /data/dev/cl-i679/flashnext-card (variant ud-iq3-xxs-vision-mtp):

    • the staged IQ3_XXS splice fails registration: blk.2.ssm_out.weight requires 16711680 bytes ... entry has 12902400 — the card kept UD-Q4_K_XL's layer-2 q8_0 special case for ssm_out while the IQ3_XXS file is Q6_K in all 36 layers (blk.2 attn_qkv/attn_gate really are Q8_0 and stay). Forcing the q6_K path makes registration ready;
    • the first chat request then dies (~32 s) with IREE HAL device event: driver_failure status=DATA_LOSS(15) ... message="gpu.event_wait", no amdgpu/MES fault, reproduced with drafting on/off and --pool_backing=fixed + completion_spin_ns;
    • the box is fine: same ticket, fallback llama.cpp llama-bench 0.6B Q4_K on HRX0 = 351.46 tok/s.

    So the Flash-Next IQ3_XXS row of this gate cannot be measured until the card is re-ported for IQ3_XXS (remaining UD-Q4_K_XL quant-layout assumptions in the programs, routed experts prominent). Reproducer, patch and evidence are in #3482.

  17. bong-water-water-bong commented on Nov 24, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Speed: the shipped r9700 card is about half of the r8 card on this box, and only part of that is the missing drafter (lead, 2026-11-24).

    Two independent causes, both measured on our box (rows above, same ticket family):

    • decode: the card has no drafter at all (llm_config.json "draft_kinds": [], info.json "drafting": null in both variants, PORTING.md: "no speculative decoding"). DSpark on the older card was 1.4-2.0x: depth sweep on 0.3.0 (a8354e77) d0 39.9/40.6 -> d3 69.0/66.1 tok/s; d4-d7 all worse than d3.
    • prefill: ~1,035 vs ~2,070 tok/s with drafting off on both, so this one is not a drafting effect - the r9700 card has a separate prefill regression on gfx1151 (its preset prefill_capacity 2048 / context 131,072 vs r8's 4096 / 262,144, or the modular dense path).

    The card's premise ("no MTP head in the GGUF and no drafter published for this exact model") is stale as of unsloth's restructure. Mainline-format drafters are published:

    • Mainline_Support/dspark-Inkling-2-Mini-Q8_0.gguf_file 503,889,952 B, sha 3da00cf7c31bbe5662b3c0d373ecf782d74d32ef43990acc158ce60c2add72e0 (downloaded and hashed)
    • dspark/dspark-Inkling-2-Mini-BF16-mainline.gguf_file 749,371,936 B, sha dba3d73c...
      Header check: same 3-layer dflash block drafter in the newer format (58 tensors: unpadded markov_w1 [256, 200058], explicit markov_w2, ctx_mix, sliding_window 1025), source mtp.safetensors of thinkingmachines/Inkling-2-Mini.

    Ask sent to cl-loomfun (CL-LOOMFUN-FROM-LEAD.md): port DSpark onto the r9700 card, bind the mainline drafter at d=3, pass the spec gate again, and explain/fix the prefill half.

    Decision (lead): the next image's Inkling route returns to the gated r8 4e018e88 (root layout e62d463c + drafter 2ec78510, both still at pinned revision ea0c79b2) until the r9700 card has drafting and prefill parity. Full evidence: ~/briefs/INKLING-DRAFTER-GAP.md (ryzen).

  18. bong-water-water-bong commented on Nov 24, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Partial row: 1bit-MONSTER/Inkling-2-Mini-loom @ afcb64b0 (the re-card #3497 merged), strixhalo, hrx-loom 0.3.0, 2026-11-24 12:16 AST, lead.

    This is not the accuracy gate row - cl-loomfun's arbiter harness still owes that. It is what a smoke run through the real card shows:

    • Loads and serves: /v1/models up, chat 200, card bound from the mainline root GGUF (e6427665) with dspark-Inkling-2-Mini-Q8_0_Old.gguf (2ec78510), draft_depth 3.
    • 17 * 23 -> 391, 2/2. Warm decode 66.5 tok/s (47 tokens in 0.706 s); the first request after load is 6.3 tok/s (7.4 s, weight warm-up). Same number as loom-fun's r8 card (66.6) in the A/B below.
    • 10,837-token needle prompt: prefill 1,889 tok/s cold and 2,159 tok/s on the repeat (the r9700 card: 1,044).
    • The needle ANSWER was not read: with a small budget the model spends it inside its thinking block (content empty at 16 and 64 tokens, reasoning visible). That is the model's behaviour, not a card defect, but it means the needle row needs the normal budget and the arbiter comparison.

    A/B on the same box, session and prompts (26-token prompt, 47 out, greedy, each card on its preset):

    re-card afcb64b0 (DSpark d3) loom-fun r8 4e018e88 (DSpark d3) r9700 6213fd3c (none)
    decode 66.5 tok/s 66.6 tok/s 41.0 tok/s
    prefill 15,616 tok 2,121 tok/s 2,121 tok/s 1,044 tok/s

    So the re-card reproduces the r8 card's speed on the mainline weights, and the r9700 card's missing speculation + ~2x prefill gap stands. Accuracy is still unmeasured on this card; the route is merged but should not be in a cut until cl-loomfun's row lands.

  19. bong-water-water-bong commented on Nov 24, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Gate row: Inkling-2-Mini on the re-card the route table ships, 1bit-MONSTER/Inkling-2-Mini-loom @ afcb64b0 (loom-fun r8 4e018e88 re-pointed at unsloth's mainline GGUF; byte-identical weights, dspark-Inkling-2-Mini-Q8_0_Old.gguf 2ec78510 at draft depth 3). hrx-loom 0.3.0 (loom-serve 1db8c4d0), strixhalo gfx1151, 24 Nov, one box-hold both ticket, EC balanced.

    • Checkpoint: unsloth/Inkling-2-Mini-GGUF@8078d149, Inkling-2-Mini-UD-Q4_K_XL.gguf sha256 e6427665… = the route pin; drafter 2ec78510… = the card lock's. CPU arbiter = the llama.cpp fork's port at the engine pin, 0.8.0-dev commit d4a2741, built 15.2.0, on the box CPU in the same ticket: the same arbiter the r8 row used, so the reference is comparable.
    • Precondition: thinking on 29 = 29 MATCH; thinking off 29 (ours) vs 27 (card) MISMATCH, and that is the r8 row's explained difference (the card maps thinking off to reasoning_effort: none; Inkling's template ignores enable_thinking). No thinking-off row is claimed.
    • Accuracy (--with-reasoning, 768 tokens, 8 prompts, greedy): 50.0 % (4/8), divergences p2/p3/p4/p5. All four are near-ties under the current rule - the CPU's log-prob gap to the token Loom emitted is 0.031, 0.263, 0.037, 0.057 nats, and Loom takes the arbiter's Tokenizer: byte-level BPE from GGUF, exact against HF tokenizers #2 each time: score 8/8 (4 identical + 4 near-tie, 0 counted, 0 unreadable).
    • The texts are byte-identical to acc-inkling-r8-on-030c on both arms (all 8 prompts, Loom and CPU), so the re-card reproduces the r8 row exactly; nothing in the re-card moved accuracy.
    • Instrument note, because it bit this row. The lane's pinned copy of the scorer (logprob_agree-3386.py, 23 Nov 18:29) misaligns the reference token stream on Inkling's <|message_model|>/<|content_thinking|>/<|end_message|> markers and the \n<<answer>>\n join - 88 characters of drift on this model - and read these same four splits as 16-20 nat "counted" disagreements with the route token "not in the top-N". main's tools/logprob_agree.py carries the alignment fix (its comment names this exact Inkling offset), and scoring the captured runs with it gives 8/8 and the margins above. Rows scored on a pinned copy older than that fix should be re-read the same way.
    • Known answers on the Loom arm: 17*23 3/3 (89 tok/s decode), 16,817-token needle 3/3 (prefill 2,136-2,140 tok/s).
    • Speed: there is still no llama.cpp-HRX fallback arm for Inkling (strict placement refuses it, hrx strict placement: Inkling-2-Mini leaves 1006 of 12370 nodes off HRX (CONCAT 260, SOFT_MAX 168, MUL_MAT 96) - the CPU split is the 4.6 tok/s decode #3491), so - as on the r8 row - this is Loom against the CPU arbiter; the card's speed A/B is the route entry's (DSpark 66.6 vs r9700 41.0 tok/s decode, 2,121 vs 1,044 tok/s prefill). No route-with-fallback claim is made.

    Artifacts: ryzen /home/bcloud/tmp-cl-loomfun/gate-results/acc-inkling-recard (agree.json, agree.log, precondition.txt, known.log, box provenance); box /data/dev/cl-loomfun/gate/out/acc-inkling-recard.

    With this row the route entry's "accuracy gate row PENDING" note can be retired; I will send that as a one-line config PR.

  20. bong-water-water-bong commented on Nov 24, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Equivalence row: our re-card produces the gated r8 card's output token for token (lead, 2026-11-24 16:2x AST, strixhalo, hrx-loom 0.3.0).

    Two cards, same box, same session, greedy, one serve each:

    • upstream loom-fun/unsloth-Inkling-2-Mini-loom r8 4e018e88 (reads the old-layout GGUF e62d463c),
    • our re-card 1bit-MONSTER/Inkling-2-Mini-loom afcb64b0 (reads the mainline root GGUF e6427665, drafter 2ec78510, depth 3).

    Seven prompts (arithmetic, code, explanation, list, translation, word problem, one thinking-on): 7/7 identical content AND reasoning, same completion-token counts (47/47, 192/192, 160/160, 48/48, 96/96, 49/49, 179/179). Raw compare.json on the box under /data/dev/lead-smoke/equiv-*.

    What that buys:

    • The 48 loop-control renames and the 12 per-block loop_msg_query substitutions change no output, so the card's programs are behaviourally the r8 programs.
    • The mainline GGUF e6427665 and the old-layout e62d463c decode identically here, so the gated r8 accuracy row (comment 7106859133: 50.0 % greedy vs the CPU arbiter, all splits near-ties, 3/3 known answers, 3/3 needle) carries to this route.

    Caveat: seven prompts, not the eight-prompt arbiter set - cl-loomfun still owns the formal row; this is the equivalence evidence that lets it be short. Speed on the same card: 66.5 tok/s decode, 1,889-2,159 tok/s prefill at 10.8K (2,121 at 15.6K in the A/B).

    Also verified for the cut: os/v3/puppy/stage-loom.sh on the merged main downloads the pinned wheel and all 17 card files (every sha256 + size checked by the script) into a 53 MB payload - the pin is not stale.

  21. bong-water-water-bong commented on Nov 24, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    End-to-end run on the appliance (lead, 2026-11-24 16:33-16:39 AST): the merged catalogue row really pulls both files, and the card serves from them.

    1. Copied the shipped package, replaced only bin/resources/server_models.json with the merged main row, started its lemond-onebit on 18390 with a scratch HF_HOME.
    2. POST /api/v1/pull {"model_name":"Inkling-2-Mini-1bit"} -> log: "Identified files to download: ...Inkling-2-Mini-UD-Q4_K_XL.gguf, ...dspark-Inkling-2-Mini-Q8_0_Old.gguf", 16,813 MiB progress, then "All files downloaded and validated", {"status":"success"}. Both files land in snapshots/8078d149286eec7193795413b9e0643da6d11fa1/ (17,629,760,736 and 402,278,560 B), refs/main = 8078d149. ~5 min for 18 GB.
    3. The shipped 1bit-loom-cards + the payload card, pointed at that real cache: both parameter/ links resolve at the lock's sizes.
    4. loom-serve 0.3.0 on the assembled card: 17 * 23 -> 391 twice, warm decode 65.8 tok/s (first request 7.9 = weight warm-up).

    So: row -> pull -> boot assembly -> serve is proven on the box with the merged artefacts. The one thing not exercised is Lemonade spawning the engine itself (the installed engine route is still rc1's r9700 card; the merged route lands with the next image). Logs on the box under /data/dev/lead-test until I clean it up.

  22. bong-water-water-bong commented on Nov 24, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Gate row: GLM-4.7-Flash Q4_K_M Loom port — accuracy 8/8 against the CPU arbiter, and the shipped fallback is the arm that drifts. VERDICT: do not route (prefill).

    (cl-loom, 2026-11-24 23:52 UTC / 19:52 AST, strixhalo, hrx-loom 0.3.0)

    Card 1bit-MONSTER/GLM-4.7-Flash-GGUF-loom (published today, 13 files, lock 2bbcb9002090cf6c, no weights in the repo), GGUF 29837ed2…b174 18,312,339,808 B from unsloth/GLM-4.7-Flash-GGUF@0d32489e, deepseek2/MLA, 60 layers of 64x2.6B MoE, 47 layers. Three arms, greedy, thinking off, 64 tokens, agree-glm.sh (8-prompt arbiter set).

    Accuracy: the Loom arm reproduces the CPU arbiter.

    • loom vs cpu: text identical on 8/8. logprob_agree.py reports 87.5 % with "divergence" on prompt 5, but a char diff says prefix-identical: True — both wrote the same 254 characters, and the Loom arm emitted two more, 'os', completing "Buenos" where the CPU arm had hit its 64-token cap mid-word on "Buen". A cut at the token limit, not a disagreement.
    • fallback vs cpu: drifts 3/8, and every drift sits inside a near tie and takes the arbiter's runner-up:
    prompt cpu (arbiter) fallback took cpu top-2 margin
    5 translate "good morning" Buenas Buenos 0.259 nats
    6 "what does CPU stand for" . as 0.536 nats
    7 one sentence about the sea shimmering where 0.189 nats

    So on this model the disagreement being gated belongs to the shipped route, not to the port. (Loom returns no logprobs — minimal body — so the arbiter carries them; neartie.py on the box applies the rule, token or text mode.)

    Speed: decode fine, prefill is not. 4 interleaved rounds, means, same session:

    arm prompt T1 prefill tok/s TTFT decode tok/s
    fallback 29 tok 391 ms 89.1 328 ms 66.58
    loom 29 tok 220 ms 131.7 247 ms 65.70
    loom-proxy 29 tok 169 ms 178.7 201 ms 66.00
    fallback 2,380 tok 2,470 ms 966.3 2,456 ms 56.27
    loom 2,380 tok 22,274 ms 106.9 22,642 ms 49.10
    loom-proxy 2,380 tok 22,218 ms 107.2 22,485 ms 49.38

    Short prompts favour Loom (fewer T1 ms, more prefill tok/s at this length). At 2.4k tokens the port's prefill is ~9× slower and TTFT 22.3 s vs 2.5 s; decode is −12 %, which alone would be acceptable.

    VERDICT: accuracy pass, route held. This is the #3156 condition ">2× slower prefill must say so and carry a named follow-up" — here it is 9×, so the MLA/deepseek2 prefill path at long context is the follow-up: #3503, and the route stays measured-only until it lands. Short-prompt routing would be a bigger claim than one 8-prompt row can carry, so I am not proposing a scoped route either.

    How the harness had to change (worth having on the record): the three arms cannot start concurrently on this box. Run in parallel they die with hrx_gpu_initialize(0) failed … [hsa_init] HSA_STATUS_ERROR_OUT_OF_RESOURCES, because ulimit -l is 8192 KiB soft and hard for every user, so only CAP_IPC_LOCK (root) can lock CWSR/GTT for hsa_init. Sequentially, as root, with HRX_ALLOW_NO_SVM=1 HSA_USERPTR_FOR_PAGED_MEM=0 HSA_USE_SVM=0, each arm reaches ready in ~4 s. agree-glm.sh gates readiness one arm at a time for that reason, and the CPU arbiter runs nice -n 10 taskset -c 0-7 so the box stays far from its thermal trip.

    Raw: /data/dev/cl-loom/out/glm-acc-2339/ (agree.json, agree.log, per-arm *.serve.log, provenance.txt, faults-before.txt, after.txt) and /data/dev/cl-loom/out/glm-speed/ (speed.tsv, state.log, routes.json, per-round *.r?.log). No GPU faults during the accuracy run (after.txt = 0); the speed harness logs state and per-round serves but keeps no fault counter, so none is claimed there. ec_power_mode balanced, kernel 7.4.0-rc1-1bit, fallback 1bit 0.0.1 (engine 0a0e550a5f2a llama.cpp 5776842df369), loom-serve 1db8c4d0cdf4787a.

  23. bong-water-water-bong commented on Nov 25, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Amendment to the row above — the card changed, and prefill improved 2.55×.

    The prefill investigation (#3503) found the cost is quadratic in prompt length, exposed by prefill_capacity. Card model.json now sets 512 instead of 4096 (model.json is not a locked payload; model.json.lock is unchanged at 2bbcb9002090cf6c; model.json is now 654bd1c9a4c1662a…). Published: 1bit-MONSTER/GLM-4.7-Flash-GGUF-loom commit 4b7ac1fd9b.

    Re-measured, same harness, same 4 interleaved rounds, box re-checked with the fallback arm as control (its prefill moved +4 %, its decode −0.4 %, so the box is comparable):

    arm prompt prefill tok/s decode tok/s T1
    fallback short 106.7 65.91 308 ms
    fallback long2k 1002.5 56.06 2 374 ms
    loom short 126.4 62.96 240 ms
    loom long2k 272.5 (was 106.9) 43.41 (was 49.10) 8 736 ms
    loom-proxy long2k 275.9 (was 107.2) 44.41 (was 49.38) 8 627 ms

    Accuracy was re-run at 512 before the card changed, and it is the same row: loom against the CPU arbiter is 8/8 by text (the 87.5 % figure is the 64-token cut on prompt [5], prefix-identical, as noted above), and the shipped fallback still drifts on prompts [5], [6], [7]. Chunking the prompt into five epochs does not move the answer.

    Verdict unchanged: do not route. Prefill is 3.7× behind the fallback at 2.4k tokens instead of 9×, and the remaining gap is the quadratic attention term. There is also a new cost of the workaround — decode is 12 % slower at 2.4k context on both loom arms while the fallback's decode is flat — which nobody has explained yet and which the tiling fix in #3503 should not inherit. Measured-only until #3503 lands.

  24. bong-water-water-bong commented on Nov 26, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    GLM-4.7-Flash row, re-run on the expanded-MLA card: the prefill clause that blocked the route is gone, and the Loom arm is the one that tracks the CPU arbiter. One clause stays unsigned — and it is unmeasurable by the route's shape, not by the port.

    (cl-loom, 2026-11-26 13:42 UTC, strixhalo, hrx-loom 0.3.0, agree-glm.sh)

    Card: 1bit-MONSTER/GLM-4.7-Flash-GGUF-loom@a76d9b2 ("Expanded MLA prefill: prefill_2k 1,527 -> 2,013 tok/s vs llama.cpp, all gates pass"), measured from a fresh clone on the box with parameter/ repointed at the local GLM-4.7-Flash-Q4_K_M.gguf (29837ed2…b174, 18,312,339,808 B), so the arm is the published artifact, not a build tree. Three arms, sequential, one box-hold gpu ticket: loom (loom-serve --preset=chat), fallback (1bit serve -m … --device hrx --no-loom --no-mtp), cpu arbiter (--device cpu --no-mtp, 8 cores at nice 10). 8 prompts, greedy, thinking off, 64 tokens, text only. Provenance in the run dir.

    pairing greedy agreement diverging prompts
    loom vs cpu 87.5 % (7/8) [5]
    fallback vs cpu 62.5 % (5/8) [5, 6, 7]
    loom vs fallback 62.5 % [5, 6, 7]

    fallback vs cpu, which is the only pairing where both routes carry log-probs: mean KLD 0.021060 nats (KL(fallback‖cpu), 156 positions, 24 with entries below top-N), same top token 100 %, token-id match 0.830, mean |dlogp| 0.0134. Determinism: cpu bitwise-identical over 190 tokens, fallback bitwise-identical over 195.

    Against the pre-registered rule

    • Accuracy, text clause — Loom 87.5 % is one prompt short of 95 %. That prompt is 5, the long-standing near-tie, and the arbiter is decisive about direction: the fallback disagrees with CPU on three prompts where Loom disagrees on one, so on this rule ("an arm that disagrees with CPU is the one that is wrong") the fallback is the arm in question, not Loom.
    • Accuracy, KLD clause — cannot tell, BY THE ROUTE'S SHAPE: loom-serve returned NO LOGPROBS on every position (have_logprobs: false), so KLD_loom does not exist to compare with KLD_fallback. Every Loom row in this issue inherits that; it is a property of the Loom chat route, not of this port. Filed upstream as loom-serve returns no log-probs, so a gate row's KLD/accuracy clause is unmeasurable loom-fun/loom-skills#1680.
    • Speed clause — passes by a wide margin, well beyond any round-to-round spread: prefill 1,988 / 2,033 tok/s (1k / 2k prompt) vs llama.cpp-on-the-same-box 518.4 / 351.1, decode 69.2 vs 57.0, decode_2k 59.5 vs 41.5, c4 aggregate 158.7 vs 119.6, TTFT long2k 1.42 s.

    Verdict: the row flips from "do not route (prefill)" to route. The prefill blocker that produced the original verdict is gone (351 → 2,033 tok/s, 5.8×), Loom is the arm closest to the CPU arbiter on text, and the one clause that cannot be signed is the KLD comparison, which no Loom card can supply until the route returns log-probs. If the maintainers want the KLD clause signed before the route moves, the dependency is #1680, not more measurement of this card.

  25. bong-water-water-bong commented on Nov 26, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Speed half, pre-registered shape: 4 interleaved rounds on the published card

    Run on the artifact people download — a fresh clone of 1bit-MONSTER/GLM-4.7-Flash-GGUF-loom@a76d9b2 with
    parameter/ resolved to the local Q4_K_M — not a build tree. One box (strixhalo, gfx1151), one
    box-hold gpu ticket, one server at a time, arms in a fixed order per round (fallback → loom → loom-proxy),
    4 rounds, 2,380-token prompt. Prefill is the client-observed TTFT of a 1-token request; decode is a streamed
    (N+1)-token request, (ct-1)/(end-first). Client is stdlib, prompt carries a nonce.

    arm prefill tok/s (median of 4) TTFT ms decode @2k decode, short prefill, short
    fallback (1bit serve --device hrx --no-loom) 1,003.3 (986–1,015) 2,372 56.08 65.0 122.9
    loom (loom-serve --preset=chat) 2,254.6 (2,223–2,260) 1,055 59.72 71.5 269.2
    loom-proxy (1bit serve --loom-routes) 2,243.3 (2,194–2,254) 1,061 60.51 71.6 273.6

    So against our own engine's HIP route on the same box, same minute: 2.25× prefill, 2.25× lower TTFT,
    +6.5 % decode at 2k (+7.9 % through the proxy), +10 % short decode. Spreads are 1.6–2.9 % over the four rounds, and
    the ordering never inverted.

    Two honest notes on the baselines, because the numbers have been quoted three different ways:

    • 1,003 vs 351 tok/s are both llama.cpp-family and both correct. The 351 tok/s in the card row is upstream
      llama.cpp b1388 measured by perf.py with the card's recorded args (-ngl 99 -cram 0 -c 65536 -np 1); the
      1,003 here is our engine's --device hrx route, a different binary with different batching. The row's
      cross-engine claim therefore stays prefill_2k 2,033.5 vs 351.1 = 5.8×, and this interleaved run's claim is
      2.25× against the ENGINE, not against upstream llama.cpp.
    • short-prompt prefill (29 tokens, 269 vs 123) is dispatch-dominated and should not be read as a throughput figure.

    Where that leaves the row

    clause (pre-registered) result
    faster than fallback on at least one axis beyond spread yes — 2.25× prefill, 2.25× TTFT, +6.5 % decode @2k, 7/7 gates pass, kernel_tests 91/91
    greedy agreement ≥ 95 % 87.5 % — one prompt short, and that prompt is the known near-tie; the fallback is three short (62.5 %)
    KLD ≤ fallback cannot tell — loom-serve returns have_logprobs: false, so no Loom-side KLD exists to compare

    Verdict unchanged from the amendment above and now measured in the pre-registered shape: route, with the KLD
    clause recording that it is unmeasurable on this route rather than absent (loom-fun/loom-skills#1680).

    Provenance: /data/dev/cl-loom/out/glm-pub-r4/ (speed.tsv 24 rows, provenance.txt, state.log), tctl 39 C
    at start, ec=balanced throughout, no amdgpu fault or reset in the kernel log for the run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrfc

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions