Repository navigation
Fix conditional to display 'LLAMA_SPLIT_MODE_TENSOR not implemented for architecture' message - #24926
Merged
Merged
Conversation
…or architecture' message
JohannesGaessler
approved these changes
Jul 3, 2026
Contributor
|
@ggml-org/maintainers can I get a second approval, please? |
lhez
approved these changes
Jul 11, 2026
satindergrewal
pushed a commit
to satindergrewal/llama.cpp
that referenced
this pull request
Aug 12, 2026
…or architecture' message (ggml-org#24926)
zbrad
pushed a commit
to zbrad/llama.cpp
that referenced
this pull request
Sep 10, 2026
…or architecture' message (ggml-org#24926)
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.
Overview
-sm tensordoesn't currently work with DeepSeek Sparse Attention. glm-5.2 uses DSA, but when trying to use-sm tensorit tries using it, then blows up with a seemingly irrelevant assert:0.03.809.143 I srv llama_server: loading model
0.03.809.197 I srv load_model: loading model '../models/unsloth/GLM-5.2-GGUF/UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00001-of-00011.gguf'
[...]
llama.cpp/src/llama-model.cpp:411: GGML_ASSERT(!suffix_fallback.empty()) failed
Aborted
There is a check in llama-model.cpp for exactly this situation, but it doesn't work:
The problem is that 'devices' has not been populated yet when this gets called, so it's always empty. The early bail out never happens. Fortunately, I don't think we even need to be doing that (at least I couldn't find any case where that mattered), and can simplify it to just:
This fixes it for me to now bail out way earlier (3 seconds v.s. >90) with a message that actually explains the problem:
I've tried this in every combination I have access to GPU/CPU backends and models that should and shouldn't be supported with tensor mode, and it appears to only fix the assert and bail out without wasting a bunch of time trying to load a model that won't work with tensor mode.
Even if DSA gets added to tensor mode, this fix (or something similar) should still happen to prevent further issues.
Requirements