Skip to content

tests: follow the pin's routes and report verifier failures (engine #445) - #129

Merged
bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
1bit/hrx-445-rows
Oct 23, 2026
Merged

bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
1bit/hrx-445-rows

Conversation

@bong-water-water-bong

Copy link
Copy Markdown

tests: follow the pin's routes and report verifier failures (engine #445)

The remaining #445 rows, host-side, with the rule each one actually follows at this pin.

Rows that now pass

  • qwen_attention_postprocess_dispatch, qwen_matmul_dispatch: the three projections and the single
    projection take the kquant decode route, so there is no separate q8-publication dispatch and no q8
    transient - four dispatches for the postprocess graph and one for the projection. The expected kernel is
    translated by kquant_matmul_kernel() from the same rule the registration uses
    (dispatch-kquant-decode.cpp: at most eight tokens of a kquant format, input size a multiple of 256), and
    the q8-only assertions are dropped rather than left asserting a dispatch that no longer exists.
  • lowtoken_residual_dispatch: the residual ADD is folded into the kquant decode store (four bindings), not
    into a ggml_mul_mat_bias_*/…_add_* kernel, so the fused counter counts that route.
  • qwen_router_top8_dispatch: the route-id binding carries the tensor's byte extent
    (ggml_nbytes(route_ids)), and the ascending- and descending-order router graphs are claimed on this pin
    (the case asserted they were refused).

Rows that are ggml-org#533, not #445

qwen_attention_postprocess_dispatch and qwen_routed_gate_up_dispatch end in
command_program_verifies(commands), and the verifier says why:

VERIFY-ERROR: command 0 ... bindings=12 deps=0 binding query_input value=22 origin=Transient
              access=Read range=[0, 8192) reads transient value 22 before write
VERIFY-ERROR: command 6 ... bindings=5 deps=1 binding raw_gate value=33 origin=Transient
              access=Read range=[0, 24576) reads transient value 33 before write by command 7

Both are tagged known_fail("#533") and added to that issue's rows: the fused kernel reads a transient that
a later command (or no command) writes.

To make that diagnosable without instrumenting, command_program_verifies() now prints
VERIFY-ERROR: <message> for every error instead of only returning false. That is how the two above were
identified, and it applies to every case that checks a command program.

Totals

host: 66 case(s)
host: 58 passed, 0 failed, 8 known-fail, 0 unexpected-pass, 66 total   (exit 0)

known-fail: #533 x3 (verifier), #534 x1 (arena packing), #445 x3 (qwen_matmul,
lowtoken_residual, qwen_router_top8 - each now trips on a single downstream assertion left from the
pre-re-head helper, listed in #445's comment; they are pointer/binding-order checks, not routing).

🤖 Generated with Claude Code

)

The remaining #445 rows, host-side, with the rule each one actually follows at this pin.

## Rows that now pass

- `qwen_attention_postprocess_dispatch`, `qwen_matmul_dispatch`: the three projections and the single
  projection take the kquant decode route, so there is no separate q8-publication dispatch and no q8
  transient - four dispatches for the postprocess graph and one for the projection. The expected kernel is
  translated by `kquant_matmul_kernel()` from the same rule the registration uses
  (`dispatch-kquant-decode.cpp`: at most eight tokens of a kquant format, input size a multiple of 256), and
  the q8-only assertions are dropped rather than left asserting a dispatch that no longer exists.
- `lowtoken_residual_dispatch`: the residual ADD is folded into the kquant decode store (four bindings), not
  into a `ggml_mul_mat_bias_*`/`…_add_*` kernel, so the fused counter counts that route.
- `qwen_router_top8_dispatch`: the route-id binding carries the tensor's byte extent
  (`ggml_nbytes(route_ids)`), and the ascending- and descending-order router graphs are claimed on this pin
  (the case asserted they were refused).

## Rows that are ggml-org#533, not #445

`qwen_attention_postprocess_dispatch` and `qwen_routed_gate_up_dispatch` end in
`command_program_verifies(commands)`, and the verifier says why:

```
VERIFY-ERROR: command 0 ... bindings=12 deps=0 binding query_input value=22 origin=Transient
              access=Read range=[0, 8192) reads transient value 22 before write
VERIFY-ERROR: command 6 ... bindings=5 deps=1 binding raw_gate value=33 origin=Transient
              access=Read range=[0, 24576) reads transient value 33 before write by command 7
```

Both are tagged `known_fail("ggml-org#533")` and added to that issue's rows: the fused kernel reads a transient that
a later command (or no command) writes.

To make that diagnosable without instrumenting, `command_program_verifies()` now prints
`VERIFY-ERROR: <message>` for every error instead of only returning false. That is how the two above were
identified, and it applies to every case that checks a command program.

## Totals

```
host: 66 case(s)
host: 58 passed, 0 failed, 8 known-fail, 0 unexpected-pass, 66 total   (exit 0)
```

known-fail: `ggml-org#533` x3 (verifier), `ggml-org#534` x1 (arena packing), `#445` x3 (`qwen_matmul`,
`lowtoken_residual`, `qwen_router_top8` - each now trips on a single downstream assertion left from the
pre-re-head helper, listed in #445's comment; they are pointer/binding-order checks, not routing).

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant