Skip to content

mtp support for k40 #2685

Backlog
Backlog

Description

@djbravo06

Describe the Issue
I have a telsa k-40 and wanna use mtp on qwen 3.6 a3b model but the mtp is not currently suported for my gpu

Additional Information:
eh@debian:/mnt/proj/llamacpp-compose/models$ ./kobol --model ./qwenmoe.gguf --contextsize 32768 --gpulayers 22 --moecpu 30 --threads 16 --quantkv q4_0 --parallelrequests 1 --jinja --batchsize 512 --usemtp --host 0.0.0.0 --gendefaults '{"temp": 0.7, "top_p": 0.95, "top_k": 20, "min_p": 0.05, "rep_pen": 1.0, "presence_penalty": 0.0}'


Welcome to KoboldCpp - Version 1.125.1
Loading Chat Completions Adapter: /tmp/_MEI5Eqwx7/kcpp_adapters/AutoGuess.json
Chat Completions Adapter Loaded
No GPU or CPU backend was selected. Trying to assign one for you automatically...
Auto Selected CUDA Backend (flag=0)

System: Linux #1 SMP PREEMPT_DYNAMIC Debian 6.12.105-1 (2026-08-24) x86_64
Detected Available GPU Memory: 11520 MB
Detected Available RAM: 29668 MB
Initializing dynamic library: koboldcpp_cublas.so

Namespace(admin=False, admindir='', adminpassword=None, adminunloadtimeout=0, agent=False, agent_api_key=None, agent_base_url=None, agentload='', allow_config_onready=False, analyze='', autofit=False, autofitpadding=1024, autoswapmode=False, autoswapthreshold=256, baseconfig='', batchsize=512, beavernetkey='', benchmark=None, blasthreads=0, chatcompletionsadapter='AutoGuess', cli=False, config=None, contextsize=32768, debugmode=0, defaultgenamt=2048, device='', downloaddir='', draftamount=4, draftgpulayers=999, draftgpusplit=None, draftmodel='', embeddingsgpu=False, embeddingsmaxctx=4096, embeddingsmodel='', enableguidance=False, exportconfig='', exporttemplate='', failsafe=False, ffncpu=0, flashattention=False, forceversion=False, foreground=False, gendefaults='{"temp": 0.7, "top_p": 0.95, "top_k": 20, "min_p": 0.05, "rep_pen": 1.0, "presence_penalty": 0.0}', gendefaultsoverwrite=False, genlimit=0, gpulayers=22, highpriority=False, hordeconfig=None, hordegenlen=0, hordekey='', hordemaxctx=0, hordemodelname='', hordeworkername='', host='0.0.0.0', ignoremissing=False, jinja=True, jinja_kwargs='', jinjatemplate='', jinjathink='default', launch=False, lazy_mode='auto', lora=None, loramult=1.0, lowvram=False, maingpu=-1, maxrequestsize=32, mcpfile='', mmproj='', mmprojcpu=False, model=['./qwenmoe.gguf'], model_param='./qwenmoe.gguf', moe_cache_mib=0, moecpu=30, moeexperts=-1, multiplayer=False, multiuser=None, musicdiffusion='', musicembeddings='', musicllm='', musiclowvram=False, musicvae='', no_op_offload=False, noavx2=False, noblas=False, nobostoken=False, nocertify=False, nofastforward=False, noflashattention=False, nommap=False, nommq=False, nomodel=False, nopipelineparallel=False, noshift=False, noswa=False, onready='', overridekv='', overridenativecontext=0, overridetensors='', parallelrequests=1, paralleltotalcontext=0, password=None, pipelineparallel=False, port=5001, port_param=5001, preloadstory='', prompt='', proxy_port=None, quantkv='q4_0', queuelimit=10, quiet=False, ratelimit=0, reasoningeffort='default', remotetunnel=False, reqtimeout=600, ropeconfig=[0.0, 10000.0], routermode=False, rpccache='', rpcdevice='', rpchost='0.0.0.0', rpcmode='disabled', rpcport=5551, rpctargets='', run_bundled_agent=False, savedatafile='', sdaudiovae='', sdclamped=0, sdclampedsoft=0, sdclip1='', sdclip2='', sdclipdevice=-2, sdclipgpu=False, sdconfig=None, sdconvdirect='off', sdflashattention=False, sdgendefaults=False, sdllm='', sdlora=[], sdloramult=[1.0], sdmaingpu=None, sdmodel='', sdnotile=False, sdoffloadcpu=False, sdphotomaker='', sdquant=0, sdt5xxl=None, sdthreads=0, sdtiledvae=512, sdupscaler='', sdvae='', sdvaeauto=False, sdvaecpu=False, sdvaedevice=-1, sdvramlimit=0, showgui=False, singleinstance=False, skiplauncher=False, smartcache=0, smartcontext=False, splitmode='layer', ssl=None, swapadding=0, tensor_split=None, testmemory=False, threads=16, transcribealigner='', transcribemodel='', ttsdir='', ttsgpu=False, ttsmaxlen=8192, ttsmodel='', ttsthreads=0, ttswavtokenizer='', ubatchsize=-1, unpack='', usecpu=False, usecuda=['normal', 'mmq'], usedirectio=False, usemlock=False, usemmap=False, usemtp=True, useswa=False, usevulkan=None, version=False, visionmaxres=1024, visionmaxtokens=-1, visionmintokens=-1, websearch=False, whispermodel=None)

Loading Text Model: /mnt/proj/llamacpp-compose/models/qwenmoe.gguf

The reported GGUF Arch is: qwen35moe
Arch Category: 35


Identified as GGUF model.
Attempting to Load...

Using automatic RoPE scaling for GGUF. If the model has custom RoPE settings, they'll be used directly instead!
System Info: AVX = 1 | AVX_VNNI = 0 | AVX2 = 0 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | AMX_INT8 = 0 | FMA = 0 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 0 | FP16_VA = 0 | RISCV_VECT = 0 | WASM_SIMD = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 |
ggml_cuda_init: found 1 CUDA devices (Total VRAM: 11441 MiB):
Device 0: Tesla K40c, compute capability 3.5, VMM: yes, VRAM: 11441 MiB
Number of Backends: 3
Backend 0: CUDA
Backend 1: RPC
Backend 2: CPU
CUDA MMQ: True

Initializing CUDA/HIP, please wait, the following step may take a few minutes (only for first launch)...

Overriding 30 MoE layers to CPU...
Handling Override Tensors for backends: CUDA0 CPU

Override Tensor: blk.0.ffn_(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.1.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.2.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.3.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.4.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.5.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.6.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.7.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.8.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.9.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.10.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.11.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.12.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.13.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.14.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.15.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.16.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.17.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.18.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.19.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.20.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.21.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.22.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.23.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.24.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.25.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.26.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.27.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.28.ffn
(up|down|gate|gate_up)(ch|)exps to CPU
Override Tensor: blk.29.ffn
(up|down|gate|gate_up)_(ch|)exps to CPU
llama_model_loader: loaded meta data with 55 key-value pairs and 753 tensors from /mnt/proj/llamacpp-compose/models/qwenmoe.gguf (version GGUF V3 (latest))
print_info: file format = GGUF V3 (latest)
print_info: file type = (guessed) unknown, may not work
print_info: file size = 21.10 GiB (5.10 BPW)
llama_prepare_model_devices: using device CUDA0 (Tesla K40c) (0000:07:00.0) - 11323 MiB free
init_tokenizer: initializing tokenizer for type 2
load: 0 unused tokens
load: setting token '' (248069) attribute to USER_DEFINED (16), old attributes: 16
load: setting token '<tool_call>' (248058) attribute to USER_DEFINED (16), old attributes: 16
load: setting token '</tool_call>' (248059) attribute to USER_DEFINED (16), old attributes: 16
load: setting token '' (248068) attribute to USER_DEFINED (16), old attributes: 16
load: printing all EOG tokens:
load: - 248044 ('<|endoftext|>')
load: - 248046 ('<|im_end|>')
load: - 248063 ('<|fim_pad|>')
load: - 248064 ('<|repo_name|>')
load: - 248065 ('<|file_sep|>')
load: special tokens cache size = 33
load: token to piece cache size = 1.7581 MB
print_info: arch = qwen35moe
print_info: vocab_only = 0
print_info: no_alloc = 0
print_info: n_ctx_train = 262144
print_info: n_embd_inp = 2048
print_info: n_embd = 2048
print_info: n_embd_out = 2048
print_info: n_layer = 40
print_info: n_layer_all = 41
print_info: n_head = 16
print_info: n_head_kv = 2
print_info: n_rot = 64
print_info: n_swa = 0
print_info: is_swa_any = 0
print_info: non_causal_type = 0
print_info: n_embd_head_k = 256
print_info: n_embd_head_v = 256
print_info: n_gqa = 8
print_info: n_embd_k_gqa = 512
print_info: n_embd_v_gqa = 512
print_info: f_norm_eps = 0.0e+00
print_info: f_norm_rms_eps = 1.0e-06
print_info: f_clamp_kqv = 0.0e+00
print_info: f_max_alibi_bias = 0.0e+00
print_info: f_logit_scale = 0.0e+00
print_info: f_attn_scale = 0.0e+00
print_info: f_attn_value_scale = 0.0000
print_info: n_ff = 0
print_info: n_expert = 256
print_info: n_expert_used = 8
print_info: n_expert_groups = 0
print_info: n_group_used = 0
print_info: causal attn = 1
print_info: pooling type = -1
print_info: rope type = 40
print_info: rope scaling = linear
print_info: freq_base_train = 10000000.0
print_info: freq_scale_train = 1
print_info: n_ctx_orig_yarn = 262144
print_info: rope_yarn_log_mul = 0.0000
print_info: rope_finetuned = unknown
print_info: mrope sections = [11, 11, 10, 0]
print_info: ssm_d_conv = 4
print_info: ssm_d_inner = 4096
print_info: ssm_d_state = 128
print_info: ssm_dt_rank = 32
print_info: ssm_n_group = 16
print_info: ssm_dt_b_c_rms = 0
print_info: model type = 35B.A3B
print_info: model params = 35.51 B
print_info: general.name = Qwen3.6-35B-A3B
print_info: vocab type = BPE
print_info: n_vocab = 248320
print_info: n_merges = 247587
print_info: BOS token = 248044 '<|endoftext|>'
print_info: EOS token = 248046 '<|im_end|>'
print_info: EOT token = 248046 '<|im_end|>'
print_info: PAD token = 248055 '<|vision_pad|>'
print_info: LF token = 198 'Ċ'
print_info: FIM PRE token = 248060 '<|fim_prefix|>'
print_info: FIM SUF token = 248062 '<|fim_suffix|>'
print_info: FIM MID token = 248061 '<|fim_middle|>'
print_info: FIM PAD token = 248063 '<|fim_pad|>'
print_info: FIM REP token = 248064 '<|repo_name|>'
print_info: FIM SEP token = 248065 '<|file_sep|>'
print_info: EOG token = 248044 '<|endoftext|>'
print_info: EOG token = 248046 '<|im_end|>'
print_info: EOG token = 248063 '<|fim_pad|>'
print_info: EOG token = 248064 '<|repo_name|>'
print_info: EOG token = 248065 '<|file_sep|>'
print_info: max token length = 256
load_tensors: loading model tensors, this can take a while... (load_mode = none)
tensor blk.0.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.0.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.0.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.1.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.1.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.1.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.2.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.2.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.2.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.3.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.3.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.3.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.4.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.4.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.4.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.5.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.5.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.5.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.6.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.6.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.6.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.7.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.7.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.7.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.8.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.8.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.8.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.9.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.9.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.9.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.10.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.10.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.10.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.11.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.11.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.11.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.12.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.12.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.12.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.13.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.13.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.13.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.14.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.14.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.14.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.15.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.15.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.15.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.16.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.16.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.16.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.17.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.17.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.17.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.18.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.18.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.18.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.19.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.19.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.19.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.20.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.20.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.20.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.21.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.21.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.21.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.22.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.22.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.22.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.23.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.23.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.23.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.24.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.24.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.24.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.25.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.25.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.25.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.26.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.26.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.26.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.27.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.27.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.27.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.28.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.28.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.28.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.29.ffn_down_exps.weight (176 MiB q5_K) buffer type overridden to CUDA_Host
tensor blk.29.ffn_gate_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
tensor blk.29.ffn_up_exps.weight (144 MiB q4_K) buffer type overridden to CUDA_Host
done_getting_tensors: tensor 'blk.20.ffn_down_exps.weight' (q5_K) (and 29 others) moved from CUDA0, using CUDA_Host instead
load_tensors: offloading output layer to GPU
load_tensors: offloading 21 repeating layers to GPU
load_tensors: offloaded 22/42 layers to GPU
load_tensors: CUDA0 model buffer size = 6405.96 MiB
load_tensors: CUDA_Host model buffer size = 15197.05 MiB
load_all_data: using async uploads for device CUDA0, buffer type CUDA0, backend CUDA0
..................................................................................................

This model does not use SWA
RNN or Hybrid model with FF and shifting flags enabled - SmartCache will be enabled with extra slots. Disable CtxShift if you do not want this.
SmartCache: Prepared 7 KV slots

MRope is used, context shift will be disabled!
Automatic RoPE Scaling: Using model internal value.
llama_context: constructing llama_context
llama_context: n_seq_max = 1
llama_context: n_ctx = 33024
llama_context: n_ctx_seq = 33024
llama_context: n_batch = 512
llama_context: n_ubatch = 512
llama_context: causal_attn = 1
llama_context: flash_attn = enabled
llama_context: kv_unified = true
llama_context: freq_base = 10000000.0
llama_context: freq_scale = 1
llama_context: n_rs_seq = 4
llama_context: n_outputs_max = 512
llama_context: n_outputs_max_per_seq = 1
llama_context: n_ctx_seq (33024) < n_ctx_train (262144) -- the full capacity of the model will not be utilized
set_abort_callback: call
llama_context: CUDA_Host output buffer size = 0.95 MiB
llama_kv_cache: CPU KV buffer size = 90.70 MiB
llama_kv_cache: CUDA0 KV buffer size = 90.70 MiB
llama_kv_cache: size = 181.41 MiB ( 33024 cells, 10 layers, 1/1 seqs), K (q4_0): 90.70 MiB, V (q4_0): 90.70 MiB
llama_kv_cache: n_rot_k = 256, n_embd_head_k_all = 256
llama_kv_cache: n_rot_v = 64, n_embd_head_k_all = 256
init_rotation: CPU rotation buffer size = 1.33 MiB
init_rotation: CUDA0 rotation buffer size = 1.33 MiB
llama_memory_recurrent: layer 3: skipped
llama_memory_recurrent: layer 7: skipped
llama_memory_recurrent: layer 11: skipped
llama_memory_recurrent: layer 15: skipped
llama_memory_recurrent: layer 19: skipped
llama_memory_recurrent: layer 23: skipped
llama_memory_recurrent: layer 27: skipped
llama_memory_recurrent: layer 31: skipped
llama_memory_recurrent: layer 35: skipped
llama_memory_recurrent: layer 39: skipped
llama_memory_recurrent: CPU RS buffer size = 157.03 MiB
llama_memory_recurrent: CUDA0 RS buffer size = 157.03 MiB
llama_memory_recurrent: size = 314.06 MiB ( 1 cells, 40 layers, 1 seqs 4 rs_seq), R (f32): 14.06 MiB, S (f32): 300.00 MiB, P (f32): 0.00 MiB
llama_context: enumerating backends
llama_context: backend_ptrs.size() = 2
sched_reserve: reserving ...
sched_reserve: max_nodes = 24096
resolve_fused_ops: layer 23 is assigned to device CUDA0 but Flash Attention over K/V rows is assigned to device CPU (usually due to missing support)
resolve_fused_ops: Flash Attention over K/V rows not supported, set to disabled
resolve_fused_ops: resolving fused DeepSeek V4 HC support:
resolve_fused_ops: fused DeepSeek V4 HC pre enabled
resolve_fused_ops: fused DeepSeek V4 HC comb enabled
resolve_fused_ops: fused DeepSeek V4 HC post enabled
sched_reserve: CUDA0 compute buffer size = 501.00 MiB
sched_reserve: CUDA_Host compute buffer size = 56.37 MiB
sched_reserve: graph (pp bs=512, tg bs=1): nodes = 4059 / 4059, splits = 487 / 67, input objects = 4 / 4, input tensors = 10 / 10
sched_reserve: reserve took 50.22 ms, sched copies = 1
Threadpool set to 16 threads and 16 blasthreads...
attach_threadpool: call

Attempting to create built-in MTP context from the main model.
llama_context: constructing llama_context
llama_context: n_seq_max = 1
llama_context: n_ctx = 33024
llama_context: n_ctx_seq = 33024
llama_context: n_batch = 512
llama_context: n_ubatch = 512
llama_context: causal_attn = 1
llama_context: flash_attn = enabled
llama_context: kv_unified = true
llama_context: freq_base = 10000000.0
llama_context: freq_scale = 1
llama_context: n_rs_seq = 0
llama_context: n_outputs_max = 1
llama_context: n_outputs_max_per_seq = 1
llama_context: n_ctx_seq (33024) < n_ctx_train (262144) -- the full capacity of the model will not be utilized
set_abort_callback: call
llama_context: CUDA_Host output buffer size = 0.95 MiB
llama_kv_cache: CUDA0 KV buffer size = 18.14 MiB
llama_kv_cache: size = 18.14 MiB ( 33024 cells, 1 layers, 1/1 seqs), K (q4_0): 9.07 MiB, V (q4_0): 9.07 MiB
llama_kv_cache: n_rot_k = 256, n_embd_head_k_all = 256
llama_kv_cache: n_rot_v = 64, n_embd_head_k_all = 256
init_rotation: CUDA0 rotation buffer size = 0.27 MiB
llama_context: enumerating backends
llama_context: backend_ptrs.size() = 2
sched_reserve: reserving ...
sched_reserve: max_nodes = 24096
resolve_fused_ops: layer 40 is assigned to device CUDA0 but Flash Attention over K/V rows is assigned to device CPU (usually due to missing support)
resolve_fused_ops: Flash Attention over K/V rows not supported, set to disabled
resolve_fused_ops: resolving fused DeepSeek V4 HC support:
resolve_fused_ops: fused DeepSeek V4 HC pre enabled
resolve_fused_ops: fused DeepSeek V4 HC comb enabled
resolve_fused_ops: fused DeepSeek V4 HC post enabled
sched_reserve: CUDA0 compute buffer size = 144.77 MiB
sched_reserve: CUDA_Host compute buffer size = 40.27 MiB
sched_reserve: graph: nodes = 98, splits = 2, input objects = 4, input tensors = 7
sched_reserve: reserve took 31.60 ms, sched copies = 1
set_sampler: seq_id = 0, sampler = 0x55cb635e6bf0
set_embeddings_nextn: value = 1, masked = 0
set_embeddings_nextn: value = 1, masked = 1
set_embeddings_nextn_dev: value = 1
h_nextn_dev_alloc: CUDA0 h_nextn buffer size = 4.01 MiB

This architecture has explicitly disabled the BOS token - if you need it, you must add it manually.
Starting model warm up, please wait a moment...
sched_reserve: reserving ...
sched_reserve: max_nodes = 24096
sched_new: reusing scheduler: max_nodes = 24096 (current max_nodes = 24096)
sched_reserve: CUDA0 compute buffer size = 501.00 MiB
sched_reserve: CUDA_Host compute buffer size = 56.37 MiB
sched_reserve: graph (pp bs=512, tg bs=1): nodes = 4060 / 4060, splits = 487 / 67, input objects = 5 / 5, input tensors = 11 / 11
sched_reserve: reserve took 48.35 ms, sched copies = 1
Load Text Model OK: True
Chat completion heuristic: ChatML (Generic)
Embedded KoboldAI Lite loaded.
Embedded API docs loaded.
Llama.cpp UI loaded.

Active Modules: TextGeneration
Inactive Modules: ImageGeneration VoiceRecognition MultimodalVision MultimodalAudio NetworkMultiplayer ApiKeyPassword WebSearchProxy TextToSpeech VectorEmbeddings AdminControl MCPBridge MusicGen RouterMode
Enabled APIs: KoboldCppApi OpenAiApi OllamaApi AnthropicApi
Note: For third party Ollama API Emulation, you should set the port to 11434.
Starting Kobold API on port 5001 at http://0.0.0.0:5001/api/
Starting OpenAI Compatible API on port 5001 at http://0.0.0.0:5001/v1/
Starting llama.cpp secondary WebUI at http://0.0.0.0:5001/lcpp/

Please connect to custom endpoint at http://0.0.0.0:5001
IPv6 Socket Failed to Bind. IPv6 will be unavailable.

Input: {"n": 1, "max_context_length": 32768, "max_length": 8236, "rep_pen": 1.05, "temperature": 0.75, "top_p": 0.92, "top_k": 100, "top_a": 0, "typical": 1, "tfs": 1, "rep_pen_range": 360, "rep_pen_slope": 0.7, "sampler_order": [6, 0, 1, 3, 4, 2, 5], "trim_stop": true, "genkey": "KCPP7678", "min_p": 0, "dynatemp_range": 0, "dynatemp_exponent": 1, "smoothing_factor": 0, "smoothing_curve": 1, "nsigma": 0, "banned_tokens": [], "render_special": false, "logprobs": false, "replace_instruct_placeholders": true, "presence_penalty": 0, "logit_bias": {}, "adaptive_target": -1, "adaptive_decay": 0.9, "stop_sequence": ["{{[INPUT]}}"], "use_default_badwordsids": false, "bypass_eos": false, "messages": [{"role": "user", "content": "hey"}], "continue_assistant_turn": true, "stream": true, "temp": 0.7}

Processing Prompt (11 / 11 tokens)sched_reserve: reserving ...
sched_reserve: max_nodes = 24101
sched_reserve: CUDA0 compute buffer size = 144.77 MiB
sched_reserve: CUDA_Host compute buffer size = 40.27 MiB
sched_reserve: graph: nodes = 104, splits = 2, input objects = 5, input tensors = 7
sched_reserve: reserve took 73.57 ms, sched copies = 1
CUDA error: CUBLAS_STATUS_ARCH_MISMATCH
current device: 0, in function ggml_cuda_mul_mat_cublas_impl at ggml/src/ggml-cuda/ggml-cuda.cu:2055
cublasGemmEx(cublas_h, CUBLAS_OP_T, CUBLAS_OP_N, ne01, ne11, ne10, alpha, src0_ptr, cu_data_type_a, s01, src1_ptr, cu_data_type_b, s11, beta, dst_ptr, cu_data_type, ldc, cu_compute_type, CUBLAS_GEMM_DEFAULT_TENSOR_OP)
ggml/src/ggml-cuda/ggml-cuda.cu:121: CUDA error
Aborted
eh@debian:/mnt/proj/llamacpp-compose/models$

Activity

  1. emreyoleridev commented on Nov 27, 2026

    @emreyoleridev

    The CUBLAS_STATUS_ARCH_MISMATCH at the end of your log looks like a BF16 problem, not MTP itself. I think the MTP head in that GGUF is stored in BF16, and on the very first draft step it hits a cuBLAS BF16 GEMM that the K40 (sm_35) can't run.

    In ggml_cuda_mul_mat_cublas (ggml-cuda.cu, v1.125.1) koboldcpp partially reverts upstream llama.cpp#28846, so BF16 weights stay in BF16 even when the GPU has no BF16 support (to save VRAM). On Kepler that ends up in cublasGemmEx with CUDA_R_16BF, which cuBLAS rejects for that architecture.

    That function also reads an env override, so you could try forcing FP32 compute:

    GGML_CUDA_CUBLAS_COMPUTE_TYPE=f32 ./kobol --model ./qwenmoe.gguf ... --usemtp
    

    It converts those weights to F32 before the GEMM (in chunks of up to 512 MB), so expect it to be a bit slower and use some extra VRAM. If it still fails, try a GGUF where the MTP/nextn tensors are F16 or quantized instead of BF16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions