Skip to content

release check: chat-loom - Inkling-2-Mini answers on loom-serve, proved by serve's own log (engine#3350 rc1) - #3431

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-release/release-check-chat-loom
Nov 23, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-release/release-check-chat-loom

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

For the v2026.49-rc1 board run (orchestrator: "the Inkling row").

Gap: the release check had no row for the Loom route, which is the thing rc1 exists to test.

New row chat-loom (os/mini/release-check.sh, after chat-hrx):

  • Model: ONEBIT_CHECK_LOOM_MODEL, default Inkling-2-Mini-1bit. --fetch pulls it through Lemonade (about 17.6 GB; about 48 GB RAM with the chat preset); otherwise SKIP "not downloaded". No GPU: SKIP, and the row joins the footer's hardware-skip list.

  • Asks: "What is 17 * 23? Reply with the number only." with max_tokens 1024, so a reasoning model has room.

  • Proof: it reads only the Lemonade log lines written during the row (ONEBIT_LEMOND_LOG, default /var/log/lemond-onebit.log) and counts loom-serve processes while the model is loaded. Then it unloads the model.

  • loom_verdict (pure, driven by --self-test) passes only when all four hold:

    • serve logged -> loom-serve card …;
    • serve logged no serving on the llama.cpp route;
    • a loom-serve process ran;
    • the reply contains 391.

    A right answer through the fallback FAILs, naming serve's own reason.

Measured:

  • --self-test: PASS, 227 ok (8 new: pass, fallback-with-right-answer, no route line, no loom-serve, wrong answer, no GPU, not downloaded, fetch failed) under bash and busybox sh. sh -n and ash -n ok.
  • The PASS text reads Inkling-2-Mini-1bit answered 391 on loom-serve (route inkling-2-mini-ud-q4_k_xl, card unsloth-Inkling-2-Mini-loom-r9700).
  • bash scripts/pre-pr-checks.sh --base origin/main after committing: 17 green, 3 skipped.

Not run on hardware yet: the installed v2026.48 has no Inkling route, so the rc1 board run is this row's first real run.

Timing for rc1: if this should be in rc1's own image, it has to merge before cl-buildenv's re-cut is archived. Otherwise I'll run this file from /data/dev/cl-release against the rc1 stick, which works because the release check is a standalone script.

🤖 Generated with Claude Code

…ed by serve's own log (engine#3350 rc1)

The rc1 test build exists to serve Inkling-2-Mini on the Loom route, and the release check had no row for it: chat-hrx
asks the first listed non-NPU -1bit model a fixed phrase, and 1bit serve's designed fallback (card not usable, a
weight beside the model not the card's: #3394/#3396) answers just as well on llama.cpp. So a green check proved
nothing about Loom.

New row chat-loom (os/mini/release-check.sh, after chat-hrx):
- the model is ONEBIT_CHECK_LOOM_MODEL (default Inkling-2-Mini-1bit); --fetch pulls it (about 17.6 GB), else SKIP
  'not downloaded'; no GPU -> SKIP (and it joins the footer's hardware-skip list).
- asks 'What is 17 * 23? Reply with the number only.' (max_tokens 1024: a reasoning model gets room), reads ONLY the
  Lemonade log lines written during the row, counts loom-serve processes while it is loaded, then unloads it.
- loom_verdict (pure, in --self-test): PASS only when serve logged '-> loom-serve card', logged no 'serving on the
  llama.cpp route', a loom-serve ran, and the answer has 391. A right answer through the fallback FAILs.

--self-test: PASS, 227 ok (+8) under bash and busybox sh; sh -n / ash -n ok.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Possible Logic Issue in Loom Verdict

The loom_verdict function may not correctly handle cases where the reply contains '391' but is not from the Loom route. Although the function checks for the presence of a -> loom-serve card line and ensures no fallback to llama.cpp, it does not verify that the reply was generated by the Loom route specifically. This could lead to a false positive if the fallback mechanism also produces the correct answer.

    case "$_rp" in
        *391*) printf 'PASS %s answered 391 on loom-serve (%s)' "$_m" "$(printf '%s' "$_rt" | sed -n 's/.*1bit serve: loom route \([^:]*\):.*-> loom-serve card \([^ ]*\).*/route \1, card \2/p')" ;;
        '') printf 'FAIL %s went through loom-serve but gave no reply' "$_m" ;;
        *)  printf 'FAIL %s went through loom-serve but did not answer 391: %s' "$_m" "$(printf '%s' "$_rp" | tr '\n' ' ' | cut -c1-160)" ;;
    esac
}
Potential Race Condition in Process Counting

The script counts loom-serve processes after the model request completes, but does not ensure that these processes are actually running during the model's inference time. This could lead to a race condition where the process count is inaccurate, potentially causing the test to pass when it should fail or vice versa.

_lp=$(pgrep -f '/loom-serve' 2> /dev/null | wc -l)

@bong-water-water-bong
bong-water-water-bong merged commit 3348b58 into main Nov 23, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-release/release-check-chat-loom branch November 23, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant