Skip to content

docs: record the completed engine#315 rate study - #358

Merged
bong-water-water-bong merged 5 commits into
mainfrom
docs/known-issues-315-rate-study
Oct 8, 2026
Merged

bong-water-water-bong merged 5 commits into
mainfrom
docs/known-issues-315-rate-study

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Follow-up to #352. KNOWN-ISSUES.md said the 40-arm vs 30-arm rate study "must be reported before any rate is quoted here"; the study finished after the doc merged (result comment on #315, 2026-10-07T21:18Z).

Adds the accounting the entry asked for and the bounded reading:

arms in-regime complete clean 66/66 NaN rate (95% CI) parse-500
A shipped fix (10604 = 3971f49bf) 40 40 37 35 2 (parse=0) 5.4% (0.7-18.2%) 3
B always-stage (10605) 30 30 25 24 1 4.0% (0.1-20.4%) 5

Fisher exact two-sided p = 1.000; P(rate_A < rate_B) = 0.460. All 70 arms at gtt_start = 102 GiB; parse-500 truncations counted separately, not as clean arms.

Docs only; no code, pins or workflow changes.

bong-water-water-bong and others added 2 commits October 7, 2026 23:06
The entry said the 40-vs-30 arm rate study 'must be reported before any rate is
quoted here'; it finished after the doc merged. Add the per-arm regime gate,
completion and truncation accounting, the rates with Clopper-Pearson CIs, and the
Fisher exact result, and state the bounded reading.
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 031ec18)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

352 - Partially compliant

Compliant requirements:

  • Add a KNOWN-ISSUES.md file
  • Record engine#315 as a documented limitation
  • Include reproduction details, failure modes, and tested/excluded levers
  • Document the rate study results and their implications

Non-compliant requirements:

  • None

Requires further human verification:

  • None

315 - Partially compliant

Compliant requirements:

  • Document the intermittent HSA memory fault / NaN logits issue on GLM-4.7-Flash
  • Record the reproduction conditions and results
  • Include details about the runtime-side and kernel-side candidates for fixing the issue
  • Document the rate study results showing no significant change in fault rate

Non-compliant requirements:

  • None

Requires further human verification:

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

Documentation Clarity

The documentation updates are clear and comprehensive, but the PR description mentions that the rate study was completed after the initial documentation was merged. It would be beneficial to explicitly state in the documentation that the study was completed post-merge to avoid confusion.

not eliminate it. The rate study is complete, and its per-arm regime gate and truncation accounting are reported
here — both halves ran at `gtt_start = 102 GiB` on all 70 arms, and parse-500 truncations are counted separately,
never scored as clean arms:

A shipped fix (10604 = 3971f49bf) 40 scheduled, 40 in-regime, 37 complete
clean 66/66: 35 NaN faults: 2 (both parse=0, inside the gate) rate 2/37 = 5.4% (95% CI 0.7-18.2%) parse-500: 3
B always-stage (10605) 30 scheduled, 30 in-regime, 25 complete
clean 66/66: 24 NaN faults: 1 rate 1/25 = 4.0% (95% CI 0.1-20.4%) parse-500: 5
Fisher exact two-sided p = 1.000; P(rate_A < rate_B) = 0.460

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 4b2b3f3

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit b74301d

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 031ec18

@bong-water-water-bong
bong-water-water-bong merged commit f87ef91 into main Oct 8, 2026
7 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the docs/known-issues-315-rate-study branch October 8, 2026 16:17
bong-water-water-bong pushed a commit that referenced this pull request Nov 14, 2026
…ixes and the #2392 labels)

15 fork commits past 6485e5d69. They include the four host-tier checks the
#327 merge left asserting retired forms (#352, engine#2388, now closed: loom
host tier 87/0), HostWeightCache's gauges and the misaligned-pointer refusal
(#356/#357/#358, engine#2393), and the add-on case labels (#355/#359/#362,
engine#2392). Registry regenerated. hrx_f16_narrowing --write records one
guard GAINED (flash_attention/online_softmax: #347 floors the max before the
scale); none lost.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong pushed a commit that referenced this pull request Nov 14, 2026
…ver the base

Five PRs on 2026-11-13/14 carried an endpoint diff that would delete another
lane's merged work while their own change was one to three files: #358 would
have removed llama.cpp#357's alignment refusal and its case, #361 would have
removed #355, #2021 would have removed #2387's ctest row, #2387 would have
removed #2366's arms, #2397 would have removed #2021's single-offset guard.
Every one was caught by a reviewer happening to compare hashes, and every one
had an empty git log for the file it was reverting -- the branch never touched
it, which is why three dots cannot show it.

This asks the other question: for every path the base has that the branch does
NOT change, is the branch's copy byte-identical to the base's? A difference
there cannot be the branch's intent.

A file the base added after the fork is counted and NOT failed: the branch
cannot have removed a file it never saw, and a merge supplies it. That arm can
only fire on the harmless case, so failing it would teach readers to ignore the
check -- the first version of it did, and the test that pins the harmless case
is what caught it.

Measured: origin/main vs itself rc 0; engine#2397's branch rc 1 naming
npu/pack_import.cpp, npu/pack_import.h and tests/npu_pack_import_test.cpp (the
three files #2021 merged); an unreadable ref rc 2. Five tests, and mutating the
blob comparison to 'elif False' turns the naming arm red.
bong-water-water-bong added a commit that referenced this pull request Nov 14, 2026
…ver the base (#2398)

* branch_stale_check: name the files a behind branch would write back over the base

Five PRs on 2026-11-13/14 carried an endpoint diff that would delete another
lane's merged work while their own change was one to three files: #358 would
have removed llama.cpp#357's alignment refusal and its case, #361 would have
removed #355, #2021 would have removed #2387's ctest row, #2387 would have
removed #2366's arms, #2397 would have removed #2021's single-offset guard.
Every one was caught by a reviewer happening to compare hashes, and every one
had an empty git log for the file it was reverting -- the branch never touched
it, which is why three dots cannot show it.

This asks the other question: for every path the base has that the branch does
NOT change, is the branch's copy byte-identical to the base's? A difference
there cannot be the branch's intent.

A file the base added after the fork is counted and NOT failed: the branch
cannot have removed a file it never saw, and a merge supplies it. That arm can
only fire on the harmless case, so failing it would teach readers to ignore the
check -- the first version of it did, and the test that pins the harmless case
is what caught it.

Measured: origin/main vs itself rc 0; engine#2397's branch rc 1 naming
npu/pack_import.cpp, npu/pack_import.h and tests/npu_pack_import_test.cpp (the
three files #2021 merged); an unreadable ref rc 2. Five tests, and mutating the
blob comparison to 'elif False' turns the naming arm red.

* branch_stale_check: register the test, which is what tests_referenced refused

The reviewer's CHANGES: tests/branch_stale_check_test.py had no ctest row, and
pre-pr-checks said so. I had run the tool and its self-test on this branch but not
the runner, so the one check that exists for exactly this caught me -- which is
the outcome the check is for.

Rebased onto main as well: the branch was carrying older copies of four files it
never touched (docs/pre-pr-checks.md, scripts/pre-pr-checks.sh, and the two
registry_loss_check files from #2385/#2391/#2396), i.e. a squash would have
reverted them. Measured with this PR's own tool on itself:

  before: 4 older cop(ies) - branch_stale_check: rebase onto the base
  after : 0 older cop(ies) - no file the branch left alone differs from the base

Verified after the rebase: pre-pr-checks all 8 check(s) green, and ctest runs
both branch_stale_check_test and pre_pr_checks_agreement (2/2 passed).

---------

Co-authored-by: bong-water-water-bong <[email protected]>
bong-water-water-bong added a commit that referenced this pull request Nov 14, 2026
…337/#339), and the engine builds and tests against it (refs #2138) (#2357)

* third_party/llama.cpp: pin to llama.cpp #327's head 2c178f44 (engine#2138)

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

* chat template: build against #327's common_json (engine#2138)

At llama.cpp #327, common/jinja/value.cpp works through common_json (common/json.cpp)
and global_from_json takes one. At that pin 1bit and npu_template_test failed to link
(undefined common_json::is_null() and the rest, then global_from_json<ordered_json>).

- onebit_jinja compiles common/json.cpp. Its JSON_ASSERT is GGML_ASSERT, and the binary
  does not link ggml, so app/jinja_ggml_abort.cpp defines ggml_abort(): the same
  file:line message on stderr, then abort(). ggml.h is read for the declaration only.
- render_chat_template hands the renderer common_json::parse(in.dump()). common_json is
  an ordered_json underneath, so the request's key order survives the round trip.

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

* registry: regenerate at 2c178f44, six reviewed classes are now real architectures (engine#2138)

registry_pins failed after the pin move (recorded e6c80014e, pinned 2c178f44b);
tools/registry_build.py regenerates it (hrx 350, npu 9). Then registry_gaps failed:
six classes docs/arch-gaps.md had declined are mapped at the new pin. Each has its own
converter class, LLM_ARCH_ entry and src/models/*.cpp graph at 2c178f44, so each gets a
mapped_ok reason and a dated note: HrmTextForCausalLM, MuseSparkForConditionalGeneration,
Glm5NextForConditionalGeneration, GraniteSwitchForCausalLM, Lfm3ForCausalLM, and
DFlash2DraftModel. For DFlash2 this is the condition the page set: the converter writes the
conv and selector keys and codebooks, and dflash.cpp builds both heads.

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

* census_watch_test: the classes pin 2c178f44 implements are covered, not declined (engine#2138)

After the registry regenerated at 2c178f44, 22 checks failed. Each one used DFlash2,
Muse Spark, Granite Switch, LFM3, MiniCPM-V 4.7 or MiniCPM-OCR as its example of a
declined or unmapped class, and the live registry now maps all six for hrx.

- Section 15b asserts the four reviewed classes as covered and silent, each with a
  mapped_ok reason and a dated docs/arch-gaps.md note, the way DeepseekV41 moved at 5e6388a5a.
- The FLM pack rows for MiniCPM-V 4.7, MiniCPM-OCR, DFlash2 and LFM3 take the
  hrx-only NPU-gap branch Hy-Memory already used.
- The unmapped FLM example is the same recorded listing against a registry without
  MiniCPM-V 4.7 (the one before this pin), so the listing payload is not edited. The live
  registry's `!! NPU FLM` line for it is checked too.
- The declined-pack example is an inline NeedleForToolCalling entry; LFM3 is no longer declined.

A mutant that drops Lfm3ForCausalLM's mapped_ok fails 15b.

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

* third_party/llama.cpp: pin to #327's merge commit 2f7f04f0 (engine#2138)

#327 squash-merged into 1bit/hrx-vulkan-patched as 2f7f04f0d, which is that branch's head.
It contains the old pin e6c80014 and fork #335 (039edcc55), the commit #327's head lacked.
Regenerated at that tree, the registry changes only the recorded pin: the same 350 mappings
and the same six mapped_ok classes as at 2c178f44.

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

* third_party/llama.cpp: pin to the fork head 912c079d8 (engine#2138)

912c079d8 is 2f7f04f plus llama.cpp#337 (b1fd5e8eb: the parser tools, HRX ctest rows and
working files the #327 squash missed) and #339 (13 HRX tests return 77 without an HRX0
device). Both are tests and tools only, with no src/ggml/include/common change. Regenerated,
the registry changes only the recorded pin.

Full build + ctest at this pin: the same 2 non-linking NPU targets; the only steady failure is
hrx_f16_narrowing_check. Four tests failed under a load average of ~58
(spec_decode_acceptance, tool_help_check_tests, npu_pack_import, npu_serve_smoke_self) and
passed rerun on their own.

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

* engine#2138: pin llama.cpp to 6485e5d69 (the fork head: #345's dequant definitions + #341)

912c079d8 could not link its routed MoE kernels (unresolved exact declaration
'@ggml_codebook_f16_vector4', measured by pi-os3 serving flint). llama.cpp#345
defines the motifs the #327 merge left declared; #341 aligns the HRX suites'
kernel-name checks with the merged tree. Registry regenerated for the pin.

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

* engine#2138: record the 34 narrowing bodies and 11 f16 accumulators the AMD merge brings, by what feeds them

hrx_f16_narrowing.py --write at the #2357 pin (6485e5d69). It refuses to write a
smaller guard set, and none was lost: the 10 guarded bodies are unchanged. The
narrowing baseline header groups the new bodies by the producer of the narrowed
operand: unguarded f32 activations into f16 WMMA tiles (engine#1962's open
question), AMD's routed f16_projection_q{4,5,6}k without this line's guard marker
(engine#2127), dequantized weights, attention probabilities/scales, published
f16 outputs, q8_1 d/s, gated-delta-net state, and one test kernel.
dequant.loom 20 -> 21 is #345's ggml_codebook_f16_vector4. The stale
attention_postprocess_f32_f16 line is dropped (3 -> 0).

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

* engine#2138: pin llama.cpp to ca5aac715 (fork head: the #2388/#2393 fixes and the #2392 labels)

15 fork commits past 6485e5d69. They include the four host-tier checks the
#327 merge left asserting retired forms (#352, engine#2388, now closed: loom
host tier 87/0), HostWeightCache's gauges and the misaligned-pointer refusal
(#356/#357/#358, engine#2393), and the add-on case labels (#355/#359/#362,
engine#2392). Registry regenerated. hrx_f16_narrowing --write records one
guard GAINED (flash_attention/online_softmax: #347 floors the max before the
scale); none lost.

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

* engine#2138: pin llama.cpp to e1be68de6 (fork head: #364, test-hrx-buffer agrees with #356)

The 04:10Z CHANGES at f7d3265 named a regression the #2393 fixes introduced:
after #356 HostWeightCache::clear() keeps the lifetime counts, as AMD's does,
but our test-hrx-buffer still asserted hits == 0 after a clear. #364 makes
that test expect the lifetime counts, so both suites assert one contract.
The fork diff ca5aac715..e1be68de6 is that one test file. Registry regenerated;
the narrowing baselines are unchanged.

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

* engine#2138: pin llama.cpp to a21b25099 (fork head: #365 and two test-only commits)

#365 makes AMD's hrx-loom-jit-test pass the compile configs this line's kernels
require (value_stride, ssm_conv n_t/n_s, copy_transpose_f16 shape), the
remaining unexplained suite in the 05:42Z CHANGES at 1afedb3. The other two
commits (#1c436c2ee, 8ce550f08) are also tests only: e1be68de6..a21b25099
touches no ggml/, src/ or common/ file. Registry regenerated; the narrowing
baselines are unchanged.

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

* engine#2138: pin llama.cpp to ea2d2eb07 (fork head: #2404's hrx-loom-jit-test fixes)

a21b25099..ea2d2eb07 is one test file (tests/hrx-loom-jit-test.cpp, ed1e594f7
and ea2d2eb07): the Dynamic-workload gap is labelled known-fail instead of
failing, so AMD's hrx-loom-jit-test is 6/0/1 known-fail (pi-os3, 07:35Z) and
engine#2404 is closed. No ggml/, src/ or common/ change. Registry regenerated;
narrowing baselines unchanged.

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

---------

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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