Repository navigation
CUDA: mul_mat_q=true as default for llama_context_params - #2912
Merged
JohannesGaessler merged 1 commit intoAug 30, 2023
Merged
Conversation
slaren
approved these changes
Aug 30, 2023
Seunghhon
pushed a commit
to Seunghhon/llama.cpp
that referenced
this pull request
Apr 26, 2026
phuongncn
pushed a commit
to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4
that referenced
this pull request
Apr 28, 2026
ljubomirj
pushed a commit
to ljubomirj/llama.cpp
that referenced
this pull request
May 6, 2026
AlexiAlp
pushed a commit
to minghaop/llama.cpp
that referenced
this pull request
Jun 2, 2026
AlexiAlp
pushed a commit
to minghaop/llama.cpp
that referenced
this pull request
Jun 2, 2026
bong-water-water-bong
added a commit
to 1bit-MONSTER/llama.cpp
that referenced
this pull request
Nov 20, 2026
* tests: a skipped device case answers 77, not 0 (engine#2912) `hrx-ops-test --hrx-test-case <name>` returned 0 when the case needed a device and the suite could not see one, so a caller reading the exit code could not tell it from a pass. Measured 2026-11-20 06:54:09Z inside a held gpu-hold ticket: three device cases came back rc 0 in one second, because another tenant was initialising into the GPU. Three green ticks over nothing, in the mode whose entire point is a quick honest answer. 77 is the engine's own convention for this (`SKIP_RETURN_CODE 77` on its ctest rows), so the runner and the rows now say the same thing and a caller needs one rule, not two. The arm is `tests/test-testing-suite-skip.cpp`: header-only, no device, no model, ~0 s, and it pins the *meaning* of 77, not just its value -- ok a device case with no device returns 77, not 0 ok and it does not run the case body ok a host case still returns 0 without a device ok and a host case does run its body ok an unknown case name is still 2, not 77 ok a device case with a device returns 0 ok and that one does run its body Without those neighbours, returning 77 unconditionally would look correct. Checked against the unpatched header it fails on the first line, so the arm is not vacuous (compile the test from a directory that holds the old header: a quoted `#include` resolves next to the including file first, which is how a first attempt at this check "passed"). Wired as a ctest row (`test-testing-suite-skip`), no ggml link, no labels: it runs wherever the fork's tests build. Not changed, on purpose: the whole-suite skip path (testing_suite.h:581) still returns 0 when every selected case needs a device. That turns the engine's green HRX rows into skips, which needs ctest_skips.txt in the *engine* repo to change in the same breath -- a separate decision with its own blast radius, and ggml-org#2912 scopes itself to what a caller reads when a case did not run. * tests: keep the skip message's guard substring, and pin it from the arm (engine#2912 review) The CHANGES verdict is right and the defect was mine: renaming the skip line from "test skipped: no device available" to "test skipped (77): no device available" deleted the substring that seven HRX ctest rows match with FAIL_REGULAR_EXPRESSION (tests/CMakeLists.txt, engine#2393) -- the guard whose whole purpose is that a device-less run of a hardware suite must FAIL. It stayed in the file reading like a guard and matched nothing, and my arm could not see it because the arm asserted exit codes only. Fixed by keeping the substring exact and putting the code after it: "%s for %s (77)\n", kSkipMessagePrefix, config.suite_name rather than by rewriting ggml-org#2393's regex: the row's decision ("their subject is the hardware, so a device-less run is a failure, not a skip") is the owner's, and this PR has no business overturning it in passing. `kSkipMessagePrefix` is now a named constant with the coupling in its comment, and the arm asserts the constant against the literal the rows use: ok the skip message keeps the substring seven HRX rows match in FAIL_REGULAR_EXPRESSION (engine#2393) Six arms now, all green (7 with the device case with a device). Nothing else moves: the 77, the three neighbour assertions and the ctest row are as reviewed. Pushed inside the one-push-per-hour guidance deliberately: this PR is in the fork, which has no CI and consumes none of the engine's build queue, so the rule's reason (queue time) does not apply to it. --------- Co-authored-by: bong-water-water-bong <[email protected]>
bong-water-water-bong
added a commit
to 1bit-MONSTER/llama.cpp
that referenced
this pull request
Nov 20, 2026
…, the other half) (#441) * tests: a skipped device case answers 77, not 0 (engine#2912) `hrx-ops-test --hrx-test-case <name>` returned 0 when the case needed a device and the suite could not see one, so a caller reading the exit code could not tell it from a pass. Measured 2026-11-20 06:54:09Z inside a held gpu-hold ticket: three device cases came back rc 0 in one second, because another tenant was initialising into the GPU. Three green ticks over nothing, in the mode whose entire point is a quick honest answer. 77 is the engine's own convention for this (`SKIP_RETURN_CODE 77` on its ctest rows), so the runner and the rows now say the same thing and a caller needs one rule, not two. The arm is `tests/test-testing-suite-skip.cpp`: header-only, no device, no model, ~0 s, and it pins the *meaning* of 77, not just its value -- ok a device case with no device returns 77, not 0 ok and it does not run the case body ok a host case still returns 0 without a device ok and a host case does run its body ok an unknown case name is still 2, not 77 ok a device case with a device returns 0 ok and that one does run its body Without those neighbours, returning 77 unconditionally would look correct. Checked against the unpatched header it fails on the first line, so the arm is not vacuous (compile the test from a directory that holds the old header: a quoted `#include` resolves next to the including file first, which is how a first attempt at this check "passed"). Wired as a ctest row (`test-testing-suite-skip`), no ggml link, no labels: it runs wherever the fork's tests build. Not changed, on purpose: the whole-suite skip path (testing_suite.h:581) still returns 0 when every selected case needs a device. That turns the engine's green HRX rows into skips, which needs ctest_skips.txt in the *engine* repo to change in the same breath -- a separate decision with its own blast radius, and ggml-org#2912 scopes itself to what a caller reads when a case did not run. * tests: keep the skip message's guard substring, and pin it from the arm (engine#2912 review) The CHANGES verdict is right and the defect was mine: renaming the skip line from "test skipped: no device available" to "test skipped (77): no device available" deleted the substring that seven HRX ctest rows match with FAIL_REGULAR_EXPRESSION (tests/CMakeLists.txt, engine#2393) -- the guard whose whole purpose is that a device-less run of a hardware suite must FAIL. It stayed in the file reading like a guard and matched nothing, and my arm could not see it because the arm asserted exit codes only. Fixed by keeping the substring exact and putting the code after it: "%s for %s (77)\n", kSkipMessagePrefix, config.suite_name rather than by rewriting ggml-org#2393's regex: the row's decision ("their subject is the hardware, so a device-less run is a failure, not a skip") is the owner's, and this PR has no business overturning it in passing. `kSkipMessagePrefix` is now a named constant with the coupling in its comment, and the arm asserts the constant against the literal the rows use: ok the skip message keeps the substring seven HRX rows match in FAIL_REGULAR_EXPRESSION (engine#2393) Six arms now, all green (7 with the device case with a device). Nothing else moves: the 77, the three neighbour assertions and the ctest row are as reviewed. Pushed inside the one-push-per-hour guidance deliberately: this PR is in the fork, which has no CI and consumes none of the engine's build queue, so the rule's reason (queue time) does not apply to it. * tests: a whole run of device cases answers 77 too, not 0 (engine#2912, the other half) The single-case path was #439. This is the same sentence one level out: when EVERY selected case needs a device and the suite cannot see one, `run()` printed "test skipped: no device available …" and returned **0** -- a whole suite answering success having run nothing, which is the "green row for a suite that never touched a device" that engine#2393 fixed with a FAIL_REGULAR_EXPRESSION. 77 rather than 0, for the same reason as #439: the exit code should say it too, for a caller that reads only the code. Checked before touching it, because this path feeds seven ctest rows: **none of them sets SKIP_RETURN_CODE**, so ctest treats 77 as a failure -- the same verdict ggml-org#2393's regex already produces -- and no row can flip from red to green. The message keeps kSkipMessagePrefix byte-exact, so the regex still matches; the "(N device case(s) skipped)" detail moved after the prefix rather than into it. Two arms, both failing against the return-0 version: ok a whole run of device cases with no device returns 77, not 0 ok and no case body runs --------- Co-authored-by: bong-water-water-bong <[email protected]>
This was referenced Nov 20, 2026
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.
As pointed out by #2683 (comment) , in a previous PR I forgot to change the mul_mat_q default in
llama_context_default_params. So this PR sets it to true in line with CLI use.