Error downloading MTP model

#18
by Magnarks - opened

I'm trying to download the MTP model using llama.cpp, but I'm getting this error:
Downloading mtp-gemma-4-12b-it.gguf 0%
Downloading mmproj-BF16.gguf ── 6%
0.07.224.090 E common_download_file_single_online: unable to rename file: C:\Users\diego.cache\huggingface\hub\models--unsloth--gemma-4-12b-it-GGUF\blobs\145db9094bc0f85f1701e255a2ed216dcc9800fc8bc8631ad00905b456bd451b.downloadInProgress to C:\Users\diego.cache\huggingface\hub\models--unsloth--gemma-4-12b-it-GGUF\blobs\145db9094bc0f85f1701e255a2ed216dcc9800fc8bc8631ad00905b456bd451b
0.07.224.096 E common_download_file_single_online: download failed after 3 attempts
failed to download model from Hugging Face────────────────────────── 100%
imagen_2026-06-10_095013115

If I try to use the normal version, it downloads the MTP but still gives an error.

imagen_2026-06-10_095901772

imagen_2026-06-10_095924788

+1.
I manually downloaded the mtp gguf:

hf download unsloth/gemma-4-12b-it-GGUF --local-dir /home/user1/models/gemma4-12b --include "MTP/*Q8_0*"

and tried loading it with:

llama-server -m ${models}/gemma4-12b/gemma-4-12b-it-UD-Q8_K_XL.gguf -fit off -c 16384 -ngl 999 -ub 1024 -b 512 --temp 1 --min-p 0.1 --top-p 0.95 --top-k 64 --no-mmap -np 1  --model-draft ${models}/gemma4-12b/MTP/gemma-4-12b-it-Q8_0-MTP.gguf --spec-type draft-mtp --spec-draft-n-max 3 --verbose

Getting:

[...]
llama-swap-1  | 0.09.613.462 D sched_reserve: worst-case: n_tokens = 512, n_seqs = 1, n_outputs = 1
llama-swap-1  | 0.09.613.466 D graph_reserve: reserving a graph for ubatch with n_tokens =    1, n_seqs =  1, n_outputs =    1
llama-swap-1  | 0.09.614.479 I sched_reserve: Flash Attention was auto, set to enabled
llama-swap-1  | 0.09.614.496 I sched_reserve: resolving fused Gated Delta Net support:
llama-swap-1  | 0.09.614.498 D graph_reserve: reserving a graph for ubatch with n_tokens =    1, n_seqs =  1, n_outputs =    1
llama-swap-1  | 0.09.615.415 I sched_reserve: fused Gated Delta Net (autoregressive) enabled
llama-swap-1  | 0.09.615.437 D graph_reserve: reserving a graph for ubatch with n_tokens =   16, n_seqs =  1, n_outputs =   16
llama-swap-1  | 0.09.616.391 I sched_reserve: fused Gated Delta Net (chunked) enabled
llama-swap-1  | 0.09.616.415 D graph_reserve: reserving a graph for ubatch with n_tokens =  512, n_seqs =  1, n_outputs =    4
llama-swap-1  | 0.09.692.762 D ggml_cuda_host_malloc: failed to allocate 32.52 MiB of pinned memory: out of memory
llama-swap-1  | 0.09.692.925 D graph_reserve: reserving a graph for ubatch with n_tokens =    1, n_seqs =  1, n_outputs =    1
llama-swap-1  | 0.09.694.765 D graph_reserve: reserving a graph for ubatch with n_tokens =  512, n_seqs =  1, n_outputs =    4
llama-swap-1  | 0.09.696.225 I sched_reserve:      CUDA0 compute buffer size =   139.52 MiB
llama-swap-1  | 0.09.696.250 I sched_reserve:  CUDA_Host compute buffer size =    32.52 MiB
[...]
llama-swap-1  | 0.10.149.165 I llama_prepare_model_devices: using device CUDA0 (NVIDIA GeForce RTX 3080 Laptop GPU) (0000:01:00.0) - 0 MiB free
[...]
llama-swap-1  | 0.10.699.523 E llama_model_load: error loading model: vector::_M_range_check: __n (which is 1) >= this->size() (which is 1)
llama-swap-1  | 0.10.699.559 E llama_model_load_from_file_impl: failed to load model
llama-swap-1  | 0.10.699.564 E srv    load_model: failed to load draft model, '/models/gemma4-12b/MTP/gemma-4-12b-it-Q8_0-MTP.gguf'
llama-swap-1  | 0.10.699.575 I srv    operator(): operator(): cleaning up before exit...
llama-swap-1  | 0.10.701.546 E srv  llama_server: exiting due to model loading error
llama-swap-1  | 0.10.701.672 D ~llama_context:      CUDA0 compute buffer size is 139.5177 MiB, matches expectation of 139.5177 MiB
llama-swap-1  | 0.10.701.674 D ~llama_context:  CUDA_Host compute buffer size is  32.5196 MiB, matches expectation of  32.5196 MiB
[...]
./llama-server --version
version: 9590 (d2462f8f7)
built with GNU 11.4.0 for Linux x86_64

Nvidia RTX 3080 t1, 16Gb VRAM

Please disregard my message above: turns out there was something using VRAM that i was not aware of. After restarting MTP works correctly. Getting 44tps vs 25 without MTP. Nice. Thanks you!

Please disregard my message above: turns out there was something using VRAM that i was not aware of. After restarting MTP works correctly. Getting 44tps vs 25 without MTP. Nice. Thanks you!

Thanks anyway, I managed to get it working, although I'm not seeing the same improvement in T/S as you at the moment.

Sign up or log in to comment