Skip to content

autotune: the MXFP8 gemv of four to eight columns picks its way at load, on the model's own weights, by the margin on every repeat (#1151) - #1161

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-spd-autotune
Nov 4, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-spd-autotune

Conversation

@juliankang4

@juliankang4 juliankang4 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

모델을 올릴 때 MXFP8 gemv(4~8열)의 실행 방식을 그 모델의 실제 weight로 재서 고르고, 결과를 cost store에 저장해 다음 load에서 다시 쓰게 했습니다.

What and why

At load, after the weights are resident and before the graphs are captured, the Qwen3.8 seat times each MXFP8 gemv signature (rows, k, m for m = 4 to 8) on the model's own resident weights. The candidate ways are today's rule, the plain _mcol walk and, for m above 4, a split (the first four columns staged, the rest by the rule for that column count). A way replaces the rule only when it is faster on every repeat and its median gain is larger than the larger of the two spreads. A bad or non-finite sample is a named panic, and a cache entry that does not decode is timed again. The picks are kept in the cost store under the card, the build, the kernel and the signature, so a second load reads them and measures nothing.

Refs #1151. --autotune on|off (lever BLOOMERY_AUTOTUNE, default on) controls it; off keeps today's dispatch and opens no store. /props reports engine.autotune with each pick, its way and whether it was measured or stored. gate_mxfp8 gains the clauses ways.bits (every way, both output layouts, bit for bit against the column-by-column result) and autotune.miss, autotune.hit and autotune.bad_entry. bench_picks now launches each way it races, so its MXFP8 candidates are the real ones. docs/serving.md and docs/research/kernel-picks.md describe the load step.

Release notes: Added: the Qwen3.8 load picks the fastest way to run the MXFP8 gemv at four to eight columns on the card in use, keeps the picks in the cost store, and leaves the output unchanged; --autotune off keeps the fixed rule.

Code shape

The review reads these first. A box left unticked needs one line of why.

  • No second copy. Logic two models (or two call sites) share has one common owner; I lifted it there instead of
    copying it (AGENTS.md "Common code first", docs/rust-quality.md R14). Where I found an existing copy, I
    named it below.
  • Model code holds only architecture facts. A model's own files carry only what its architecture forces
    (tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
  • Dead code is gone. Nothing I made unused is left behind (functions, flags, gate clauses, docs).
  • No silent failure. Undefined input is a named error or panic, never a defined-looking output.
  • Comments state what is true now. No dates, issue numbers or how a bug was found (tools/check-comments.sh).
  • No relaxed gate. No band, tolerance or lint moved to make a check pass; a re-pin carries PIN(YYYY-MM-DD):
    and its reason.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up.

Duplication found or removed (path:line), or "none": the gate's own forced-way bench is gone and bench_picks is the one bench for the MXFP8 ways (crates/gpu-gates/src/bin/gate_mxfp8.rs, crates/gpu-gates/src/bin/bench_picks.rs). Store::get_or and Store::get_or_retime share one body, Store::entry (crates/runtime/src/costs.rs:442). The staged-kernel k multiple has one owner, STAGED_K (crates/gpu/src/q8f32.rs:1576), and the weight size comes from planes::Format (crates/gpu/src/autotune.rs:244).

What I ran

Upstream base c446bc7420e365a0b15d1181fa7efc20a723f5af, PR head 2b82d258412c9a7b7abbc3df5d2398fc5bd5058d.

Static checks (the clippy ratchet lint with the workspace feature set, tools/lint-ratchet.txt):

chain-clippy: lint rc 0 (^warning: 0, the ratchet 0 in tools/lint-ratchet.txt)

GB10 gate and unit tests. The card and driver:

$ nvidia-smi
Wed Nov  4 03:50:42 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 615.71.09              KMD Version: 615.71.09     CUDA UMD Version: 13.4     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GB10                    On  |   0000000F:01:00.0 Off |                  N/A |
| N/A   44C    P8              4W /  N/A  | Not Supported          |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

$ nvidia-smi --query-gpu=name,driver_version --format=csv,noheader
NVIDIA GB10, 615.71.09
just gate-gpu-mxfp8
U2FIX2 gate-gpu-mxfp8 rc=0 pass=745 fail=0
mxfp8 clause=autotune.miss picks=25 want=25 measured=25 moved=9 wall_ms=818 PASS
mxfp8 clause=autotune.hit measured=0 same_ways=true PASS
mxfp8 clause=autotune.bad_entry measured=1 picks=25 PASS
mxfp8 clause=autotune.hit measured=0 same_ways=true PASS
mxfp8 clause=autotune.bad_entry measured=1 picks=25 PASS
gpu-gate.sh: gate_mxfp8 ran 39 s (exit 0)

./tools/box.sh "bash tools/gate.sh --gpu --oxide -p bloomery-gpu --release --lib -- --include-ignored autotune::"
test autotune::tests::a_table_runs_its_picks_and_the_rule_elsewhere ... ok
test autotune::tests::hw_installed_picks_steer_the_launch ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 492 filtered out; finished in 22.90s
U2FIX2 gpu lib autotune:: rc=0

On the PR head, just gate-gpu-mxfp8 fails with each of two edits to the code and passes once they are undone. First the split's trailing columns written at output offset 0 (WindowMut::<f32>::of_mut(y, 0, y.len() - at) in crates/gpu/src/q8f32.rs), then the cached-pick check bypassed (let keep = |_: &[f64]| true; in crates/gpu/src/autotune.rs):

just gate-gpu-mxfp8   # split output offset 0
U2FIX3 FAIL-first split-offset-zero rc=1 (want nonzero) pass=721 fail=24
mxfp8 clause=ways.written shape=blk.3.attn_q_b rows=16384 k=1536 m=5 way=split out=TokenMajor FAIL
mxfp8 clause=ways.band shape=blk.3.attn_q_b rows=16384 k=1536 m=5 way=split out=TokenMajor worst_err_over_band=3.773e5 FAIL
mxfp8 clause=ways.bits shape=blk.3.attn_q_b rows=16384 k=1536 m=5 way=split out=TokenMajor equal=49152/81920 FAIL
mxfp8 clause=ways.bits shape=blk.3.attn_q_b rows=16384 k=1536 m=5 way=split out=RowMajor equal=49152/81920 FAIL
GPU GATE RED: gate_mxfp8 (exit 1)

just gate-gpu-mxfp8   # cached-pick check bypassed
U2FIX3 FAIL-first pick-unchecked rc=101 (want nonzero) pass=742 fail=0
thread 'main' (7396) panicked at crates/gpu/src/autotune.rs:204:26:
GPU GATE RED: gate_mxfp8 (exit 101)

just gate-gpu-mxfp8   # both edits undone
U2FIX3 restored gate-gpu-mxfp8 rc=0 pass=745 fail=0
mxfp8 clause=autotune.bad_entry measured=1 picks=25 PASS
mxfp8 clause=ways.band shape=blk.3.attn_q_b rows=16384 k=1536 m=5 way=split out=TokenMajor worst_err_over_band=5.562e-2 PASS
mxfp8 clause=ways.bits shape=blk.3.attn_q_b rows=16384 k=1536 m=5 way=split out=TokenMajor equal=81920/81920 PASS
gpu-gate.sh: gate_mxfp8 ran 41 s (exit 0)

bench_picks forces each way that the picker races and compares the bits against the other ways:

just bench-picks-check --arm mxfp8
U2FIX bench_picks --check --arm mxfp8 rc=0 rows=96
kcal check label=mxfp8_10240x2560_m4 family=mxfp8 shape=10240x2560 rows=10240 k=2560 experts=1 slots=4 cands=staged,plain bits=equal
kcal check label=mxfp8_10240x2560_m8 family=mxfp8 shape=10240x2560 rows=10240 k=2560 experts=1 slots=8 cands=staged_wide,plain,split bits=equal
kcal check label=mxfp8_96x2560_m4 family=mxfp8 shape=96x2560 rows=96 k=2560 experts=1 slots=4 cands=staged,plain bits=equal
kcal check label=mxfp8_96x2560_m8 family=mxfp8 shape=96x2560 rows=96 k=2560 experts=1 slots=8 cands=staged_wide,plain,split bits=equal

Real load of Qwen3.8 FP4-Local with MTP, --autotune off, then on over an empty cost store, then on again over the same store, each followed by one greedy completion (96 tokens, temperature 0). Model: nvidia/Qwen3.8-Flash-Next-FP4-Local, revision b9ce18a6887e18c089fdea8509a33e63429a3300 (nvidia__Qwen3.8-Flash-Next-FP4-Local/b9ce18a6887e18c089fdea8509a33e63429a3300, 32 files, every file checked against its SHA256SUMS). $MODELS holds that folder, $FEATURES is the feature list in tools/release/build.sh.

cargo oxide build --arch "$(bash tools/arch.sh)" -- -p bloomery-gpu-gates --features "$FEATURES" --release --bin bloomery-serve
BLOOMERY_COSTS="$STORE" ./target/release/bloomery-serve -m "$MODELS/nvidia__Qwen3.8-Flash-Next-FP4-Local/b9ce18a6887e18c089fdea8509a33e63429a3300" \
  --host 127.0.0.1 --port 18761 --parallel 1 --ctx-size 8192 --autotune off   # then --autotune on twice
curl -s -X POST http://127.0.0.1:18761/completion -H 'Content-Type: application/json' --data @req.json

req.json holds the prompt " ".join(f"Paragraph {i}: the river carries silt to the delta, where farmers plant rice in the wet season and wheat in the dry one." for i in range(40)) + "\nSummarize the farming pattern in three sentences:" with n_predict 96, temperature 0, cache_prompt false and return_tokens true.

On the GB10, the loads and the picks that moved off the rule (rule_us is today's rule, way_us the picked way, microseconds):

autotune on signatures=45 measured=45 stored=0 picked=7 in 2.168 s (runtime value)
autotune on signatures=45 measured=0 stored=45 picked=7 in 0.003 s (runtime value)
autotune pick kernel=mxfp8_gemv_mcol rows=96 k=2560 m=5 way=plain from=measured rule_us=8.38 way_us=6.74
autotune pick kernel=mxfp8_gemv_mcol rows=128 k=2560 m=4 way=plain from=measured rule_us=6.48 way_us=6.38
autotune pick kernel=mxfp8_gemv_mcol rows=128 k=2560 m=5 way=plain from=measured rule_us=8.44 way_us=6.80
autotune pick kernel=mxfp8_gemv_mcol rows=128 k=2560 m=6 way=plain from=measured rule_us=8.96 way_us=8.47
autotune pick kernel=mxfp8_gemv_mcol rows=512 k=2560 m=4 way=plain from=measured rule_us=10.83 way_us=10.39
autotune pick kernel=mxfp8_gemv_mcol rows=512 k=2560 m=6 way=plain from=measured rule_us=13.57 way_us=12.85
autotune pick kernel=mxfp8_gemv_mcol rows=640 k=2560 m=5 way=plain from=measured rule_us=13.77 way_us=11.19
U2 off props autotune mode off ms 0 picks 0 moved 0 from []
U2 on-miss props autotune mode on ms 2168 picks 45 moved 7 from ['measured']
U2 on-hit props autotune mode on ms 3 picks 45 moved 7 from ['stored']
U2 equal off/on-miss True on-miss/on-hit True

On the RTX 5090, the card and driver:

$ nvidia-smi
Wed Nov  4 10:10:33 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 595.99.02              Driver Version: 595.99.02      CUDA Version: 13.2     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5090        Off |   00000000:01:00.0  On |                  N/A |
|  0%   44C    P8             15W /  400W |      34MiB /  32607MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

$ nvidia-smi --query-gpu=name,driver_version --format=csv,noheader
NVIDIA GeForce RTX 5090, 595.99.02

The loads and picks:

autotune on signatures=45 measured=45 stored=0 picked=18 in 1.593 s (runtime value)
autotune on signatures=45 measured=0 stored=45 picked=18 in 0.002 s (runtime value)
autotune pick kernel=mxfp8_gemv_mcol rows=96 k=2560 m=5 way=plain from=measured rule_us=6.66 way_us=5.63
autotune pick kernel=mxfp8_gemv_mcol rows=128 k=2560 m=4 way=plain from=measured rule_us=5.36 way_us=5.35
autotune pick kernel=mxfp8_gemv_mcol rows=128 k=2560 m=5 way=plain from=measured rule_us=6.69 way_us=5.65
autotune pick kernel=mxfp8_gemv_mcol rows=512 k=2560 m=5 way=plain from=measured rule_us=6.89 way_us=6.17
autotune pick kernel=mxfp8_gemv_mcol rows=512 k=2560 m=6 way=plain from=measured rule_us=7.51 way_us=7.36
autotune pick kernel=mxfp8_gemv_mcol rows=640 k=2560 m=5 way=plain from=measured rule_us=7.90 way_us=7.20
autotune pick kernel=mxfp8_gemv_mcol rows=2560 k=6144 m=5 way=plain from=measured rule_us=19.16 way_us=16.69
autotune pick kernel=mxfp8_gemv_mcol rows=10240 k=2560 m=5 way=plain from=measured rule_us=26.98 way_us=24.45
autotune pick kernel=mxfp8_gemv_mcol rows=10240 k=2560 m=6 way=plain from=measured rule_us=30.15 way_us=28.44
autotune pick kernel=mxfp8_gemv_mcol rows=12288 k=2560 m=5 way=plain from=measured rule_us=31.64 way_us=29.15
autotune pick kernel=mxfp8_gemv_mcol rows=12288 k=2560 m=6 way=plain from=measured rule_us=37.71 way_us=35.17
autotune pick kernel=mxfp8_gemv_mcol rows=12288 k=2560 m=7 way=split from=measured rule_us=45.22 way_us=41.54
autotune pick kernel=mxfp8_gemv_mcol rows=12288 k=2560 m=8 way=split from=measured rule_us=50.17 way_us=46.58
autotune pick kernel=mxfp8_gemv_mcol rows=248320 k=2560 m=4 way=plain from=measured rule_us=514.06 way_us=497.25
autotune pick kernel=mxfp8_gemv_mcol rows=248320 k=2560 m=5 way=plain from=measured rule_us=709.41 way_us=558.39
autotune pick kernel=mxfp8_gemv_mcol rows=248320 k=2560 m=6 way=plain from=measured rule_us=829.78 way_us=658.14
autotune pick kernel=mxfp8_gemv_mcol rows=248320 k=2560 m=7 way=plain from=measured rule_us=954.06 way_us=815.40
autotune pick kernel=mxfp8_gemv_mcol rows=248320 k=2560 m=8 way=plain from=measured rule_us=1032.13 way_us=879.90
U2 off props autotune mode off ms 0 picks 0 moved 0 from []
U2 on-miss props autotune mode on ms 1592 picks 45 moved 18 from ['measured']
U2 on-hit props autotune mode on ms 2 picks 45 moved 18 from ['stored']
U2 equal off/on-miss True on-miss/on-hit True

Hardware (if the change is for a machine)

Machine Card Driver CUDA
DGX Spark NVIDIA GB10 (sm_121a) 615.71.09 13.4
RTX 5090 machine NVIDIA GeForce RTX 5090 (sm_120a) 595.99.02 13.2

AI help

AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.

@github-actions github-actions Bot added documentation Improvements or additions to documentation gpu The card engine: crates/gpu*, crates/app host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset needs-gpu Changes code a card must check, and carries no gate run on a card serve The HTTP server: crates/serve labels Nov 4, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MUST_FIX: the new cache gate silently discards directory-entry errors.

Must fix

1. Propagate errors while enumerating the cost store

crates/gpu-gates/src/bin/gate_mxfp8.rs:592 drops each ReadDir error. An error followed by a valid .costs entry still reaches the cache checks and can report PASS. This is a kind B silent-failure defect.
Propagating the error now keeps the new gate from accepting an invalid run. Replace .filter_map(Result::ok) with:

            .collect::<Result<Vec<_>, _>>()?
            .into_iter()

2. Remove the single-use launch wrapper

crates/gpu/src/autotune.rs:324 introduces a seven-argument wrapper used only by race at line 279. It only constructs the existing launch arguments and forwards the call. This is a kind B unneeded element.
Inlining removes a function and leaves race within R12's two-screen limit. Delete launch, change the import to use cuda_core::DeviceBuffer;, and replace the rotation expression inside gpu.capture with:

            ws.iter().cycle().take(launches).try_for_each(|&w| {
                q8.enqueue_e4m3_gemv_way(
                    st,
                    E4m3GemvArgs {
                        w,
                        x,
                        m: sig.m,
                        out: GemvOut::TokenMajor,
                        y: &mut *y,
                    },
                    way,
                )
            })

Non-blocking

⚠ Supply FAIL-first evidence: crates/gpu-gates/src/bin/gate_mxfp8.rs:651. The body shows passing runs, but no failing run for the new clauses. Change the split output offset to zero and separately bypass cached-pick validation; attach the failing gate output and the restored passing output. This establishes recurrence coverage before merge.

⚠ Supply timing for the changed dispatch: crates/gpu/src/q8f32.rs:3571. Each split adds one launch and another rows*k*33/32 logical weight bytes per affected projection per verify pass. The launch-count change has its owning bit gate; the body reports isolated race medians and equal completion tokens. An off/on verify A/B on a workload selecting split would establish the effect on serving time.

Checked

Duplicates/elements: 57 new declaration occurrences checked; no proven duplicate; one unnecessary wrapper above. Dryer produced no pairs because it did not run.
Complexity: no crapper results. Manually reviewed the added dispatch branches in e4m3_gemv, validation branches in Store::entry, and the capture/warmup/sample stages in new race.
Silent failure: 8 sites followed. Directory errors disappear as reported above; absent levers and picks use defined defaults; the replay clamp bounds work; invalid cache bytes remeasure or error; String formatting cannot fail; ignored test cleanup can leave its directory.
Tests: static mutation review only. Dropped per-repeat comparison, ignored installed picks, skipped cache validation, wrong split offset, omitted props, ignored lever override, and changed invalid-UTF-8 handling reach failing assertions or gate checks. CUDA tests were not rerun.
Gates: none relaxed or removed; no existing pin moved.
Adversarial checks: split windows preserve both layouts' bounds; corrupt picks are validated before indexing; empty/non-MXFP8 weight sets install the default rule.
Escape catalog: no matching patterns. No ledger lessons were in force.

Notes

Dryer and crapper did not run because their Python modules were missing.

Card check: gpu-evidence. This pull request changes crates/gpu-gates/src/bin/bench_picks.rs, crates/gpu-gates/src/bin/bloomery_serve_qwen38.rs, crates/gpu-gates/src/bin/gate_mxfp8.rs … and carries a gate run on the author's card, which counts as verified.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

Comment thread crates/gpu-gates/src/bin/gate_mxfp8.rs Outdated
let first = autotune::tune(gpu, &w, "gate_mxfp8", &store)?;
let second = autotune::tune(gpu, &w, "gate_mxfp8", &store)?;
let entry = std::fs::read_dir(&store_dir)?
.filter_map(Result::ok)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Propagate directory-entry errors instead of allowing the cache gate to pass after discarding them.

Suggested change
.filter_map(Result::ok)
.collect::<Result<Vec<_>, _>>()?
.into_iter()

@github-actions github-actions Bot added gpu-evidence Verified on the author's card: the pull request carries the gate run and its output and removed needs-gpu Changes code a card must check, and carries no gate run on a card labels Nov 4, 2026
…ad, on the model's own weights, by the margin on every repeat (midagedev#1151)

One owner beside site.rs, bloomery_gpu::autotune. A site registers its
bit-equal ways; the MXFP8 gemv at four to eight columns over rows the staged
entries read has three (Mcol): today's rule, the plain _mcol walk, and the
first four columns staged with the rest by the rule at their count. After the
load and before any capture, GpuModel::autotune times each way on every
resident MXFP8 weight of a signature (rows, k, m), rotating over the weights
up to 512 MiB and 64 of them, five repeats with the ways interleaved. A way
replaces the rule only when it is faster on every repeat and its median gain
exceeds the larger repeat spread (runtime::autotune::winner). The picks are
installed once on the card's launchers and never change while it serves.

Each pick is kept in the cost store under the card, the driver, the build and
the signature (Store::get_or_retime): a later load reads it and times
nothing, and an entry that does not decode or names a way its signature does
not race is timed again. The qwen38 seat takes --autotune on|off over
BLOOMERY_AUTOTUNE, on by default; off runs today's rule with no timing and no
store. The load prints an autotune pick line a signature and the wall, and
/props' engine.autotune lists the picks.

gate_mxfp8 runs every way in both layouts against the walk's bits, and the
picker's miss, hit and bad entry on a store of its own. bench_picks forces
each way the picker races, in place of the proxy pair at k - 128, on Qwen3.8's
verify shapes.
@juliankang4
juliankang4 force-pushed the dgx-spark-q38-spd-autotune branch from f365a93 to 2b82d25 Compare November 4, 2026 05:42

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the last review:

  • Must-fix 1 fixed: directory-entry errors now propagate.
  • Must-fix 2 fixed: the single-use launch wrapper is removed.
  • FAIL-first evidence still open: gate_mxfp8.rs:652.
  • Split-dispatch timing still open: q8f32.rs:3571.

Verdict: CLEAN: both previous must-fix items are resolved, and the interdiff introduces no proven defect.

Non-blocking

⚠ Supply FAIL-first evidence: crates/gpu-gates/src/bin/gate_mxfp8.rs:652. The body still shows only passing runs. Set the split output offset to zero and separately bypass cached-pick validation. Attach the failing gate output and restored passing output to establish recurrence coverage.

⚠ Supply timing for the changed dispatch: crates/gpu/src/q8f32.rs:3571. Each split adds one launch and another rows*k*33/32 logical weight bytes per affected projection per verify pass [derived]. The body has isolated race medians and equal completion tokens. Attach an off/on verify A/B on a workload selecting split to establish its effect on serving time.

Checked

Duplicates/elements: 0 new declarations in the interdiff; one wrapper removed. No new duplicate. Dryer supplied no pairs.
Complexity: crapper supplied no results. Inlining in race adds no branch; directory enumeration now collects errors before searching.
Silent failure: 2 paths followed. Directory-entry errors abort the gate. Launch errors abort capture and prevent a cache write or pick installation.
Tests: no assertions changed. Static mutation review: a zero split output offset fails the bit comparison; bypassed cache validation fails the corrupt-entry case. CUDA gates were not rerun.
Gates: no gate removed or relaxed; no pin moved.
Adversarial checks: an entry error after a valid cache filename still propagates; failure on a later rotated weight stops capture and reaches the caller. Launch arguments and order are preserved.
Escape catalog: no matching patterns. No ledger lessons were in force.

Notes

Dryer and crapper did not run because their Python modules were missing. Attached GPU evidence covers the previously reviewed head f365a93f; this interdiff was reviewed statically.

Card check: gpu-evidence. This pull request changes crates/gpu-gates/src/bin/bench_picks.rs, crates/gpu-gates/src/bin/bloomery_serve_qwen38.rs, crates/gpu-gates/src/bin/gate_mxfp8.rs … and carries a gate run on the author's card, which counts as verified.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit 48ada1a into midagedev:main Nov 4, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation gpu The card engine: crates/gpu*, crates/app gpu-evidence Verified on the author's card: the pull request carries the gate run and its output host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset serve The HTTP server: crates/serve

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant