Skip to content

test-hrx-ops: 3 failures at two pins (ffn.q4_k.prefill.large_activation.1 non-finite; 2 structural), the twin of engine#2774 #3408

Done

Description

@bong-water-water-bong

test-hrx-ops (the second HRX op suite, tests/test-hrx-ops.cpp) has the same 3 failures at two fork pins, with the add-on build on strixhalo:

Both runs: 290 passed / 3 failed of 293. The engine#2774 cleanup covered hrx-ops-test only; this is its twin for the other suite. Found by cl-hrxtest while measuring #3407. No issue named these cases before.

case failure kind
ffn.q4_k.prefill.large_activation.1 ffn prefill: tokens=1 gated max=299495 non-finite=1024 nmse=inf: requirement failed: non_finite == 0 (:3965). The scheduled kernels are add-on hip: objects. values: 1024 non-finite outputs on a large-activation Q4_K FFN at one token. Needs a look before it's called stale (f16 overflow in the add-on path?).
decode_attention_qkv_scheduling missing expected kernel: qwen3_moe:qwen3_moe_attention_qkv_postprocess_fused_decode. Scheduled instead: rmsnorm+q8 quantize, 2× hip: matmul, llm_attention_v_matmul_set_rows, ggml_rmsnorm_binary_f32 + ggml_rope_f32 / ggml_rope_set_rows_f32 structural: the fused qkv post-process isn't selected. Likely the same family as #3380, needs one check.
routed_moe_decode.q6_k.true requirement failed: gate_up_routed (:5392) structural: a Q6_K routed decode isn't taking the routed gate/up path. Since #491/#492 that's selected for IQ3_XXS by default, and Q6_K only with GGML_HRX_KQUANT_MOE_DECODE=all. So the expectation is probably stale, but needs one check.

Proposed: same method as engine#2774 / fork #499.

  1. Check the values in the first case. Non-finite outputs are a correctness question, not a structural one.
  2. Re-baseline the two structural rows with their cause, or make them known-fail with an issue if a fusion was lost.

🤖 Generated with Claude Code

Activity

  1. bong-water-water-bong commented on Nov 23, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    ffn.q4_k.prefill.large_activation.1 is a real overflow on the add-on route, not a stale expectation (cl-hrxtest, strixhalo, package at fork 5776842df, 23 Nov).

    build tokens = 1 tokens = 2 … 512
    with add-on 1024 / 1024 outputs non-finite finite, nmse 6e-5 … 1.3e-4
    without add-on (Loom) finite, nmse 1.1e-4 finite, nmse 9e-5 … 1.5e-4
    • Cause: turning off one add-on registration at a time pins it to the add-on's fused one-token gate/up SwiGLU. With that registration disabled, Loom's kquant.swiglu.decode_f32 serves the case and it passes (0 non-finite, nmse 1.08e-4). The case pushes the gated product to ~3e5, past the f16 maximum, on purpose.
    • Effect: on the shipped build, a one-token decode of an FFN layer with gated values past 65504 becomes inf.
    • Where the details are: the kernel-level detail and fix options are in the private add-on tracker (gpu-kernels#125), which per the IP rule is not summarised here.
    • This row: it stays a plain failure. It's the regression guard for that fix, so it won't be relabelled.

    The two structural rows are next.

    🤖 Generated with Claude Code

  2. bong-water-water-bong commented on Nov 23, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Structural rows: fork #500. With the add-on (shipped build), test-hrx-ops goes to 291 passed / 1 failed / 1 known-fail; the one failure is the deliberate overflow guard above. check_stale_expectations.py now covers this suite too.

    One more, on the Loom route (without the add-on): flash_attention.accumulator_range.128.1024.v1000 fails std::fabs(v - value_magnitude) <= 5.0e-2f (test-hrx-ops.cpp:2228) at value magnitude 1000. The add-on build passes it.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions