Got an error while starting this model with mtp

#6
by Norfein - opened

llama-cpp: built from sources hour ago (b9596), Cuda Toolkit 13.3.

models:

  • gemma-4-26B-A4B-it-qat-UD-Q4_K_XL.gguf
  • mtp-gemma-4-26B-A4B-it.gguf

An error occured on start:
0.00.929.257 E llama_init_from_model: failed to initialize the context: Gemma4Assistant requires ctx_other to be set (this is normal during memory fitting)

Is this really normal?

(Windows 11, Powershell), script:

llama-server
-m $modelPath
--model-draft $mtpPath
--spec-type draft-mtp
--spec-draft-n-max 4
-ngl 999
-fa on
-c 65568
--mlock
--parallel 1
--repeat-penalty 1.1
--temp 0.6
--top-k 64
--top-p 0.95
-b 4096
-ub 4096
--jinja

Try with -fa off, and it fails than add --fit off. There are open issues in llama.cpp after support for the Gemma4 assistant models was added, specially if all weights do not fit the available VRAM.

Sign up or log in to comment