"LLAMA_SPLIT_MODE_TENSOR not implemented for architecture": which llama.cpp builds accept -sm tensor for your model
The error means the model's architecture is on a deny list compiled into llama.cpp for --split-mode tensor. No flag overrides it: load with -sm layer (the default), or use a build in which the architecture has been enabled. As of b12997 (2026-12-04) the list refuses 46 of 185 architectures. Several were enabled after first being refused: lfm2 and lfm2moe from b10549, deepseek4 from b10604, qwen4exp from b11313, lfm3 from b12027, glm5-next from b12077. Six went the other way and stopped working after an update: mellum and flint (b11858), laguna (b11912), bloom, jais and refact (b12818). The official docs/multi-gpu.md names 22 refused architectures; 25 of the 46 in the source are not in it.
Updated on 2026-12-05: extended from b12860 to b12997. apertus is refused from b12898 (2026-12-01, #32880), and two architectures were added as accepted (clef-omni in b12920, ergo in b12938): 46 of 185 names are refused now.
Does my llama.cpp build accept -sm tensor for this model?
Type the architecture (the value of general.architecture in the GGUF, which is also the name inside the error) or paste the error line. Add your build number for a yes or no.
Runs in your browser on the tables below; nothing is sent anywhere. Build number: llama-server --version. Architecture of a file: gguf-dump --no-tensors model.gguf | grep general.architecture (pip install gguf). "Accepted" means the architecture check passes. The mode is marked experimental upstream, and a model can still fail later in the load.
Which architectures does --split-mode tensor refuse?
In b12997, 46 names: apertus, bailingmoe3, bitnet, bloom, clover_moe, deepseek2, deepseek32, dots3note, falcon-h1, flint, gemma3n, glm-dsa, granitehybrid, grok, hy_v4, hy_v4_flash, inkling2, inkling2_loop, jais, jamba, kimi-k3, kimi-k31, kimi-linear, laguna, limite, mamba, mamba2, mellum, minicpm3, minimax-01, minimax-m2, minimax-m3, mistral-large4, mistral4, mpt, nemotron_h, nemotron_h_moe, olmo2, olmoe, plamo2, qwen3tts, raon1, refact, t5, xing4_0, zaya1. Everything else among the 185 names in LLM_ARCH_NAMES passes the check, including llama, qwen35, qwen35moe, qwen3next, gemma4, glm4moe and gpt-oss, which were never refused.
The list lives in llm_arch_supports_sm_tensor() in src/llama-arch.cpp. It started with 23 names in b8738; 60 architectures were added to llama.cpp since then, and 22 of them arrived already refused. The table shows every name and every change.
| general.architecture | b12997 | History since b8738 |
|---|---|---|
apertus | refused | accepted since b8738; refused from b12898 (2026-12-01) (#32880) |
bailingmoe3 | refused | added in b10470 (2026-08-17) as refused (#26608) |
bitnet | refused | refused since b8738 |
bloom | refused | accepted since b8738; refused from b12818 (2026-11-27) (#28898) |
clover_moe | refused | added in b12060 (2026-11-02) as refused (#31306) |
deepseek2 | refused | refused since b8738 |
deepseek32 | refused | added in b9411 (2026-05-29) as refused (#23346) |
dots3note | refused | added in b10569 (2026-08-21) as refused (#27060) |
falcon-h1 | refused | refused since b8738 |
flint | refused | added in b11803 (2026-10-21) as accepted (#30928); refused from b11858 (2026-10-24) (#31081) |
gemma3n | refused | refused since b8738 |
glm-dsa | refused | refused since b8738 |
granitehybrid | refused | refused since b8738 |
grok | refused | refused since b8738 |
hy_v4 | refused | added in b10813 (2026-09-04) as refused (#28127) |
hy_v4_flash | refused | added in b12755 (2026-11-25) as refused (#32960) |
inkling2 | refused | added in b12406 (2026-11-15) as refused (#32217) |
inkling2_loop | refused | added in b12600 (2026-11-20) as refused (#32694) |
jais | refused | accepted since b8738; refused from b12818 (2026-11-27) (#28898) |
jamba | refused | refused since b8738 |
kimi-k3 | refused | added in b10448 (2026-08-15) as refused (#26185) |
kimi-k31 | refused | added in b12180 (2026-11-06) as refused (#31779) |
kimi-linear | refused | refused since b8738 |
laguna | refused | added in b10087 (2026-07-22) as accepted (#25165); refused from b11912 (2026-10-26) (#31147) |
limite | refused | added in b11988 (2026-10-29) as refused (#29433) |
mamba | refused | refused since b8738 |
mamba2 | refused | refused since b8738 |
mellum | refused | added in b9482 (2026-06-02) as accepted (#23966); refused from b11858 (2026-10-24) (#31081) |
minicpm3 | refused | refused since b8738 |
minimax-01 | refused | added in b10437 (2026-08-15) as refused (#27018) |
minimax-m2 | refused | refused since b8738 |
minimax-m3 | refused | added in b10141 (2026-07-27) as refused (#24908) |
mistral-large4 | refused | added in b11998 (2026-10-29) as refused (#31376) |
mistral4 | refused | refused since b8738 |
mpt | refused | refused since b8738 |
nemotron_h | refused | refused since b8738 |
nemotron_h_moe | refused | refused since b8738 |
olmo2 | refused | refused since b8738 |
olmoe | refused | refused since b8738 |
plamo2 | refused | refused since b8738 |
qwen3tts | refused | added in b10270 (2026-08-04) as refused (#26254) |
raon1 | refused | added in b12758 (2026-11-25) as refused (#32176) |
refact | refused | accepted since b8738; refused from b12818 (2026-11-27) (#28898) |
t5 | refused | refused since b8738 |
xing4_0 | refused | added in b12156 (2026-11-05) as refused (#31589) |
zaya1 | refused | added in b12520 (2026-11-18) as refused (#32071) |
afmoe | accepted | accepted since b8738 |
arcee | accepted | accepted since b8738 |
arctic | accepted | accepted since b8738 |
arwkv7 | accepted | accepted since b8738 |
baichuan | accepted | accepted since b8738 |
bailingmoe | accepted | accepted since b8738 |
bailingmoe2 | accepted | accepted since b8738 |
beam | accepted | added in b11701 (2026-10-17) as accepted (#30670) |
bert | accepted | accepted since b8738 |
chameleon | accepted | accepted since b8738 |
chatglm | accepted | accepted since b8738 |
clef | accepted | added in b11371 (2026-10-03) as accepted (#29831) |
clef-omni | accepted | added in b12920 (2026-12-01) as accepted (#33354) |
clip | accepted | accepted since b8738 |
codeshell | accepted | accepted since b8738 |
cogvlm | accepted | accepted since b8738 |
cohere2 | accepted | accepted since b8738 |
cohere2moe | accepted | added in b9626 (2026-06-13) as accepted (#24260) |
command-r | accepted | accepted since b8738 |
dbrx | accepted | accepted since b8738 |
deci | accepted | accepted since b8738 |
deepseek | accepted | accepted since b8738 |
deepseek2-ocr | accepted | accepted since b8738 |
deepseek4 | accepted | added in b9840 (2026-06-29) as refused (#24162); accepted from b10604 (2026-08-24) (#26490) |
deepseek41 | accepted | added in b11870 (2026-10-25) as accepted (#31086) |
dflash | accepted | added in b9831 (2026-06-28) as accepted (#22105) |
domynedge | accepted | added in b12568 (2026-11-20) as accepted (#32559) |
dots1 | accepted | accepted since b8738 |
dream | accepted | accepted since b8738 |
eagle3 | accepted | added in b9606 (2026-06-12) as accepted (#18039) |
ergo | accepted | added in b12938 (2026-12-02) as accepted (#33485) |
ernie4_5 | accepted | accepted since b8738 |
ernie4_5-moe | accepted | accepted since b8738 |
eurobert | accepted | accepted since b8738 |
exaone | accepted | accepted since b8738 |
exaone-moe | accepted | accepted since b8738 |
exaone4 | accepted | accepted since b8738 |
falcon | accepted | accepted since b8738 |
gemma | accepted | accepted since b8738 |
gemma-embedding | accepted | accepted since b8738 |
gemma-embedding2 | accepted | added in b11452 (2026-10-06) as accepted (#30054) |
gemma2 | accepted | accepted since b8738 |
gemma3 | accepted | accepted since b8738 |
gemma4 | accepted | accepted since b8738 |
gemma4-assistant | accepted | added in b9549 (2026-06-07) as accepted (#23398) |
glm4 | accepted | accepted since b8738 |
glm4moe | accepted | accepted since b8738 |
glm5-next | accepted | added in b11279 (2026-09-30) as refused (#27773); accepted from b12077 (2026-11-03) (#30499) |
gpt-oss | accepted | accepted since b8738 |
gpt2 | accepted | accepted since b8738 |
gptj | accepted | accepted since b8738 |
gptneox | accepted | accepted since b8738 |
granite | accepted | accepted since b8738 |
granite_swa | accepted | added in b10514 (2026-08-19) as accepted (#25505) |
granitemoe | accepted | accepted since b8738 |
graniteswitch | accepted | added in b10342 (2026-08-10) as accepted (#25107) |
grovemoe | accepted | accepted since b8738 |
hrm_text | accepted | added in b11003 (2026-09-16) as accepted (#27625) |
hunyuan-dense | accepted | accepted since b8738 |
hunyuan-moe | accepted | accepted since b8738 |
hunyuan_vl | accepted | added in b8885 (2026-04-22) as accepted (#22037) |
hy_v3 | accepted | added in b9993 (2026-07-14) as accepted (#25395) |
internlm2 | accepted | accepted since b8738 |
jais2 | accepted | accepted since b8738 |
jina-bert-v2 | accepted | accepted since b8738 |
jina-bert-v3 | accepted | accepted since b8738 |
k2-horizon | accepted | added in b11454 (2026-10-06) as refused (#29535); accepted from b11528 (2026-10-09) (#30217) |
kokoro | accepted | added in b12494 (2026-11-17) as accepted (#32413) |
kolibri1 | accepted | added in b11709 (2026-10-17) as accepted (#30673) |
lfm2 | accepted | refused since b8738; accepted from b10549 (2026-08-21) (#26993) |
lfm2moe | accepted | refused since b8738; accepted from b10549 (2026-08-21) (#26993) |
lfm3 | accepted | added in b11938 (2026-10-27) as refused (#31252); accepted from b12027 (2026-10-31) (#31431) |
llada | accepted | accepted since b8738 |
llada-moe | accepted | accepted since b8738 |
llama | accepted | accepted since b8738 |
llama-embed | accepted | accepted since b8738 |
llama4 | accepted | accepted since b8738 |
maincoder | accepted | accepted since b8738 |
maion-coder | accepted | added in b11658 (2026-10-15) as accepted (#29778) |
maple | accepted | added in b10964 (2026-09-14) as accepted (#27000) |
metis16 | accepted | added in b12089 (2026-11-03) as accepted (#31134) |
mimo2 | accepted | accepted since b8738 |
minicpm | accepted | accepted since b8738 |
minicpm5_moe | accepted | added in b12847 (2026-11-29) as accepted (#32644) |
mistral3 | accepted | accepted since b8738 |
modern-bert | accepted | accepted since b8738 |
moshi | accepted | added in b12619 (2026-11-21) as accepted (#32491) |
muse-glimmer | accepted | added in b10353 (2026-08-10) as accepted (#26841) |
muse-spark | accepted | added in b11671 (2026-10-15) as accepted (#30616) |
nanbeige | accepted | added in b10153 (2026-07-27) as accepted (#25994) |
nemotron | accepted | accepted since b8738 |
neo-bert | accepted | accepted since b8738 |
nomic-bert | accepted | accepted since b8738 |
nomic-bert-moe | accepted | accepted since b8738 |
olmo | accepted | accepted since b8738 |
openelm | accepted | accepted since b8738 |
orion | accepted | accepted since b8738 |
paddleocr | accepted | accepted since b8738 |
pangu-embedded | accepted | accepted since b8738 |
phi2 | accepted | accepted since b8738 |
phi3 | accepted | accepted since b8738 |
phimoe | accepted | accepted since b8738 |
plamo | accepted | accepted since b8738 |
plamo3 | accepted | accepted since b8738 |
plm | accepted | accepted since b8738 |
pockettts | accepted | added in b10369 (2026-08-11) as accepted (#26871) |
qwen | accepted | accepted since b8738 |
qwen2 | accepted | accepted since b8738 |
qwen2moe | accepted | accepted since b8738 |
qwen2vl | accepted | accepted since b8738 |
qwen3 | accepted | accepted since b8738 |
qwen35 | accepted | accepted since b8738 |
qwen35moe | accepted | accepted since b8738 |
qwen3moe | accepted | accepted since b8738 |
qwen3next | accepted | accepted since b8738 |
qwen3vl | accepted | accepted since b8738 |
qwen3vlmoe | accepted | accepted since b8738 |
qwen4exp | accepted | added in b10660 (2026-08-27) as accepted (#27742); refused from b10737 (2026-09-01) (#27941); accepted from b11313 (2026-10-01) (#28569) |
ricursive | accepted | added in b12158 (2026-11-05) as accepted (#31692) |
rnd1 | accepted | accepted since b8738 |
rwkv6 | accepted | accepted since b8738 |
rwkv6qwen2 | accepted | accepted since b8738 |
rwkv7 | accepted | accepted since b8738 |
seed_oss | accepted | accepted since b8738 |
sensenova_u1 | accepted | added in b11801 (2026-10-21) as accepted (#28919) |
smallthinker | accepted | accepted since b8738 |
smollm3 | accepted | accepted since b8738 |
spark2_5 | accepted | added in b10828 (2026-09-06) as accepted (#27868) |
stablelm | accepted | accepted since b8738 |
starcoder | accepted | accepted since b8738 |
starcoder2 | accepted | accepted since b8738 |
step35 | accepted | accepted since b8738 |
t5encoder | accepted | accepted since b8738 |
talkie | accepted | added in b9341 (2026-05-26) as accepted (#22596) |
tiny-voca | accepted | added in b12497 (2026-11-18) as accepted (#32427) |
vllm-decision2 | accepted | added in b11571 (2026-10-12) as accepted (#30378) |
wavtokenizer-dec | accepted | accepted since b8738 |
xverse | accepted | accepted since b8738 |
zonos3 | accepted | added in b12424 (2026-11-15) as accepted (#32020) |
Which architectures changed sides?
Fourteen. Seven are accepted today after a period of refusal, seven are refused today after having been accepted. qwen4exp was accepted, refused and accepted again.
| general.architecture | b12997 | History |
|---|---|---|
lfm2 | accepted | refused since b8738; accepted from b10549 (2026-08-21) (#26993) |
lfm2moe | accepted | refused since b8738; accepted from b10549 (2026-08-21) (#26993) |
deepseek4 | accepted | added in b9840 (2026-06-29) as refused (#24162); accepted from b10604 (2026-08-24) (#26490) |
qwen4exp | accepted | added in b10660 (2026-08-27) as accepted (#27742); refused from b10737 (2026-09-01) (#27941); accepted from b11313 (2026-10-01) (#28569) |
k2-horizon | accepted | added in b11454 (2026-10-06) as refused (#29535); accepted from b11528 (2026-10-09) (#30217) |
flint | refused | added in b11803 (2026-10-21) as accepted (#30928); refused from b11858 (2026-10-24) (#31081) |
mellum | refused | added in b9482 (2026-06-02) as accepted (#23966); refused from b11858 (2026-10-24) (#31081) |
laguna | refused | added in b10087 (2026-07-22) as accepted (#25165); refused from b11912 (2026-10-26) (#31147) |
lfm3 | accepted | added in b11938 (2026-10-27) as refused (#31252); accepted from b12027 (2026-10-31) (#31431) |
glm5-next | accepted | added in b11279 (2026-09-30) as refused (#27773); accepted from b12077 (2026-11-03) (#30499) |
bloom | refused | accepted since b8738; refused from b12818 (2026-11-27) (#28898) |
jais | refused | accepted since b8738; refused from b12818 (2026-11-27) (#28898) |
refact | refused | accepted since b8738; refused from b12818 (2026-11-27) (#28898) |
apertus | refused | accepted since b8738; refused from b12898 (2026-12-01) (#32880) |
Source comments give two of the reasons: bloom, jais and refact are marked "ALiBi", and mellum, flint and laguna use MoE amax rescaling, about which the source says "the amax op cannot be split across devices" (#31081).
Why does my build load a refused architecture without printing the error?
Builds b9019 (2026-05-04) to b9975 have the check but it can never fire. The refactor in #22004 moved the check into llama_model_create(), which runs before the model's device list is filled, while the condition still asked whether the first device is the meta device. With an empty list it is always false. #24926 ("Fix conditional to display ... message") changed the condition to the load parameter in b9976 (2026-07-11).
So on those builds a refused architecture goes on into the tensor-split code and fails there, if at all, with one of the asserts below instead of the clear message. This is from reading the three versions of the code; we did not run a refused model on those builds.
What do the other -sm tensor startup messages mean?
Three kinds: errors stop the load cleanly, aborts kill the process from inside the meta backend, warnings do not stop anything. The build range says which builds contain the text.
| Message | Kind | Builds | Cause and fix |
|---|---|---|---|
LLAMA_SPLIT_MODE_TENSOR not implemented for architecture 'X' | error | all builds | The architecture is on the deny list of your build. Load with -sm layer, or use a build that accepts it (lookup above). |
LLAMA_SPLIT_MODE_TENSOR is not supported for models with Hadamard-folded weights (prism.hadamard), use -sm layer | error | from b12779 (2026-11-26) | The GGUF carries prism.hadamard metadata. The check is on the file, not the architecture: use -sm layer. |
SPLIT_MODE_TENSOR requires flash_attn to be enabled | error | all builds | You passed -fa off. Remove it or pass -fa on. With the default auto the mode turns flash attention on by itself. |
simultaneous use of SPLIT_MODE_TENSOR and KV cache quantization not implemented | error | b8738 up to, not including, b9455 (2026-06-01) | A quantized KV cache (-ctk/-ctv q8_0 and similar) on an old build. Use f16, bf16 or f32 there, or update: the check was removed when quantized KV support landed. |
llama_params_fit is not implemented for SPLIT_MODE_TENSOR, abort | warning | all builds | --fit (on by default) cannot size this mode. Despite the word abort it is logged as a warning and loading goes on with the values you gave. Set --ctx-size yourself; -fit off removes the line. |
LLAMA_SPLIT_MODE_TENSOR needs >= 1 devices | error | all builds | No GPU device is left to build the meta device from. CPU devices are skipped for this mode, so this is a CPU-only build or a --device list without a GPU. Check --list-devices. |
SPLIT_MODE_TENSOR being used for a single device is not recommended | warning | from b10863 (2026-09-08) | Only one device is in use. It runs; use -sm none or -sm layer instead. |
backend sampling not supported with SPLIT_MODE_TENSOR; using CPU | warning | from b9263 (2026-05-21) | Informational: the sampler runs on the CPU in this mode. |
MoE cache does not support tensor parallelism | error | from b11480 (2026-10-07) | Thrown by the MoE expert cache (--moe-cache-mib, 0 = disabled by default) for a model loaded with -sm tensor. Use one or the other. |
multi buffers are not supported by the meta backend | abort | from b9877 (2026-07-05) | A tensor landed in a buffer that was split into several allocations. Reporters in #22197 avoided it with a smaller --ctx-size; that issue was opened for a segfault, before this text was added. |
unsupported mul_mat split states: node=... | abort | from b10604 (2026-08-24) | The graph of this model multiplies two tensors that are split in a combination the meta backend has no rule for. Use -sm layer and report it upstream with the model. |
ggml op not implemented: OP | abort | all builds | The graph uses an operation the meta backend has no split rule for. Use -sm layer. |
view of permuted tensor not implemented | abort | all builds | Same family: a view the meta backend cannot map back to a split axis. Use -sm layer. |
GGML_ASSERT(split_state.ne[j] * tensor->src[i]->ne[src_ss[i].axis] == sum * tensor->ne[split_state.axis]) failed | abort | b8738 up to, not including, b9455 (2026-06-01) | The split sizes of an input and of the result do not keep the same ratio (issue #22817: Qwen3.6-27B on three GPUs). The assert is gone from the source in newer builds: update. |
GGML_ASSERT(tensor_axis_0 != nullptr) failed | abort | all builds | A weight was not found under the name the split rule expects (issue #24309: the NextN draft-head tensors of GLM-4.5 Air). The reporter's workaround was to prune that layer with llama-quantize --prune-layers plus two --override-kv values; otherwise -sm layer. |
NVIDIA Collective Communications Library (NCCL) is unavailable, multi GPU performance will be suboptimal | warning | b8738 up to, not including, b9095 (2026-05-10) | The CUDA build has no NCCL. It runs, slower. Rebuild with NCCL installed (-DGGML_CUDA_NCCL=ON is the default) or update. |
NCCL not compiled in; falling back to internal AllReduce. | warning | from b9095 (2026-05-10) | Same situation on newer builds, which now fall back to llama.cpp's own two-GPU all-reduce instead of the generic one. |
NCCL disabled: virtual devices in use; falling back to internal AllReduce | warning | from b10043 (2026-07-16) | CUDA virtual devices are configured, which NCCL cannot use. Informational. |
Before b8738, -sm tensor is rejected by the argument parser with invalid value; the accepted values were none, layer and row.
Which reported crashes are fixed in which build?
Four reports from the issue tracker, with what the git history says about the fix named in each thread. "In" is the first release tag that contains the commit.
| Issue | Reported on | Symptom | What the history shows |
|---|---|---|---|
| #22817 | b9049, Vulkan, three GPUs, Qwen3.6-27B (others in the thread: ROCm, CUDA) | GGML_ASSERT(split_state.ne[j] * ...) failed in ggml-backend-meta.cpp | The fix named in the thread, #23843 ("fix granularity for Qwen 3.5/3.6 + 3 GPUs"), is in b9434 (2026-05-30). The assert itself is gone from the source from b9455 (#23792). |
| #22307 | commit 8bc492e (first tag b8914), ROCm, 2x R9700, Qwen3.6-35B-A3B Q8_K_XL | GGML_ASSERT(size == ggml_nbytes(tensor)) failed in ggml_backend_meta_buffer_get_tensor | That assert line is in ggml-backend-meta.cpp from b8738 and gone from b8940 (#22362). The thread does not confirm a fix; the reporter ran stably with -sm layer. |
| #22197 | build 8863, Vulkan, 2x RX 480, large --ctx-size | Segfault; later builds print multi buffers are not supported by the meta backend | The abort with that text was added in b9877 (2026-07-05) (#25276). #29266 ("resolve multi buffer views") is in b11125 (2026-09-23); a commenter says it fixes many cases, not all. The abort is still in b12997. Reporter's workaround: a smaller -c. |
| #24309 | build 9553, CUDA, 4x RTX 3090, GLM-4.5 Air (glm4moe with a NextN draft head) | GGML_ASSERT(tensor_axis_0 != nullptr) failed in llama-model.cpp | The assert is still in b12997 and glm4moe is not on the deny list. No fix is named in the thread. Reporter's workaround: prune the NextN layer with llama-quantize --prune-layers and set glm4moe.block_count and glm4moe.nextn_predict_layers with --override-kv. |
Whether a given build fixes a given setup is unverified here: we read the commits, we did not reproduce the crashes (no multi-GPU machine was used for this page).
Which all-reduce does my backend use, and which environment variables exist?
The meta backend asks each backend for its own all-reduce and falls back to a generic one. CUDA has had one since b8738 (NCCL), SYCL since b9788 (2026-06-25) (#24152) and Vulkan since b12051 (2026-11-02) (#25051).
| Variable or option | Builds | What it does |
|---|---|---|
GGML_CUDA_ALLREDUCE | from b9095 (2026-05-10) (#22299) | nccl, internal or none. Unset: NCCL on Linux, the internal one elsewhere. The internal all-reduce handles exactly two GPUs; with another count, or with none, the meta backend's own butterfly all-reduce is used. A failed NCCL start falls back to internal with a warning. |
GGML_CUDA_P2P | from b8804 (2026-04-15) (#21910) | Set to any value to enable CUDA peer-to-peer copies. Opt-in; upstream warns it can crash or corrupt output on some boards (for example with IOMMU on). |
GGML_META_DEBUG | all builds | Integer debug level of the meta backend. |
-DGGML_CUDA_NCCL | all builds | CMake option, ON by default. NCCL must be installed for it to be found. |
-DGGML_HIP_RCCL | all builds | CMake option for ROCm, OFF by default. |
Where does this differ from docs/multi-gpu.md?
The upstream guide is the right place for how the modes work. Three of its statements lag the code as of b12997:
- Its list of refused architectures has 22 names. 25 refused ones are missing (
apertus,bailingmoe3,bloom,clover_moe,deepseek32,dots3note,flint,hy_v4,hy_v4_flash,inkling2,inkling2_loop,jais,kimi-k3,kimi-k31,laguna,limite,mellum,minimax-01,minimax-m3,mistral-large4,qwen3tts,raon1,refact,xing4_0,zaya1), and LFM2-MoE is listed althoughlfm2moehas been accepted since b10549. - It says a quantized KV cache is an error with
-sm tensor. The check was removed in b9455 (#23792, "TP: quantized KV cache support"). - It quotes the warning "NCCL is unavailable, multi GPU performance will be suboptimal". Since b9095 the text is "NCCL not compiled in; falling back to internal AllReduce", and
GGML_CUDA_ALLREDUCEis not mentioned.
How was this read?
From a clone of llama.cpp, the first-parent history from the commit that added LLAMA_SPLIT_MODE_TENSOR (b8738, #19378) to b12997: 4,259 commits, 2,965 release tags. For each of the 119 versions of src/llama-arch.cpp a script parses the architecture names and the deny list (the parser stops if the function is not exactly a list of cases returning false). For each message it finds the commits that add or remove the literal text and maps them to the first tag containing them. The unreachable check was established by reading the condition and the order of the calls in each version. Nothing on this page was compiled or run, and no multi-GPU machine was involved; speed and stability of -sm tensor on a given setup are unverified. Data: data.json.
FAQ
- How do I fix "LLAMA_SPLIT_MODE_TENSOR not implemented for architecture"?
- Load the model with -sm layer (the default) instead of -sm tensor. The architecture is on a deny list compiled into llama.cpp and no flag overrides it. Some architectures were enabled later: lfm2 and lfm2moe from b10549, deepseek4 from b10604, qwen4exp from b11313, lfm3 from b12027 and glm5-next from b12077.
- Which architectures does llama.cpp refuse for --split-mode tensor?
- As of b12997 (2026-12-04), 46 of the 185 architecture names: apertus, bailingmoe3, bitnet, bloom, clover_moe, deepseek2, deepseek32, dots3note, falcon-h1, flint, gemma3n, glm-dsa, granitehybrid, grok, hy_v4, hy_v4_flash, inkling2, inkling2_loop, jais, jamba, kimi-k3, kimi-k31, kimi-linear, laguna, limite, mamba, mamba2, mellum, minicpm3, minimax-01, minimax-m2, minimax-m3, mistral-large4, mistral4, mpt, nemotron_h, nemotron_h_moe, olmo2, olmoe, plamo2, qwen3tts, raon1, refact, t5, xing4_0, zaya1.
- Which llama.cpp build added --split-mode tensor?
- b8738 (2026-04-09, PR #19378). Older builds only know none, layer and row and answer -sm tensor with "invalid value".
- Can I use a quantized KV cache with -sm tensor?
- From b9455 (2026-06-01, PR #23792), yes. Builds from b8738 up to, not including, b9455 stop with "simultaneous use of SPLIT_MODE_TENSOR and KV cache quantization not implemented"; use -ctk f16 -ctv f16 there. docs/multi-gpu.md in b12997 still describes the old limit.
- Is "llama_params_fit is not implemented for SPLIT_MODE_TENSOR, abort" a fatal error?
- No. It is logged as a warning by --fit, which is on by default and cannot size this mode; loading continues with the values you passed. Set --ctx-size yourself, or pass -fit off to remove the line.
- Why did -sm tensor stop working for my model after a llama.cpp update?
- Six architectures moved onto the deny list after having been accepted: mellum and flint in b11858, laguna in b11912 (MoE amax rescaling cannot be split across devices), and bloom, jais and refact in b12818. Use -sm layer for those.
Related
- "unknown model architecture": which llama.cpp build and Ollama version a GGUF needs
- llama-server and llama-cli arguments removed by build
- vLLM tensor parallel on two GeForce cards: the P2P check
Sources
- llama.cpp source: src/llama-arch.cpp (
llm_arch_supports_sm_tensor), src/llama-model.cpp, src/llama.cpp, src/llama-context.cpp, common/fit.cpp, ggml/src/ggml-backend-meta.cpp, ggml/src/ggml-cuda/ggml-cuda.cu, docs/multi-gpu.md, releases - Pull requests: #19378, #21910, #22004, #22299, #22362, #23792, #23843, #24152, #24926, #25051, #25276, #29266, #31081, #33080
- Issues: #22817, #22307, #22197, #24309