…, and names the one it cannot decide (engine#2870) (#3008)
* ci: the decode-split invariant reads both fork suites, not only the one nobody runs (engine#2870)
`fa_split_expectation_check.py` opened `tests/hrx-ops-test.cpp` and asked whether that file
carries a padded-capacity fixture beside its split expectation. Two files in the fork carry
the same rows and they are not the same file:
tests/hrx-ops-test.cpp split=17 kPaddedKeyValueCapacity=0 padding-hits=2 9798 lines
tests/test-hrx-ops.cpp split=45 kPaddedKeyValueCapacity=4 padding-hits=1 6855 lines
`test-hrx-ops` is the suite a device run quotes and the one #448/#454 edit; `hrx-ops-test` is
a second copy the fork ratchet excludes by -E. So the row was green about a suite nobody runs
while the rows that DO run were unwatched -- measured on llama.cpp#454, which un-pads one
row in the suite the check never opened.
Now every suite that carries a split expectation is checked, each failure names the file, and
`cannot tell` still means "no suite on disk" rather than "the one file I looked at was absent".
Arms: the existing ones keep working (the failure side stays `fixture`, the file moved into the
message), and the one that decides this: un-pad only `tests/test-hrx-ops.cpp`, leave
`hrx-ops-test.cpp` intact -> the old version answered 0, this one answers 1 naming the file.
* fa-split-expectation: the third suite is decided by name, not by omission (engine#2870)
The review asked for the tuple to stop being the blind spot: a THIRD `tests/*hrx*.cpp` carrying a split
expectation would have been unwatched exactly the way the rows that run were. Two files is not a shape.
The first attempt was a glob: check every `tests/*hrx*.cpp`, judge each by the fixture rule. The live tree
answered red, and correctly -- `hrx-loom-jit-test.cpp` names the kernel because the LoomJIT export/reuse
cases hand it their own workload (`flash_attention_decode_workload`); padding the capacity is not its
invariant. A glob that decides for you is the same failure with a new author, so the discovery reports what
it cannot decide:
* a file that names the split kernel and is neither a reviewed suite nor listed -> FAILURE `unreviewed`
naming the file, with the two ways out written in the message (pin it; or list it as naming the kernel
without running the fixture);
* a listed file that stops naming the kernel -> FAILURE too, because an exemption that outlived its
field is indistinguishable from a reviewed file.
And the discovery found a real one on the pin: `tests/hrx-backend-test.cpp` (4 padding hits, the split
dispatch assertions and the `decode.key_value_token_capacity` compile parameter). It satisfies the rule, so
it is pinned -- three suites now, not two.
Arms (self-test, device-free, no checkout): a third *hrx* suite that pads nothing is `unreviewed` naming
the file; a stale exemption fails; the three pinned suites plus the two listed LoomJIT files are clean.
`--self-test` -> self-test ok; `--check --root third_party/llama.cpp` on the pin -> "every decode-split
expectation has the padded fixture and the storage guard", rc 0.
---------
Co-authored-by: bong-water-water-bong <[email protected]>
425961 text-generation models on HF, 338896 with an architecture (2829 architectures).
Unmapped architectures with the most models:
Step1MoEForCausalLM: 2882ParlerTTSForConditionalGeneration: 1585ChessForCausalLM: 970LlavaLlamaForCausalLM: 453DynamicAlibiForCausalLM: 245OpenLMForCausalLM: 245DynamicForgettingForCausalLM: 240BertLMHeadModel: 212MobileLLMForCausalLM: 176BartForConditionalGeneration: 174