Llama.cpp b11080: choose exact operation names or regex families in backend tests

The -o filter in tests/test-backend-ops is a coverage-boundary control. In llama.cpp b11080, choosing an operation name does not mean the same thing as choosing an operation family. Before interpreting a passing run, first confirm that the binary is the b11080 build, decide whether the test should be exact or family-wide, and inspect which cases the command actually selected.

What changed

The b11080 pre-release notes say that tests/test-backend-ops now accepts regex entries in its -o filter. The option still accepts a comma-separated list of exact operation names or full test-case strings. The important rule is how each entry is classified: a plain operation name keeps exact matching, while an entry that is not a plain operation name is treated as a regular expression matched against the operation name.

The release also reformats the tool’s help text. That is useful when checking the command’s local interface, but the release notes do not define the complete regex dialect. Do not infer support for every regex feature from the single example in the announcement.

Exact names versus families

Use an exact name when the question is about one operation. The release gives this boundary explicitly: -o ADD does not match ADD_EX. A result from that command should therefore be read as a result for the selected ADD cases, not as a result for every operation whose name begins with ADD.

Use a regex when the question is about a family. The release uses MUL_MAT.* as its example. Conceptually, that asks the selector to match operation names beginning with MUL_MAT, rather than naming one operation literally. Keep the pattern narrow enough that every selected case belongs to the question you are trying to answer.

The two forms answer different questions:

-o ADD
-o MUL_MAT.*

The first is an exact-name request. The second is a family-style request. A comma-separated filter can contain multiple entries, but each entry still needs an intentional interpretation. Treating all entries as literal names can under-select a family; treating all entries as broad patterns can select cases that were not part of the intended check.

A small verification routine

  1. Check the version before running the test. The documented behavior belongs to the b11080 pre-release, so do not silently attribute it to an older or different binary.

  2. Write down the coverage question. If it is “does the ADD operation pass?”, use the plain name. If it is “do the matrix-multiplication variants pass?”, use a deliberately scoped family pattern such as the release’s MUL_MAT.* example.

  3. Read the tool’s help output for the installed build and record the command you used. The b11080 notes mention a help-text reformat, but the release description is not a substitute for the binary’s own interface.

  4. Verify the selected cases in the test output or the tool’s listing mode before relying on the result. Confirm that an exact request did not expand to a family and that a family request did not include an unrelated operation. If the output does not make the selection observable, treat the scope as unverified and investigate before drawing a conclusion.

What a pass means

A passing run supports the cases that the filter selected. It does not, by itself, establish model quality, inference speed, or the correctness of every backend path. Those are separate questions requiring their own tests and evidence. The practical benefit of the b11080 change is more precise test selection: you can choose a single operation or a named family, then keep the interpretation of the result aligned with that choice.

The safe habit is simple: version first, selector intent second, selected-case verification third, and only then interpretation. This prevents a successful but under-scoped command from being mistaken for broad backend coverage.

For comparisons between builds, I would record the selected case identities alongside the filter text. The b11080 release notes describe MUL_MAT.* as a regex selector. Reusing that expression is therefore not, by itself, evidence that two runs exercised the same cases. If the available matching cases change, the coverage changes even though the command stays the same.

My suggested comparison would separate three groups: cases present in both runs, cases added in the newer run, and cases no longer selected. Compare pass/fail outcomes for the shared cases, report new cases as added coverage, and investigate missing cases before calling the newer run a regression-free replacement. That is a proposed evaluation method, not a result reported by the release.

For example, suppose an earlier run passes all selected cases, while a later run adds a matching case that fails. An aggregate pass rate would fall, but it would not distinguish a newly exposed failure from a previously passing case that regressed. Keeping the case identities makes that distinction possible; it does not establish when the underlying defect began.

This suggests two useful CI questions: did the previously covered cases retain their outcomes, and did the intended family gain or lose coverage? A single green/red result cannot explain both.