Skip to content

tools/ref: a single-card timing mode under box.sh's local mode (BLOOMERY_BOX_CARD=local): timing-card.sh times the one card nvidia-smi lists by UUID, the lease and its trace sit in BLOOMERY_LOCK_DIR, the witness prints the card, its Xid count, the shared memory pool and the machine, and depth-qwen3moe.sh fails an arm on an Xid or a lost card - #39

Merged
midagedev merged 11 commits into
midagedev:mainfrom
juliankang4:dgx-spark-timing
Oct 11, 2026

Conversation

@juliankang4

@juliankang4 juliankang4 commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

Part of #13. This builds the first two items of section 3.5 of docs/contrib/dgx-spark.md (P3's "timing-card.sh
single-card mode"): a timing mode for one card, with the lease under BLOOMERY_LOCK_DIR and no 3090 or A6000 branch,
and a witness for this machine. The prediction card works as on the box: lease_take asks for one, and the sitting
below ran with its card. This pull request sits on the local mode pull request (#38). Its first commit is that one,
and it adds one commit.

Under BLOOMERY_BOX_LOCAL=1, tools/box.sh passes BLOOMERY_BOX_CARD=local to the command. With that value
timing-card.sh times the machine's own card:

  • The card. The one card nvidia-smi --query-gpu=uuid lists, or, when it lists several, the UUID in
    BLOOMERY_TIMING_GPU. The card is picked by UUID and never by name, so cards.sh and its A6000 and 3090 names play
    no part in the pick. The query is bounded as the witness's queries are (__witness_smi). CUDA_VISIBLE_DEVICES is
    set to that UUID, over the value the caller passed through box.sh, so the runner sees no other card.
  • A runner opts in. A runner sets TIMING_LOCAL_RUNNER=1 before it sources timing-card.sh, as it sets
    TIMING_CARDS_RUNNER=1 for the two-card mode. Only depth-qwen3moe.sh does. Any other runner is refused under
    local: the file prints [timing-card] refused: with the reason, and lease_take ends the run with 64. A runner
    whose own checks come before its lease ends with that check's code instead: time-gate.sh and depth-gpu.sh check
    their binary first, so with no binary they print the refusal and exit 2. Either way no lease is taken and no arm is
    timed without an Xid check.
  • Refusals. TIMING_CARDS_WHY carries the reason and lease_take ends the run with 64, as for the two-card mode's
    refusals: the machine is the box (/root/bloomery-cpu.lock exists); the lock directory is /root;
    BLOOMERY_TIMING_CARDS is set; the runner did not opt in; nvidia-smi fails or lists no card; it lists several and
    BLOOMERY_TIMING_GPU is unset; or BLOOMERY_TIMING_GPU is not a card it lists.
  • The lease and its trace. The machine lease is bloomery-cpu.lock in the lock directory (lease-probe.sh's
    LOCK_DIR), and the trace, bloomery-sittings.log, is written beside it. lease.sh compared both with fixed /root
    paths before.
  • The witness. The card field is witness_local: the card's name, power limit and maximum SM clock; its clocks
    line (SM clock, the clock-event mask, the slowdown counters); the Xid count since the lease was taken; cpu-freq; the
    binary's hash; the card's compute processes (local-apps); CPU load and I/O pressure; the shared memory pool
    (MemFree and SwapFree); and the machine (the OS with its DGX OS version, kernel, driver, the nvcc on PATH,
    MemTotal). MemAvailable and the page cache are the runner's mem field, so the pool line does not repeat them.
    Each nvidia-smi query in this witness is bounded and printed as the card answers it, so the GB10's power limit
    reads [N/A]. The runner prints the witness before and after every arm, so the pool and the page cache are read at
    both ends of each arm.
  • local-apps and [timing-card-busy]. The apps line is tagged [timing-card-busy] as the box's apps lines are.
    In a sitting, the witness before each of our arms usually shows that arm's own process, already loaded on the card,
    with the tag. That process is the arm itself, as it is on the box, and not another tenant.
  • Xid. Local mode runs the two-card mode's Xid reader, which counts every NVRM Xid line on the machine.
    timing_cards_precheck refuses (69), before the lease, a kernel journal that does not answer, or that shows a user
    other than root no line on stdout (a user outside the adm and systemd-journal groups gets an empty answer and rc
    0, and every Xid count would then read 0). A warning on stderr is not a line. After each arm, timing_cards_arm
    fails the arm on an Xid since the last arm's check, or on a card that no longer answers nvidia-smi by its UUID.
    depth-qwen3moe.sh checks its own arms even when they exit non-zero, so an Xid an arm caused is charged to that arm
    and not to the next one. It checks the reference arms the same way, and lcpp-warm.sh does the same for its server
    arms, a failed one included. No test reaches those two checks: the stub suite's local-xid case fails one of our
    own arms only.
  • Placement. place_check takes only placement a in local mode. gate and bp are refused, and the reason says
    why for each: gate loads the card named 3090, and bp loads two cards by size rank.
  • Levers. The rows of BLOOMERY_LEASE_TRACE, BLOOMERY_BOX_CARD and BLOOMERY_TIMING_GPU say what each does in
    local mode.

On the box, with BLOOMERY_BOX_CARD unset or naming a box card, the one-card and two-card modes work as before. What
changes there:

  • The kernel journal check is one function, __xid_journal, which both modes call. It reads the journal's stdout only,
    and its failure reason now gives journalctl's exit code (journalctl's own message prints on stderr just above). The
    empty-journal refusal applies only to a user other than root, so on the box, as root, a journal with no line passes
    as it did before.
  • The lease trace and the machine-lease check use $LOCK_DIR/bloomery-cpu.lock. LOCK_DIR is /root on the box, and
    lease_take still refuses any other lease file where /root/bloomery-cpu.lock exists, so the box's paths stay what
    they were.
  • The witnesses share two helpers: __witness_clocks (the clocks line, which the two-card witness wrote out in place)
    and __witness_host (the cpu-freq and binary lines, which all three witnesses wrote out). I compared the card
    field's output before and after under a stub nvidia-smi, for the one-card and the two-card witness, each with a
    binary line, without one and with the 3090 lost: the output is the same byte for byte.

Section 3.5 also asks for the machine's own ruler and a reference engine arm. Both are runs, not code, and I report
them on #13. The reference engine is mainline llama.cpp at 53ed051ce (build 11157), the commit your public Qwen3.6
card names, which I built on the Spark's host with its CUDA 13.0 toolkit (cmake -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=121a). LCPP in my environment file points the runner at it, and no recipe builds it.

What I left as it is, so the change stays inside depth-qwen3moe.sh and the files it sources:

  • The other runners are refused in local mode (question 1).
  • The runner's summary still prints the other-busy rows: count, and its header other_gpu=. In local mode they read
    0 and empty.
  • Some nvidia-smi calls still have no bound. In the box's one-card witness, all of its card queries
    (timing-card.sh:188-189, :192, :197, :201); in the two-card witness, the apps and gpu lines (:492, :497,
    :501), while its clocks line and local mode's whole witness are bounded. Local mode also runs three unbounded
    queries outside the witness: cards.sh:23, when timing-card.sh sources it, and in depth-qwen3moe.sh the card
    name (:1702) and the guard that waits for a busy card (:1752). A driver that hangs would hang those.
  • A dry run in local mode does not check the kernel journal. The two-card mode's dry run prints its precheck.
  • The machine line's toolkit field reads nvcc not on PATH on the Spark's host: the binary is built in the dev
    container, and the host's own CUDA is off PATH. The line repeats in every witness block; it could be printed once
    with the [config] lines.
  • A full sitting log is not safe to post as it is. After an Xid, the witness's xid line and a failed arm's reason
    quote the kernel's Xid line, which carries the host name. The witness's binary line prints the binary's full path,
    and the [config] and [lease] lines carry the card's UUID and the lock directory's path. The witness block below
    is an excerpt with the binary's path cut to the tree.
  • On the box, BLOOMERY_LOCK_DIR set to another directory together with BLOOMERY_LEASE_LOCK=/root/bloomery-cpu.lock
    would make lease_take call the box's own lease "not the machine lease" (lease.sh:406) and write no trace. I read
    this from the code and did not run it; nothing sets that pair.

Code shape

  • No second copy. Local mode reuses the two-card mode's Xid reader (xid_read, timing_cards_precheck,
    timing_cards_start, timing_cards_arm) and the witness's bounded query (__witness_smi). The journal check,
    the clocks line and the cpu-freq and binary lines, which the existing code wrote out in place, are one
    function each now, and every mode calls them.
  • Model code holds only architecture facts. No model code changes.
  • Dead code is gone.
  • No silent failure. Each refusal names its reason (64 or 69). A witness query that fails prints
    unavailable (rc N), and a journal that shows a user other than root no line is refused instead of counting 0.
  • Comments state what is true now.
  • No relaxed gate.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up.

Duplication found or removed (path:line): removed, in tools/ref/timing-card.sh: __xid_journal (:395, the
journal check timing_cards_precheck wrote out), __witness_clocks (:207, the clocks query and its format
witness_cards wrote out) and __witness_host (:218, the cpu-freq and binary lines of all three witnesses).
Found and left: the box's one-card clocks line (timing-card.sh:189) formats the same fields as __witness_clocks from
an unbounded query; the gpu, load and io lines of the three witnesses (:201-202, :243-245, :501-502) differ in
their bound and in the box's llm.service field, so they stay apart.

Questions

  1. The other runners. depth-ds41.sh, depth-glm5next.sh, ik-draft.sh and nsys-ds41.sh have the two-card
    mode, and the one-card runners (depth-gpu.sh, nsys-gpu.sh, ncu-gpu.sh and the rest) have neither. Opting one
    in means calling timing_cards_arm after each of its arms and adding local cases to its stub tests. Do you want any
    of them in local mode, or should the next runner opt in when someone times with it?
  2. The rows' card field. In local mode a row's card field is the card's name as nvidia-smi gives it, shortened
    as the box's is (GB10 here). On a contributor's A6000 or 3090 the rows would read like the box's rows, and only
    the witness's machine line tells them apart. Should local rows carry a mark of their own (for example GB10 (local)), or is the machine line enough?

What I ran

Everything below ran on this commit, 7c8862b4, which sits on the local mode commit 46fcf216 on upstream main
7e4fb051, unless a paragraph says otherwise. The A/A sitting, the witness comparison above, the runs in the root
container and, on the Mac, the runs that break one mechanism at a time ran on this commit's previous version,
178de4e7, whose tree differs from this one only in the local mode commit's rename of BLOOMERY_ENV to
BLOOMERY_ENV_FILE. I could not run the gates just affected selects on the box; that run is yours.

Tests. tools/ref/card-tests/run.sh gains 18 local cases: the card pick, each refusal and its [timing-card] tag, the
journal precheck (an answer, a failure, no line, a warning on stderr alone), a lost card after an arm, and
arm-place.sh's refusal of bp. It also gains one lease case: lease_take under BLOOMERY_LOCK_DIR holds the machine
lease. lease.sh --self-test gains the local-apps tag and the trace path in the lock directory.
depth-qwen3moe-stub.sh gains local (a GB10 stub: the rows, the witness lines, none of the box's lines), local-xid
(an arm that exits 3 after an Xid is charged with both, and the next arm is not), local-twocard and local-box.

On a Mac (each mac-static step's line cut after its time; the lint step counts 41 warnings, the ratchet's 41):

just mac-static upstream/main
mac-static: fmt-check rc 0 in 4 s
mac-static: lint rc 0 in 13 s
mac-static: combos rc 0 in 29 s
mac-static: check-arch rc 0 in 8 s
mac-static: check-comments rc 0 in 8 s
mac-static: check-defaults rc 0 in 1 s
mac-static: check-levers rc 0 in 6 s
mac-static: check-loads rc 0 in 59 s
mac-static: check-recipes rc 0 in 474 s
mac-static: check-rustflags rc 0 in 0 s
mac-static: check-unsafe rc 0 in 1 s
mac-static: check-waits rc 0 in 0 s
mac-static: ok

An earlier mac-static run, on the previous version of this commit, had check-recipes red on one lease self-test
case (below, "What I ran into").

bash tools/ref/card-tests/run.sh
card-tests: 592 tests, 0 failed
bash tools/gpu-gate.sh --self-test
skip   … its wait line names the first run as the holder: no /proc here (lease_holders reads it)
gpu-gate self-test: 98 of 98 ok
bash tools/ref/lease.sh --self-test
self-test: ok (0 failures)
bash tools/ref/depth-qwen3moe.sh --self-test
self-test: ok (99 checks, 0 failures)
bash tools/ref/lcpp-warm.sh --self-test
self-test: ok (0 failures)

The Mac runs 9 more card tests than Linux, the walker tests, which need just. The stub suites need GNU timeout,
findmnt and /proc, so they run on Linux only.

On a DGX Spark host (Ubuntu 24.04.5, aarch64, GNU flock and timeout, LC_ALL=C, no /root/bloomery-cpu.lock):

bash tools/ref/card-tests/run.sh
skip walker tests: no just on PATH (check-recipes runs them on the Mac)
card-tests: 583 tests, 0 failed
bash tools/ref/lease.sh --self-test
self-test: ok (0 failures)
bash tools/gpu-gate.sh --self-test
gpu-gate self-test: 99 of 99 ok
bash tools/ref/depth-qwen3moe.sh --self-test
self-test: ok (99 checks, 0 failures)
bash tools/ref/lcpp-warm.sh --self-test
self-test: ok (0 failures)
bash tools/ref/depth-qwen3moe-stub.sh
depth-qwen3moe-stub: 69 checks, 0 failed
bash tools/ref/depth-ds41-stub.sh
depth-ds41-stub: 84 checks, 0 failed
bash tools/ref/depth-glm5next-stub.sh
depth-glm5next-stub: 43 checks, 0 failed

The GLM stub skips its timed cases there, as that host has no GLM prose ids.

In a root container on a DGX Spark, with no card and with /root/bloomery-cpu.lock present to stand in for the box:

bash tools/ref/card-tests/run.sh
card-tests: 497 tests, 0 failed
bash tools/ref/lease.sh --self-test
self-test: ok (0 failures)
bash tools/gpu-gate.sh --self-test
gpu-gate self-test: 99 of 99 ok

The box refuses local mode, so where /root/bloomery-cpu.lock exists the card tests run one local case, that refusal,
and skip the rest by name. The lease self-test skips its two trace wiring cases there, as they take a lease under
another lock file. The stub suites ran on the host only: in the container, tools/ref/drive-read.sh finds no disk
counters for the overlay mount (no counters at /sys/block/overlay/stat) and the runner stops at rc 2 before the cases
run. So the stub suite's local-box case, which checks the same refusal through the runner and runs only where
/root/bloomery-cpu.lock exists, has not run anywhere yet; the box would be its first run.

FAIL-first, with this commit's tests over the local mode commit's timing-card.sh, lease.sh, arm-place.sh,
depth-qwen3moe.sh and lcpp-warm.sh: 18 card tests fail on a Mac (18 of 592), and the same 18 of 583 on the DGX
Spark host, where the stub suite fails 3 of 69:

bash tools/ref/card-tests/run.sh
card-tests: 583 tests, 18 failed
bash tools/ref/depth-qwen3moe-stub.sh
depth-qwen3moe-stub: 69 checks, 3 failed

The 18 are 17 of the 18 local cases and the lease case. The 18th local case, an arm on a card that still answers,
passes on the old code too; it is the control for the lost-card case. The stub suite's 3 are local, local-xid and
local-twocard. The lease self-test passes in that run because the old lease.sh brings its old self-test with it.
With only lease.sh's code reverted and its new self-test kept (on the Mac), its two new cases, tag-local-busy and
trace-file-lock-dir, fail. The other suites have no new cases.

I also broke single mechanisms one at a time. On the Mac, with the journal check reading stderr together with stdout, the
stderr-only case fails, and with the local refusal tagged [timing-cards], the tag case fails. The pool line's fields
are pinned by the stub suite's local case alone. With the pool line printing MemAvailable and Cached as well,
that case fails on Linux (1 of 69):

FAIL local: 0 lines match /^    pool: MemFree=[0-9]+ SwapFree=[0-9]+ kB$/, want 6
depth-qwen3moe-stub: 69 checks, 1 failed

No test can see the bound on the UUID query, or the journal check's pass for root.

The A/A ran through tools/box.sh's local mode on the Spark's host, under its prediction card (a calibration card,
kept out of this pull request), with BLOOMERY_MODEL=qwen35moe: the depth runner's line from the
depth-gpu-qwen35moe recipe, less its build.

LC_ALL=C BLOOMERY_BOX_LOCAL=1 BLOOMERY_MODEL=qwen35moe BLOOMERY_ENV_FILE=<host environment file> \
  BLOOMERY_LOCK_DIR=<lock directory> BLOOMERY_DATA=<data directory> BLOOMERY_REF_MODEL=<model file> \
  BLOOMERY_BOX_ENV='BLOOMERY_LEASE_CARD=docs/cards/spark-aa.card' \
  tools/box.sh 'export BLOOMERY_AB_ROUNDS=6 && bash tools/ref/card-precheck.sh &&
    bash tools/ref/depth-qwen3moe.sh 6 6@BLOOMERY_AB_LOAD=arm 512 512@BLOOMERY_AB_LOAD=arm'

The tools are those of 178de4e7, the previous version (above). The binary, generate_qwen3moe (sha256
22cd63e4543e), was built in the dev container from that version's crates/, which match upstream main's except for
the lever registry's rows. It ran on the host as built, with the host's CUDA toolkit off PATH. The model file is
Qwen3.6-35B-A3B-Q4_K_M.gguf (21166757728 bytes). Six rounds in one lease, the same binary against itself with a load of its own per arm:

term (tok/s @ n=96, GB10) mean ratio, ours / ours@BLOOMERY_AB_LOAD=arm (n=6)
decode, depth 6 1.0015 ± 0.0052
decode, depth 512 1.0022 ± 0.0045
prefill, P = 6 0.9988 ± 0.0316
prefill, P = 512 1.0047 ± 0.0055

cpu-busy 0 of 24 rows, cold 0 of 24, 0 failed arms. These are the means the runner's ratio lines print, taken out
of the log. The first witness block of the sitting, an excerpt: the field that lists the top CPU processes is left out,
and the binary's path is cut to the tree.

--- witness pre 2026-10-11T09:28:59Z
    timing-card: NVIDIA GB10, [N/A], 3003 MHz
    timing-card clocks: sm=208 max=3003 MHz event_reasons=0x0000000000000000 capped_us sw_power=19763280479 sw_thermal=0 hw_thermal=0 temp=46 C power=4.72 W
    xid: 0 NVRM Xid line(s) since the lease was taken (@1791710939); last: none
    cpu-freq: MHz mean 3354 min 2808 max 3900 over 20 cpus governor=performance
    binary: target/release/generate_qwen3moe sha256=22cd63e4543e mtime=2026-10-11T08:10:45Z
    local-apps: []
    gpu: 0, 0 %, 4.72 W, 208 MHz;
    load=0.19 0.14 0.06 io=avg10=0.00
    pool: MemFree=1719748 SwapFree=16772740 kB
    machine: Ubuntu 24.04.5 LTS (DGX OS 7.6.0), kernel 6.17.0-1032-nvidia, driver 595.84, nvcc not on PATH, MemTotal 127535276 kB
    model: qwen35moe
    mem: MemAvailable: 122249024 kB Cached: 38652864 kB
    pgmajfault: 11917807

The Qwen3.6 table against llama.cpp is on #13 with its cards and the llama.cpp build.

What I ran into

None of these block this pull request. I'm writing them down because they cost me time, and you may want to change
some of them.

  • lease.sh --self-test depends on the locale. On a host whose locale is ko_KR.UTF-8 with the Korean libc messages
    installed, one case fails:

    FAIL trace-write-fail-line: no line matches /^\[lease\] trace not written: .*No such file or directory \(.*/no-such-dir/trace.log\); the lease goes on$/ in [[lease] trace not written: 그런 파일이나 디렉터리가 없습니다 (/tmp/lease-self-test.GIB7gE/no-such-dir/trace.log); the lease goes on]
    

    main's lease.sh fails the same way, and with LC_ALL=C the self-test passes. The self-test could set LC_ALL=C
    itself, or the case could match the path and the tail without the strerror text.

  • lease.sh --self-test's trace-free-by-waiter case waits 2 s for the detached waiter's free line
    (trace_free_wait, tools/ref/lease.sh:1004 on main), and the waiter probes every 0.5 s. My first
    just mac-static run on the previous version of this commit, with another tree's contrib-check running beside it,
    had check-recipes red on that case alone:

    FAIL trace-free-by-waiter: no line matches /^[0-9T:Z-]+ free id=1791711561.36551 epoch=[0-9]+ held_s=[0-9]+ by=waiter$/ in []
    self-test: FAIL (1 failures)
    check-recipes: the lease self-test failed
    

    The next mac-static run passed, and the self-test alone passed six times in a row. main has the same case and the
    same 2 s wait, and this change does not touch that path. A longer wait would make it less sensitive to a loaded
    machine.

  • The build and the sitting run in two places. The Spark's host has no Rust toolchain, and its CUDA is 13.0, so I build
    in the dev container (CUDA 13.3.1) and sit on the host with BLOOMERY_ENV_FILE pointing at a host environment file.
    The build also needs the local .cargo/cuda-oxide.toml edit docs/BUILD.md describes (target-cpu=native for
    aarch64), which cargo, tools: host CPU flags per target triple (S2, pin 87bc9518) #36 would make unnecessary.

  • journalctl -k can answer rc 0 with nothing on stdout and a notice on stderr, for a user outside the adm and
    systemd-journal groups. Read with 2>&1, the notice looks like a journal line and the Xid count reads 0 for the
    whole sitting. To reproduce: run journalctl -k -n 1 -o short-unix --no-pager -q as such a user and check stdout and
    stderr apart. Local mode now reads stdout only. The box's other journal reads (xid_read) still merge the two, which
    is harmless there because they keep only NVRM: Xid lines.

Hardware

DGX Spark: NVIDIA GB10 (compute capability 12.1), driver 595.84, CPU Cortex-X925 and Cortex-A725 (20 cores), 128 GB
unified memory (MemTotal 127535276 kB), Ubuntu 24.04.5 LTS (DGX OS 7.6.0), kernel 6.17.0-1032-nvidia.

nvidia-smi --query-gpu=name,driver_version,clocks.max.sm,power.limit --format=csv
name, driver_version, clocks.max.sm [MHz], power.limit [W]
NVIDIA GB10, 595.84, 3003 MHz, [N/A]

The dev container has CUDA 13.3.1, LLVM 21.1.8 and the pinned nightly; the host has CUDA 13.0 (for llama.cpp), not on
PATH. The kernels are sm_86 PTX through the driver's JIT (docs/contrib/dgx-spark.md section 5, answer 7). The clocks
are the GB10's defaults, with no lock or cap (clocks.max.sm above); the witness prints the SM clock and the
clock-event mask at both ends of every arm.

Docs

I did not change the docs. Spots this makes stale (line numbers at 7e4fb051):

  • docs/contrib/dgx-spark.md section 3.5: the first two items (the single-card timing mode and the witness) are built,
    in tools/ref/timing-card.sh under BLOOMERY_BOX_CARD=local. Its references timing-card.sh:36, :92-93 and :130
    are now :50, :143-144 and :188; :27 is unchanged.
  • docs/contrib/dgx-spark.md:27, the sparkprep S4 row ("tools for N cards", not done): timing-card.sh now times one
    card in local mode, picked by UUID. cards.sh still names two cards.
  • docs/contrib/dgx-spark.md section 4, the P3 row: its Files cell lists the timing-card.sh single-card mode.
  • CONTRIBUTING.md:57-58: the lease runners "run only on the maintainers' box today (they take a lease under /root
    and pick the timing card by name)". depth-qwen3moe.sh now runs on a contributor's machine in local mode.

@midagedev

Copy link
Copy Markdown
Owner

Thank you. I am reviewing this now and will reply with findings or put it in the next landing train.

@midagedev

Copy link
Copy Markdown
Owner

Thank you. I am checking 7c8862b with #38 now. Both go into the next landing together.

midagedev and others added 11 commits October 11, 2026 21:39
… and decision share one expansion

serve::media::expand_spans (each placeholder run of the prompt ids expanded to its image's
token count, a placeholder carried in text refused by name) moves with Expanded and ExpandError
to crates/vision/src/media.rs, the model-generic owner beside MediaModel, so the decision crate
can call it without a serve dependency. serve calls it and maps ExpandError into MediaError.
A move: serve's gates unchanged and green.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… as the release does (vision R4c-b)

- request: images in llama.cpp's order (the request's `images`, then the state's image_url
  parts), each a data URL, at most 8; the state comes back without those parts. videos stays
  501, a non-data URL and a ninth image stay 400. The request is valid with images; encode and
  the label model refuse them by name (NotSupported, llama.cpp's hint), so today's seats answer
  as before.
- encode_media(tok, req, &dyn MediaModel, counts, max): the media piece is the placeholders and
  a "\n" tokenized in one call, each pad run expanded to its image's count through
  vision::media::expand_spans; Encoded.image_spans names them; fixed counts the media ids; a
  placeholder in text and media ids past the context are refused by name.
- gate-decision-clef: hw_clef_image_ids_equal_the_release — every set D request's input_ids equal
  the release's, list for list (6 of 6). Set D (images.jsonl) states no identity, so this clause
  reads it raw beside the same run's reference.jsonl (its revision equals clefvis.sh's, its ids
  equal) — a substitute for a family check until the writer states one.
FAIL-first: D3 (no "\n" after the last image) red on the box at c1 234, c2 1108, c3 234, i640
338, i1024 806; D1 and D2 red in host tests (set D has no state image part to catch them).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ile, from the listing or the verified cache

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eat flags and projector, the encoder reserve in the whole-fit verdict (qwen35_open::open_seated), Body35's media hidden call, the image refusals by name

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s with the encoder, 501 with llama.cpp's hint without it, the image 400s, the --hf projector pick

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… open_tower open a seat's projector and tower for any serve seat, merged_cells and Flags::wanted beside them (span_rows loses its rows_of parameter); image_plan holds the plan's side of an image input free of the encoder crates (the tower's reserve on the stage card, the refusal that names it, the rotation table's bytes per position) so every build's placement can take it; ds41's seat opens through them

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd prefill_media in serve_seats/qwen3, the tower's reserve and the rotation tables in qwen3moe's placed plan and whole fit (each named in the ctx and whole-fit lines), the &VISION record; gate_qwen3_serve's --images clauses: set E prompt ids, set F chat inside the CUDA/CPU agreeing prefix with a first divergence only at a near tie (PIN F_NEAR_TIE 0.1), an image slot beside a text slot, the refusals and the plan's reserve, each FAIL-first by its own mutant

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ion_seat::open_seat takes the file the seat resolved (the decide seat's --hf pick), open_tower, merged_cells; the whole-fit line's encoder note has one owner, image_plan::note

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the gates that reach it, the Qwen3.6 image clause's plan budget has its defaults twin, rustfmt

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…is tree on a contributor's machine with a card of its own

- docs/contrib/local-check.md rows 1, 3, 4, 5 and 7. No ssh and no rsync: bash runs the same command line in this tree,
  guard and profile and exports included. The environment file is BLOOMERY_ENV_FILE (default ~/bloomery-env.sh; missing: 69).
  Refused (64) on a host that is not Linux, with BLOOMERY_BOX_QUEUE=1, and where /root/bloomery-cpu.lock exists.
- BLOOMERY_LOCK_DIR (tools/ref/lease-probe.sh's LOCK_DIR, /root when unset) holds the timing lease, the holds, the gate
  locks, the V4.1 load lock and queue and the batch hold. Local mode defaults it to ~/.cache/bloomery/locks and makes it.
  It refuses (64) a relative path, which two trees would read apart, and /root however it is spelled, where its guard
  would make the box's lease file; an environment file or BLOOMERY_BOX_ENV that moves it after the guard is refused (64),
  and so is an environment file's BLOOMERY_ARCH other than the one the recipe expanded. lease-probe.sh's holds glob and
  give-way check and gpu-gate.sh's lock descriptors take the path whole, so a path with a space or a ; works.
- lease-probe.sh owns the box's mark: on_box (/root/bloomery-cpu.lock exists) and box_lock_dir (a directory that is
  /root). box.sh, gpu-gate.sh and lease_take read them.
- gpu-gate.sh: BLOOMERY_BOX_CARD=local takes one lock, bloomery-gate-local.lock, for what the machine shows, and leaves
  CUDA_VISIBLE_DEVICES as it finds it; its lock directory is never /root (64). `both` in BLOOMERY_CARD or
  BLOOMERY_GATE_CARD is refused (64); a held lease is waited for as the lock is. On the box, BLOOMERY_BOX_CARD=local and
  a BLOOMERY_LOCK_DIR other than /root are refused (64), as lease_take refuses another lease file there.
- CUDA_OXIDE_BACKEND is unset after the environment file (row 7), so cargo oxide builds and keeps its own backend (no
  rc 70 check). BLOOMERY_REMOTE adds no CARGO_BUILD_JOBS.
- The command runs without the variables box.sh reads on this side (BLOOMERY_MODEL above all: the model crate's tests read
  it as a model path), without box.sh's own outputs (BLOOMERY_REF_MODEL_PROFILE, the fixture tier's BLOOMERY_CARD_BUDGET
  and BLOOMERY_FIXTURE_MODEL) and without the lease's file names, as over ssh.
- box-gc.sh refuses (64) local mode: its root is then the contributor's tree, whose binaries are their own runs.
- Unset or 0 leaves the ssh, rsync and queue arguments box.sh builds byte-identical, direct and queued.
- card-tests: the local mode cases, the lock directory (two holds' give-way under a path with a space among them), the
  refusals, LOCAL=0 against unset, and on the box gpu-gate.sh's box refusals; the helpers drop the new variables a caller
  in local mode would pass. gpu-gate.sh --self-test: the local lock, the V4.1 load lock, a held lease.
FAIL-first: against main's box.sh, gpu-gate.sh, lease-probe.sh, lease.sh and box-gc.sh, 27 card tests are red. With
gpu-gate.sh's local arm removed the self-test's six local cases are red, and with take_local not reading the lease its
lease case is red. On a stand-in for the box (a root container where /root/bloomery-cpu.lock exists), removing
gpu-gate.sh's box refusal turns its two card tests red.
…ERY_BOX_CARD=local): timing-card.sh times the one card nvidia-smi lists by UUID, the lease and its trace sit in BLOOMERY_LOCK_DIR, the witness prints the card, its Xid count, the shared memory pool and the machine, and depth-qwen3moe.sh fails an arm on an Xid or a lost card

FAIL-first: against the local mode commit's timing-card.sh, lease.sh, arm-place.sh, depth-qwen3moe.sh and lcpp-warm.sh,
18 card tests are red on a Mac (the same 18 of 583 on Linux): 17 of the 18 local mode cases (the 18th, an arm on a card
that answers, is a control) and lease_take's machine lease under BLOOMERY_LOCK_DIR. With lease.sh's local label and its
trace path in the lock directory removed, the lease self-test's tag-local-busy and trace-file-lock-dir are red. Against
the local mode commit's runner the stub suite's local, local-xid and local-twocard cases are red (3 of 69, on Linux).
With the journal check reading its stderr with its stdout, the case of a journal that only warns on stderr is red; with
the local refusal tagged [timing-cards], its tag case is red. The pool line's fields are pinned by the stub suite's
local case alone (with the earlier pool line, 1 of 69 is red on Linux); the bound on the UUID query and the journal
check's skip for root have no test that can see them.
@midagedev

Copy link
Copy Markdown
Owner

Same as #38: this branch now points at its commit in the 0.3.0 release train. It lands with the release tonight.

@midagedev
midagedev merged commit 2fd0ea1 into midagedev:main Oct 11, 2026
1 check failed
juliankang4 added a commit to juliankang4/bloomery that referenced this pull request Oct 13, 2026
…e on their own machine, with local mode (midagedev#38), single-card timing (midagedev#39) and aarch64 T1 (midagedev#83) as built

The page says what to run on a Mac, on Linux with no card and on Linux with an NVIDIA card, and
what each result shows. The box assumptions table moves to a reference section with a state
column; its two counts do not reproduce at the commit that wrote them, so each is struck through
beside the count at 3bc2a17 and its command. The open questions keep their numbers, 2 and 3
marked answered and midagedev#38's question 2 added as 4.
juliankang4 added a commit to juliankang4/bloomery that referenced this pull request Oct 13, 2026
…e on their own machine, with local mode (midagedev#38), single-card timing (midagedev#39) and aarch64 T1 (midagedev#83) as built

The page says what to run on a Mac, on Linux with no card and on Linux with an NVIDIA card, and
what each result shows. The box assumptions table moves to a reference section with a state
column; its two counts do not reproduce at the commit that wrote them, so each is struck through
beside the count at 3bc2a17 and its command. The open questions keep their numbers, 2 and 3
marked answered and midagedev#38's question 2 added as 4.
juliankang4 added a commit to juliankang4/bloomery that referenced this pull request Oct 13, 2026
…e on their own machine, with local mode (midagedev#38), single-card timing (midagedev#39) and aarch64 T1 (midagedev#83) as built

The page says what to run on a Mac, on Linux with no card and on Linux with an NVIDIA card, and
what each result shows. The box assumptions table moves to a reference section with a state
column; its two counts do not reproduce at the commit that wrote them, so each is struck through
beside the count at 3bc2a17 and its command. The open questions keep their numbers, 2 and 3
marked answered and midagedev#38's question 2 added as 4.
midagedev pushed a commit that referenced this pull request Oct 13, 2026
…e on their own machine, with local mode (#38), single-card timing (#39) and aarch64 T1 (#83) as built

The page says what to run on a Mac, on Linux with no card and on Linux with an NVIDIA card, and
what each result shows. The box assumptions table moves to a reference section with a state
column; its two counts do not reproduce at the commit that wrote them, so each is struck through
beside the count at 3bc2a17 and its command. The open questions keep their numbers, 2 and 3
marked answered and #38's question 2 added as 4.
juliankang4 added a commit that referenced this pull request Oct 13, 2026
…s what its earlier commits earned

A merged pull request is labelled from its merge commit against that commit's first parent. A rebase merge, the only
kind this repository's merge button allows, has no merge commit: merge_commit_sha is the pull request's last commit,
so the diff covers that commit alone, and the labels its open runs put on for the earlier commits came off at the
merge. A merge now adds labels and removes none. Walking back the pull request's commits does not fix the diff: a
stack pushed at once (#27, #36, #38, #39) lists every commit below it, so each would take the whole stack's labels.
@juliankang4 juliankang4 added host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo labels Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants