Repository navigation
hrx: pin llama.cpp to the shared-memory FA tile visibility (engine#314/315) - #347
Merged
Merged
Conversation
bong-water-water-bong
marked this pull request as ready for review
October 7, 2026 11:08
bong-water-water-bong
enabled auto-merge (squash)
October 7, 2026 11:09
…4/315) Moves third_party/llama.cpp cf4dfd801e -> 26330cc20, a merge that keeps the engine#314 emission fix and drops the cost it introduced. Context: cf4dfd801e removed the two unordered subgroup collectives in the decode-split FA kernel by forcing the staging path on every key tile (the engine#314 always-stage fallback). Its own commit message noted it "pays the staging loop and two subgroup barriers on every key tile instead of only the tiles that need masking". The merged commit takes f9ff06675 (open as 1bit-MONSTER/llama.cpp#95) instead, which keeps the conditional staging and derives the visibility predicates from shared memory, so no collective remains: real subgroup.vote in the kernel: 0 merged kernel file is byte-identical to f9ff06675 Measured on Strix Halo with the pressure harness (3 neighbour servers so each arm runs at gtt_start ~102 GiB, 66 requests per arm, control and guard-off arms paired inside one box state): on cf4dfd801e the guard-off arm faulted with all-NaN logits (count=154880 of 154880, contiguous=yes, the whole output vector unwritten) 1 time in 7 arms; on the pre-#314 revision f2099e9b the same harness produced 0 NaN in 11 arms, including 5 of 5 clean in the guard-off cell. That is consistent with the unconditional staging being implicated, and is NOT significant (about 59% by chance at the ~10% base rate), so this change is justified by removing a known unconditional cost while keeping the correctness fix, not by a measured cure. The engine#315 residual fault is therefore not claimed fixed. Its acceptance criterion remains 12 consecutive arms with 0 NaN and 66/66 requests at gtt_start >= 95 GiB, judged on the guard's count/contiguous=yes case rather than on frequency. Also note the automatic route has been dead: bump-hrx has failed on 12 consecutive scheduled runs (last success 2026-09-24), so this is a hand pin move, which .gitmodules documents as the practice ("hrx-system is rebased by hand") and which every recent pin move has used. hrx-system is unchanged at 98d05d94a9f9.
bong-water-water-bong
force-pushed
the
bump-hrx-315
branch
from
October 7, 2026 11:20
dbee9ab to
1ca8847
Compare
This was referenced Oct 7, 2026
bong-water-water-bong
added a commit
that referenced
this pull request
Oct 9, 2026
…a76c18 long-prompt result (#364) * docs: note the engine#315 pin movement in KNOWN-ISSUES.md The entry cites 26330cc20490 as the pin engine@main ships; main now pins e44c9d01a4d5 with hrx-system 98d05d94 (#361 reverted in #363). The study's measurements still describe what ships: 98d05d94 is the same runtime, and 26330cc20490 is an ancestor of e44c9d01a4d5. * docs: the engine#315 pin note covers #373 and the hrx-system 4ba76c18 long-prompt result Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hrx: pin llama.cpp to the shared-memory FA tile visibility (engine#314/315)
Moves third_party/llama.cpp cf4dfd801e -> 26330cc20, a merge that keeps the engine#314
emission fix and drops the cost it introduced.
Context: cf4dfd801e removed the two unordered subgroup collectives in the decode-split FA
kernel by forcing the staging path on every key tile (the engine#314 always-stage fallback).
Its own commit message noted it "pays the staging loop and two subgroup barriers on every key
tile instead of only the tiles that need masking". The merged commit takes f9ff06675 (open as
1bit-MONSTER/llama.cpp#95) instead, which keeps the conditional staging and derives the
visibility predicates from shared memory, so no collective remains:
real subgroup.vote in the kernel: 0
merged kernel file is byte-identical to f9ff06675
Measured on Strix Halo with the pressure harness (3 neighbour servers so each arm runs at
gtt_start ~102 GiB, 66 requests per arm, control and guard-off arms paired inside one box
state): on cf4dfd801e the guard-off arm faulted with all-NaN logits (count=154880 of 154880,
contiguous=yes, the whole output vector unwritten) 1 time in 7 arms; on the pre-#314 revision
f2099e9b the same harness produced 0 NaN in 11 arms, including 5 of 5 clean in the guard-off
cell. That is consistent with the unconditional staging being implicated, and is NOT
significant (about 59% by chance at the ~10% base rate), so this change is justified by
removing a known unconditional cost while keeping the correctness fix, not by a measured
cure.
The engine#315 residual fault is therefore not claimed fixed. Its acceptance criterion
remains 12 consecutive arms with 0 NaN and 66/66 requests at gtt_start >= 95 GiB, judged on
the guard's count/contiguous=yes case rather than on frequency.
Also note the automatic route has been dead: bump-hrx has failed on 12 consecutive scheduled
runs (last success 2026-09-24), so this is a hand pin move, which .gitmodules documents as
the practice ("hrx-system is rebased by hand") and which every recent pin move has used.
hrx-system is unchanged at 98d05d94a9f9.